Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems upgrading from 1.1.1 to 3.0.2 #18025

Closed
westor7 opened this issue Apr 2, 2022 · 5 comments
Closed

Problems upgrading from 1.1.1 to 3.0.2 #18025

westor7 opened this issue Apr 2, 2022 · 5 comments
Labels
resolved: answered The issue contained a question which has been answered triaged: question The issue contains a question

Comments

@westor7
Copy link

westor7 commented Apr 2, 2022

Hello,

I am trying to upgrade OpenSSL 1.1.1.x to 3.0.2 but i get an error on openssl version , please if anyone knows how to solve this would be much appreciated.

Steps for upgrade:

wget https://www.openssl.org/source/openssl-3.0.2.tar.gz
tar -xvzf openssl-3.0.2.tar.gz
cd openssl-3.0.2.tar.gz
./Configure
make
make test
sudo make install
sudo ldconfig

After this progress i used openssl version and got openssl: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory

uname -a = 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
which openssl = /usr/local/bin/openssl
sudo find / -iname "*libssl.so.3" = /usr/local/lib64/libssl.so.3
echo $LD_LIBRARY_PATH = empty

  • Thanks!
@westor7 westor7 added the issue: question The issue was opened to ask a question label Apr 2, 2022
@tmshort
Copy link
Contributor

tmshort commented Apr 3, 2022

  1. Use ldd $(which openssl) to see what libraries it's trying to load (although the error message states the library).
  2. Do ldconfig -p to print out the list of libraries, use grep to find libssl or libcrypto
  3. Look in your /etc/ld.so.conf and /etc/ld.so.conf.d directory to see if changes need to be made, the configs in the directory are loaded alphabetically, so doing cat /etc/ld.so.conf.d/* will show what directories it's trying to load from. You may be missing /usr/local/lib64 from this list.

@paulidale paulidale added triaged: question The issue contains a question resolved: answered The issue contained a question which has been answered and removed issue: question The issue was opened to ask a question labels Apr 3, 2022
@ydroneaud
Copy link

On ubuntu, x86_64 libraries should be installed in /usr/local/lib/x86_64-linux-gnu. But openssl 3.0 configure set up multilib postfix as 64. So you want to run ./configure --libdir=lib/x86_64-linux-gnu

@tmshort tmshort closed this as completed Feb 9, 2023
@MossabDiae
Copy link

Step by step fix for debian related OS based on tmshort answer:

  1. make sure libraries are indeed found in /usr/local/lib64
ls /usr/local/lib64/
# >>  libcrypto.so.3  libssl.a  libssl.so ...
  1. make sure the libraries path is missing from cat /etc/ld.so.conf.d/* output
  2. configure the new path
# add it
sudo echo /usr/local/lib64/ >  /etc/ld.so.conf.d/openssl.conf

# load it
sudo ldconfig
  1. you should see /usr/local/lib64 in the list
ldconfig -v |less
  1. confirm openssl is working
openssl version
# > OpenSSL 3.1.0 14 Mar 2023 (Library: OpenSSL 3.1.0 14 Mar 2023)

@YohannesTz
Copy link

thank you it worked. I just had to point it to the correct location inside the config.

@wclssdn
Copy link

wclssdn commented Sep 2, 2023

On ubuntu, x86_64 libraries should be installed in /usr/local/lib/x86_64-linux-gnu. But openssl 3.0 configure set up multilib postfix as 64. So you want to run ./configure --libdir=lib/x86_64-linux-gnu

after I use ./configure --libdir=/usr/lib/x86_64-linux-gnu to configure my python and reinstall it. it fix my problerm.

thanks @tmshort provide useful infomation to help me find the real reason: when build python, it will build ssl module by default, but if it can't find the openssl package, the ssl module will not be included in result.

@openssl openssl locked and limited conversation to collaborators Sep 3, 2023
@paulidale paulidale converted this issue into discussion #21941 Sep 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
resolved: answered The issue contained a question which has been answered triaged: question The issue contains a question
Projects
None yet
Development

No branches or pull requests

7 participants