Error while loading shared libraries: /usr/local/lib64/libssl.so.1.1

后端 未结 8 2025
無奈伤痛
無奈伤痛 2021-01-05 00:34

I’m trying to compile openssl-1.1.0e on Centos 7 (7.3.1611) but after i successfully compiled everything without any warning, i get an error when i’m trying any openssl comm

8条回答
  •  温柔的废话
    2021-01-05 01:08

    thanks to levitte, RenatoXSR

    for OpenSSL 1.1.0g, CentOS 7.2.1511, you can try this

    sudo bash -c "echo '/usr/local/lib64' >> /etc/ld.so.conf"
    sudo ldconfig
    

    this link explains the cause of problem

    The use of RPATH is inconsistent. On some systems, ld.so considers RPATH before even looking at LD_LIBRARY_PATH, which makes it hard to override, for example when testing a new OpenSSL build (!). We did so in pre-1.1.0 versions by hacking LD_PRELOAD, but there are some sanitizers that do not agree with that, which makes life hard as well, for example when testing a new OpenSSL build (!)

    this link gave an solution example

提交回复
热议问题