1、解压openssl至目录/home/yk/openssl/openssl-1.0.2h
2、进入目录/home/yk/openssl/openssl-1.0.2h
3、
mkdir yk3399_openssl
4、
./config -fPIC no-shared --prefix=/home/yk/openssl/openssl-1.0.2h/yk3399_openssl --openssldir=/home/yk/openssl/openssl-1.0.2h/yk3399_openssl
5、
make && make install
生成的lib在/home/yk/openssl/openssl-1.0.2h/yk3399_openssl
6、解压curl至目录/home/yk/curl/curl-7.67.0
7、进入目录/home/yk/curl/curl-7.67.0
8、
mkdir yk3399_curl
9、
./configure --prefix=/home/yk/curl/curl-7.67.0/yk3399_curl --disable-shared -with-ssl=/home/yk/openssl/openssl-1.0.2h/yk3399_openssl
10、
make && make install
生成的lib在/home/yk/curl/curl-7.67.0/yk3399_curl
注意:保持curl和openssl版本时间相近,都下最新的源码即可,否则x86 openssl和curl版本匹配问题还是比较头疼的。