linux curl 编译命令,curl命令编译安装升级到7.54

1.下载curl-7.54

wget https://curl.haxx.se/download/curl-7.54.0.tar.gz

2.进行解压编译

tar xf curl-7.54.0.tar.gz

cd curl-7.54.0/

./configure --disable-shared

make && make install

说明:这里的 --disable-shared参数是为了防止curl编译时报错:curl: (2) Failed initialization

问题描述:

It means that the curl binary is picking up the system curl library. While it was linked at compile time to the correct library, at run-time it's picking up the incorrect library, which seems to be a pretty typical reason for this error happening.

3.查看确认curl版本

[root@urcar0 curl-7.54.0]# curl -V

curl 7.54.0 (x86_64-pc-linux-gnu) libcurl/7.54.0 OpenSSL/1.0.1e zlib/1.2.3

Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp

Features: IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets HTTPS-proxy

[root@urcar0 curl-7.54.0]# logout

Last login: Mon Feb 26 10:22:41 2018 from 172.16.87.112

安装完成!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值