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

后端 未结 8 1956
無奈伤痛
無奈伤痛 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:16

    We ran into same problems after upgrading openssl from 1.0.2g to 1.1.0g. The required libraries were present and also the soft link was present.

    sudo ldconfig 
    

    worked for us. It rebuilt ldconfig cache.

    0 讨论(0)
  • 2021-01-05 01:18

    Configure:

    [mdm@dev openssl-1.1.0e]$ ./Configure linux-x86_64 --prefix=/usr/local --openssldir=/usr/local
    

    In this case, you should configure OpenSSL with:

    ./Configure linux-x86_64 enable-ec_nistp_64_gcc_128 -Wl,-rpath=/usr/local/lib64 \
      --prefix=/usr/local --openssldir=/usr/local
    

    OpenSSL does not add RPATHs by default (except on some of the BSDs). You need to manually specify it in your configure command. Once you manually specify it, things will "just work" for you without the need for LD_LIBRARY_PATH tricks.

    The enable-ec_nistp_64_gcc_128 is applicable to x86_64. It makes Diffie-Hellman run 2x to 4x faster. The option has some restrictions, so be careful when using it (but you are safe on x86_64).

    Also see Compilation and Installation on the OpenSSL wiki. There is a discussion of RPATHs, and a discussion of enable-ec_nistp_64_gcc_128.

    0 讨论(0)
提交回复
热议问题