分别运行以下命令:
wget http://curl.haxx.se/download/curl-7.29.0.tar.gz
tar zxvf curl-7.29.0.tar.gz
cd curl-7.29.0
./configure --prefix=/usr/local/curl --disable-shared --enable-static --without-libidn --without-ssl --without-librtmp --without-gnutls --without-nss --without-libssh2 --without-zlib --without-winidn --disable-rtsp --disable-ldap --disable-ldaps --disable-ipv6
make
sudo make install
注意:需要apt-get install curl libcurl3 libcurl3-dev