'error: /usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found

I am getting the error when I run command "mongo" in linux client on RHEL 7.2:

/usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by mongo)

I have already installed openssl 1.0.2:

$ openssl version
OpenSSL 1.0.2g  1 Mar 2016

What is the problem and how do I fix it?



Solution 1:[1]

I was able to solve this problem by running yum reinstall openssl openssl-libs and yum reinstall libzip

Solution 2:[2]

error: /usr/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found

Above error is showing user have two library for same tool that's why system not able to decide which is/are the right file/files. Delete one of them (system defined : under /usr/lib or user defined : path defined by user) and try it.

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 Mian Asbat Ahmad
Solution 2 Raj Bangarwa