curl http://127.0.0.1 出现问题
# curl https://www.example.com curl: relocation error: /lib64/libcurl.so.4: symbol SSLv3_client_method version OPENSSL_1_1_0 not defined in file libssl.so.1.1 with link time reference
错误是/usr/lib64中的动态链接中无法识别和链接,对此所采取的解决方法是将其加入到系统环境路径下:
/etc/profile 中添加
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
source /etc/profile
# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf ###################### /usr/lib/ /usr/lib64/ ###################### /usr/local/openssl/lib
#加载更新动态库:
ldconfig
再次执行
# openssl version OpenSSL 1.1.1v 1 Aug 2023 (Library: OpenSSL 1.1.1f 31 Mar 2020)
引用:
https://www.jianshu.com/p/2aaf22a780de
标签:LD,OPENSSL,LIBRARY,version,报错,usr,curl,lib64
From: https://www.cnblogs.com/fengjian2016/p/18470871