Linux系统安装配置curl
参考https://www.cnblogs.com/heqiyoujing/p/9432091.html
1下载源码
wget http://curl.haxx.se/download/curl-7.68.0.tar.gz
手工下载https://curl.haxx.se/download.html
2.解压到当前目录(或者 http://www.linuxidc.com/Linux/2014-08/106022.htm)
tar -zxf curl-7.68.0.tar.gz
3.进入安装包解压后目录
cd /home/lgl/Desktop/test/curl-7.68.0
4.配置,指定安装的目录,这里是“/usr/local/curl”
#如果是arm4.7
./configure --prefix=/user/mycurlarm47/libcurl --host=arm-linux CC=arm-linux-gnueabihf-gcc CXX=arm-linaro-arm-linux-gnueabihf-g++
#如果是arm4.3.3
./configure --prefix=/user/mycurlarm4.3.3/libcurl --host=arm-linux CC=arm-linux-gnueabihf-gcc CXX=/usr/arm/arm-none-linux-gnueabi-4.3.3/4.3.3/bin/arm-none-linux-gnueabi-gcc
#如果是GCC 配置,指定安装的目录,这里是“/usr/local/curl”
./configure --prefix=/usr/local/curl
5.生成
make
6.安装
sudo make install
要输入密码
过程中出错没关系
7.复制到编译器目录lib
#如果是arm4.7
把/user/mycurlarm47/libcurl/lib/下的5个文件 复制到/usr/arm/arm-linaro-arm-linux-gnueabihf-4.7/arm-linux-gnueabihf/lib
cp -r /user/mycurlarm47/libcurl/lib/. /usr/arm/arm-linaro-arm-linux-gnueabihf-4.7/arm-linux-gnueabihf/lib
#如果是arm4.3.3
cp -r /user/mycurlarm4.3.3/libcurl/lib/. /usr/arm/arm-none-linux-gnueabi-4.3.3/4.3.3/arm-none-linux-gnueabi/lib
#如果是GCC
把/usr/local/curl/lib/下的6个文件 复制到/usr/lib/x86_64-linux-gnu