openssl: `OPENSSL_1_1_1' not found (required by openssl)
Error:
> openssl version
> openssl: /usr/lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by openssl)
> openssl: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by openssl)
I ran the follwoing on Ubuntu 16.04, nginx version: nginx/1.13.9
# git clone git://git.openssl.org/openssl.git
# cd openssl/
# ./config --prefix=/usr/
# make
# sudo make install
# openssl version
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 17 (7 by maintainers)
It should be:
(assuming you installed OpenSSL to the default location)
I have the same issue. In my case (Ubuntu 18.04), even after successful install of openssl (tried various version), it still does not work. I studied this thread as well as many others online and resolve the issue as follows:
sudo apt-get install locate(to install the locate to find where exactly libssl.so.1.1 is.)locate libssl.so.1.1and it gives the following:export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnuThen when executeopenssl version, it should work now.export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnuto~/.bashrcto enable a permanent solution, otherwise you need to execute step 4) every time restarts.Do you expect us to start reading your blog to help you out? Quite the shameless plug there, dude 😉
I’m obviously a newbie
Tried
$ which openssl /usr/local/bin/openssl
$ echo “export LD_LIBRARY_PATH=/usr/local/bin/openssl” >> ~/.bashrc $ export LD_LIBRARY_PATH=/usr/local/bin/openssl"
echo $LD_LIBRARY_PATH /usr/local/bin/openssl
openssl version openssl: /usr/lib/x86_64-linux-gnu/libssl.so.1.1: version
OPENSSL_1_1_1' not found (required by openssl) openssl: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: versionOPENSSL_1_1_1’ not found (required by openssl)This exception occurred to me when I compile OpenSSL 1.1.1b in my Docker image. As is followed is my solution:
Corresponding TravisCI build log can be find here:
https://api.travis-ci.org/v3/job/536617134/log.txt
Sorry, just happy to help others with the same error and solution. I’ll delete
Try setting your
LD_LIBRARY_PATHto point to the location of your newly compiled OpenSSL libs. The above indicates that you are picking up the old system OpenSSL libraries.