vanutsteen.nl => nerds only A blog on rails, php, computing, my bass guitar and stuff

Install pcntl (pcntl_fork) on Ubuntu Hardy

on in Linux, PHP

No apt-getting on Hardy :(

1
2
3
4
5
6
7
8
9
10
11
cd ~/
mkdir php
cd php
apt-get source php5
cd php5-*/ext/pcntl
phpize
./configure
make
no=`phpize | grep "Zend Module Api No" | cut -d : -f2 | awk '{gsub(/^ +| +$/,"")}1'`
cp modules/pcntl.so /usr/lib/php5/$no/
echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini

Comments