Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Curl 未定义的符号:SSL\U CTX\U set\U alpn\U protos_Curl_Libcurl - Fatal编程技术网

Curl 未定义的符号:SSL\U CTX\U set\U alpn\U 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安装软件包时,我遇到了这样一个问题“未定义的符号: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 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.*
  • 如果问题发生在两个月前。如果我想保留我安装的libcurl,我该怎么做

  • 如果有人能帮忙,我很感激,谢谢

    您构建并安装在
    /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。您可以通过执行以下操作之一来解决此问题:

  • 卸载旧的OpenSSL
  • 编辑
    /etc/ld.so.conf文件以创建另一个搜索顺序,或者您可以
  • 为其设置
    LD\u库路径。甚至
  • 构建libcurl以使用新OpenSSL的固定路径