CURL支持的通信協議有FTP、FTPS、HTTP、HTTPS、TFTP、SFTP、Gopher、SCP、Telnet、DICT、FILE、LDAP、LDAPS、IMAP、POP3、SMTP和RTSP。
首選刪除系統自帶的openssl,因為他只有可執行程序和庫,沒有頭文件。
sudo apt-get remove openssl
openssl官網,筆者使用版本3.2.0
https://www.openssl.org/source/
./config --prefix=/usr/local/openssl
make
sudo make install
首選刪除系統自帶的curl,因為他只有可執行程序和庫,沒有頭文件。
sudo apt-get remove curl
curl官網,筆者安裝為7.85.0版本
https://curl.se/download/
./configure --with-ssl=/usr/local/openssl //./configure --without-ssl
make
sudo make install
sudo rm /usr/local/lib/curl
系統也有curl庫,為防止沖突,刪去編譯好的curl庫,只用它的頭文件。


