This article has been written 533 days ago.
The informations may be out of dated!
Installing the cURL library on Leopard Mac OS X is very easy to do. First of all download the sources from the official web site. Unpack the tarball in your /usr/sources/ directory and join it. Downloading the file today, you'll get the curl-7.19.4 version.
cd /usr/sources/curl-7.19.4
./configure
make
make test
sudo make install
If you want to personalize the installation directory use the option --prefix=/path/to/curl in the ./configure. And remember, the make test command is optional but very important!
Once the cURL library is compiled, you need to reconfigure your PHP installation. Join the php's sources directory and configure it with the following commands.
./configure --prefix=/usr/local/php5 --enable-calendar --with-apxs2=/usr/sbin/apxs --enable-mbstring --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql/ --with-gd --enable-soap --with-zlib --with-jpeg-dir=/usr/local/bin --with-png-dir=/usr/local/bin --enable-sockets --with-curl=/usr/lib
make
sudo make install
Restart apache from the system's control panel o by typing sudo apachectl graceful in a terminal window. That's all.


















