'Cent OS 8 relocation error after installing Openssl

I download and install openssl 1.1.1 following this link on my CentOS 8 server. But after that I cannot run commands like yum,rpm,ssh. For example:

ssh: /usr/local/openssl/lib/libcrypto.so.1.1: version `OPENSSL_1_1_1b' not found (required by ssh)

rpm: relocation error: /lib64/librpmio.so.8: symbol EVP_md2 version OPENSSL_1_1_0 not defined in file libcrypto.so.1.1 with link time reference


Solution 1:[1]

  1. Add a line /usr/lib in the /etc/ld.so.conf.d/libc.conf file

  2. Save

  3. Run the ldconfig command

Reference link: https://github.com/openssl/openssl/issues/11227

Solution 2:[2]

you can give this a go

curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -

sudo yum install nodejs

solved my issue, running centOS and aaPanel

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arvin
Solution 2 Quade du Toit