# How do I install Curl?

**URL:** <https://forum.kirupa.com/t/how-do-i-install-curl/293951>\
**Category:** programming\
**Created:** [August 6, 2009, 9:25am UTC](https://forum.kirupa.com/t/how-do-i-install-curl/293951 "2009-08-06T09:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilbertsavier](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gilbertsavier](https://forum.kirupa.com/u/gilbertsavier)\
**Post date:** [August 6, 2009, 9:25am UTC](https://forum.kirupa.com/t/how-do-i-install-curl/293951/1 "2009-08-06T09:25:35Z")

</div>

Hi,  
[http://curl.haxx.se](http://curl.haxx.se)

wget [http://curl.haxx.se/download/curl-7.16.0.tar.gz](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/](http://curl.haxx.se/libcurl/perl/)

wget [http://curl.haxx.se/libcurl/perl/WWW-Curl-2.0.tar.gz](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](http://curl.haxx.se/docs/sslcerts.html)
