Curl 未定义的符号:SSL\U CTX\U set\U alpn\U protos
当我使用zypper安装软件包时,我遇到了这样一个问题“未定义的符号:SSL_CTX_set_alpn_protos”。全文如下Curl 未定义的符号:SSL\U CTX\U set\U alpn\U protos,curl,libcurl,Curl,Libcurl,当我使用zypper安装软件包时,我遇到了这样一个问题“未定义的符号:SSL_CTX_set_alpn_protos”。全文如下 zypper: symbol lookup error: /usr/local/lib/libcurl.so.4: undefined symbol: SSL_CTX_set_alpn_protos *Error building the cache: [git|https://github.com/git/git] Valid metadata not found
zypper: symbol lookup error: /usr/local/lib/libcurl.so.4: undefined symbol: SSL_CTX_set_alpn_protos
*Error building the cache:
[git|https://github.com/git/git] Valid metadata not found at specified URL
Warning: Disabling repository 'git' because of the above error.
Loading repository data...
Reading installed packages...
'subversion' not found in package names. Trying capabilities.
No provider of 'subversion' found.
Resolving package dependencies...
Nothing to do.*
我在网上搜索了一下,得到了一些提示。
1.我的系统中有两个libcurl,我试图卸载一个我自己安装的libcurl。但我遇到了另一个问题,消息如下
zypper: symbol lookup error: /usr/local/lib/libcurl.so.4: undefined symbol: SSL_CTX_set_alpn_protos
*Error building the cache:
[git|https://github.com/git/git] Valid metadata not found at specified URL
Warning: Disabling repository 'git' because of the above error.
Loading repository data...
Reading installed packages...
'subversion' not found in package names. Trying capabilities.
No provider of 'subversion' found.
Resolving package dependencies...
Nothing to do.*
如果有人能帮忙,我很感激,谢谢 您构建并安装在
/usr/local/lib/libcurl.so.4
中的libcurl是根据具有SSL\u CTX\u set\u alpn\u protos
功能的OpenSSL版本构建的。这意味着OpenSSL 1.0.2或1.1.0
当您现在链接到该库时,它会在运行时发现一个较旧的OpenSSL(可能是1.0.1或更旧?),它缺少SSL\u CTX\u set\u alpn\u protos
函数。它不能继续
您需要确保ld.so将加载较新的OpenSSL。您可以通过执行以下操作之一来解决此问题:
/etc/ld.so.conf文件以创建另一个搜索顺序,或者您可以
LD\u库路径。甚至