linux下编译安装curl

时间:2024-01-06 11:24:02

linux下编译安装curl

1.下载curl

git clone https://github.com/curl/curl.git

2.在curl目录下生成configure文件

cd curl ./buldconf

3.编译生成curl

./configure make make install

4.在src下生成了curl

/curl -V

如果出现下述命令:

 curl 7.49.-DEV (x86_64-unknown-linux-gnu) libcurl/7.49.-DEV
Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp
Features: IPv6 Largefile UnixSockets

curl就安装成功了。