linux下編譯安裝curl
1.下載curl
1 git clone https://github.com/curl/curl.git
2.在curl目錄下生成configure文件
1 cd curl 2 ./buldconf
3.編譯生成curl
1 ./configure 2 make 3 make install
4.在src下生成了curl
1 /curl -V
如果出現下述命令:
1 curl 7.49.1-DEV (x86_64-unknown-linux-gnu) libcurl/7.49.1-DEV 2 Protocols: dict file ftp gopher http imap pop3 rtsp smtp telnet tftp 3 Features: IPv6 Largefile UnixSockets
curl就安裝成功了。