https://curl.se/download/
笔者安装为7.85.0版本
./configure --without-ssl
make
sudo make install
sudo rm /usr/local/lib/*curl*
系统也有curl库,为防止冲突,删去编译好的curl库,只用它的头文件。
apt-get install libx11-dev
sudo apt-get install libglib2.0-dev
sudo apt-get install uuid-dev