Why does curl -V show a different OpenSSL library than ldd and curl-config?
Look at the curl -V
output again and check the libcurl part in particular.
I'll cut away the rest for you to make it more obvious:
# /usr/local/bin/curl -V
curl 7.84.0 (x86_64-pc-linux-gnu) libcurl/7.64.0
curl 7.84.0, with libcurl 7.64.0
This tells you that when you invoke that 'curl' binary, it finds an older libcurl and not the one you built and probably intends for curl to use.
You have not configured your ld.so to find it in that path. You can edit /etc/ld.so.conf
, set LD_LIBRARY_PATH
or similar to fix it.
If you do edit ld.so.conf, remember to sudo ldconfig
.
Ubuntu 22.04 | libssl.so.1.1: cannot open shared object file: No such file or directory
This fixes it (a problem with packaging in 22.04):
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
PS: If the link is expired, check http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/?C=M;O=D for a valid one.
openssl: error while loading shared libraries: libssl.so.3
I solved it that time only by creating a symlink and rebuilding the ldconfig cache.
ln -s libssl.so.3 libssl.so
sudo ldconfig
mysql: /usr/local/lib/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by mysql)
I have met the same problem, and I fixed it on my ubuntu18.04.
I had found the same file at the path="/usr/lib/x86_64-linux-gnu/libssl.so.1.1" on my computer.
I backup the file and copy the same file from the mentioned path.
sudo mv /usr/local/lib/libssl.so.1.1 /usr/local/lib/libssl.so.1.1.old
sudo cp /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/local/lib/
then it will get error fllows:
mysql: libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by libssl.so.1.1)
and do the same work
sudo mv /usr/local/lib/libcrypto.so.1.1 /usr/local/lib/libcrypto.so.1.1.old
sudo cp /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/local/lib/
then the problem had been worked out.
Related Topics
Infinite Loop Receive from Serial Port
Counting Number of Files in Multiple Subdirectories from Command Line
Using Find But Only in Subdirectories Matching Certain Pattern
Elk Not Passing Metadata from Filebeat into Logstash
How to Setup Virtualhosts to Point Two Ports on Same Ip to Different Servernames
How to Pipe The Output of an Ls on Remote Server to The Local Filesystem via Sftp
Sysfs Interface. I Can't Export Gpio Pins in a Xilinx's Board (Zybo and Other)
Wmctrl: Moving a Fullscreen Window
File Search Algorithms Using Indexing in Linux
U-Boot: Cannot Boot Linux Kernel Despite Kernel Being Less Than Maximum Bootm_Len
Securing a Simple Linux Server That Holds a MySQL Database
What Does Signal(Sigchld, Sig_Dfl); Mean
Debian 7, Fstab, Mount.Cifs Invalid Argument
The Most Reliable Way to Terminate a Family of Processes
How to Customize or Remove Extra Linux Kernel Version Details Shown at Boot