Install libcurl with ssl and ssh support

cd /var
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2
apt-get install bzip2
tar -jxvf curl-7.22.0.tar.bz2
cd curl-7.22.0
./configure

Install dependencies, if they pop up as not installed. For me, these popped up (binutils is for ar):

apt-get install binutils
apt-get install gcc
apt-get install g++
apt-get install make

I decided I also want SSL and SSH support so;

Check for newer libssh2 version if you want: http://www.libssh2.org

apt-get install libssl-dev

cd /var
wget http://www.libssh2.org/download/libssh2-1.3.0.tar.gz
tar -zxvf libssh2-1.3.0.tar.gz
cd libssh2-1.3.0
./configure
make
make install
cd /var/curl-7.22.0

ldconfig and then configure again and install

ldconfig 
./configure
make
make install

Unrelated notes:
Install boost: Here
Install curlpp: Here

One thought on “Install libcurl with ssl and ssh support

Leave a Reply

Your email address will not be published. Required fields are marked *