PDA

View Full Version : How do I install Curl?



gilbertsavier
04 Aug 2009, 04:43 AM
Hi,
http://curl.haxx.se

wget http://curl.haxx.se/download/curl-7.16.0.tar.gz
tar -pxzf curl-7.16.0.tar.gz
cd curl-7.16.0
./configure --with-ssl
make
make install
ldconfig -v

Then use --with-curl in PHP's configure

For use with Perl use
http://curl.haxx.se/libcurl/perl/

wget http://curl.haxx.se/libcurl/perl/WWW-Curl-2.0.tar.gz
tar -pxzf WWW-Curl-2.0.tar.gz
cd WWW-Curl-2.0
perl Makefile.PL
make
make install


#######
We also had problems usign Curl to talk to a new geotrust cert, curl did not recognise the CA signing authority. Using the command line -k will not worry about the signing auth in PHP use curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);

In the end Geotrust supplied a cert

This needed to be appended onto
/usr/local/share/curl/curl-ca-bundle.crt

Also refer to
http://curl.haxx.se/docs/sslcerts.html

-----------------------------------
Thanks & regards
Lokananth
Live Chat Software (http://www.mioot.com) By miOOt