Linux 编译安装 CURL

下载地址:

https://curl.haxx.se/download/curl-7.29.0.tar.gz

1.进入源码压缩包存放目录:
cd /usr/local/src
2.下载对应版本的压缩包:
wget https://curl.haxx.se/download/curl-7.29.0.tar.gz
3.解压缩:
tar -zxvf curl 7.29.0.tar.gz
4.进入解压后的目录:
cd curl 7.29.0/
5.配置编译参数:
./configure --prefix=/usr/local/curl
6.编译安装:
make && make install
7.查看版本信息:
[root@example curl 7.29.0]# curl --version

curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets
Last modification:December 17th, 2018 at 01:37 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment