小编The*_*man的帖子

/usr/local/ssl/lib/libcrypto.a:无法读取符号:错误值

所以在今晚对这个问题做了一些详尽的研究之后,我仍然被难住了。我正在运行 Debian Wheezy,我正在尝试让 curl 支持 ssl,但它显然拒绝这样做。我试图删除 OpenSSL 和 Curl 的所有痕迹。然后使用 apt-get install OpenSSL,它会安装“OpenSSL 1.0.1e”。然后我去尝试从源代码编译 curl,认为 apt-get 安装 curl 可能只是愚蠢的。我尝试使用它进行配置。

./configure --with-ssl LDFLAGS="-ldl"
Run Code Online (Sandbox Code Playgroud)

因为它会以其他方式传递一些错误。如果没有 LDFLAGS,我会在我的日志中得到它。config.log 但正如我所说,打开 LDFLAGS 后,我实际上可以创建配置,但是当我开始制作时......好吧......那是所有他妈的似乎都崩溃并且她不会安装的时候。

/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(ecp_nistz256.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libcrypto.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libcurl.la] Error 1
make[2]: Leaving directory `/home/openssl/curl-7.27.0/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/openssl/curl-7.27.0/lib'
make: *** …
Run Code Online (Sandbox Code Playgroud)

linux ssl debian curl openssl

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

curl ×1

debian ×1

linux ×1

openssl ×1

ssl ×1