1.编译zlib

wget http://zlib.net/zlib-1.2.11.tar.gz
tar -xzf zlib-1.2.11.tar.gz
cd zlib-1.2.11/
./configure --prefix=/home/const
make && make install

2.编译c-ares

wget https://c-ares.haxx.se/download/c-ares-1.15.0.tar.gz
tar xvf c-ares-1.15.0.tar.gz
cd c-ares-1.15.0
../configure --prefix=/home/const
make && make install

3.编译OpenSSL

wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
tar xvf openssl-1.1.1k.tar.gz
./Configure --prefix=/home/const no-asm -shared linux-x86_64
make && make install

4.编译cURL

wget https://curl.se/download/curl-7.76.1.tar.xz 
tar xvf curl-7.76.1.tar.xz 
cd curl-7.76.1
./configure --prefix=/home/const CPPFLAGS="-I/home/const/include" LDFLAGS="-L/home/const/lib" LIBS=" -lssl -lcrypto -lz -ldl -lpthread"  --disable-werror --enable-curldebug --with-ssl=/home/const --enable-zlib --enable-ares
本文链接地址:https://const.net.cn/7.html

标签: none

添加新评论