我正在尝试curl
使用openssl
支持进行编译,尽管我已经尝试了几个小时,但我仍然无法弄清楚我做错了什么。
以下是我所做的:
openssl
像这样编译: cd /usr/local/install/openssl-1.0.2a
./config make make install尝试编译
curl
cd /usr/local/install/curl-7.42.1 ./configure --with-ssl=/usr/local/ssl/ make
我收到此错误:
/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_clnt.o): relocation R_X86_64_32 against '.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
collect2:错误:ld 返回 1 退出状态
答案1
我终于找到了一种编译 curl 的方法,这对我有用:
openssl:
./config -fPIC no-gost no-shared no-zlib
make depend
make
make install
卷曲:
./configure --with-ssl=/usr/local/ssl
make
make install