scp: error while loading shared libraries: libcrypto.so.1
I just did a slackpkg update/upgrade-all for 15.0. Something didn't work. When I attempt scp I get:
Code:
scp: error while loading shared libraries: libcrypto.so.1: cannot open shared object file: No such file or directory Searching for libcrypto.so.1 on my computer gives: Code:
# find / -name libcrypto.so\* |
scp: error while loading shared libraries: libcrypto.so.1
My libcrypt.so.1 links to libcrypt1-2.39.so on current. Libcrypt.so.1 is in /lib64.
|
Quote:
I'm tempted to revert back to the pre-update-all backup and try the update again. I've updated another system and don't have this problem. |
You have something old trying to link to libcrypto.so.1. It's not same as libcrypto.so.1.1. To find it, save the script below as, say, "finddep". Then run it as './finddep libcrypto.so.1$' The dollar sign is important at the end.
Code:
#!/bin/sh |
My guess is that it for some reason is your scp binary that links to the old libcrypto.so.1. Could it be that your scp binary is from Slackware 14.2?
The following commands might explain something: Code:
ldd /usr/bin/scp Code:
grep usr/bin/scp /var/log/packages/* Code:
which scp |
Quote:
Code:
# ./finddep libcrypto.so.1$ Quote:
Code:
# ldd /usr/bin/scp |
Yes, everything looks fine.
You could removepkg libreoffice. It's so old that it won't probably work anyway because of other missing library dependencies. But I don't think it has any connection with the scp problem. In 15.0, scp does not link to libcrypto itself but it runs ssh which links to libcrypto. Would you please try these: Code:
$ ldd /usr/bin/ssh Code:
$ env|grep LD_ |
Try this, too:
Code:
$ type scp |
Quote:
Code:
henca@munin:~> cat /etc/slackware-version Code:
nazgul:~> cat /etc/slackware-version One thing to debug what is going on here might be to study the output of: Code:
strace -f scp Code:
openat(AT_FDCWD, "/lib64/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3 Code:
openat(AT_FDCWD, "/lib64/libcrypt.so.1", O_RDONLY|O_CLOEXEC) = 3 |
Wow! Lots of feedback! Thanks
Quote:
Code:
# ldd /usr/bin/ssh Quote:
Quote:
Code:
# type scp Quote:
Code:
# cat /etc/slackware-version Quote:
OK, I'm going to remove LibreOffice, possible reboot, and report back. |
Later ... Mystery solved. I removed the LibreOffice package and scp is back in action. How they were connected is unknown! Thanks all!
|
All times are GMT -5. The time now is 03:25 AM. |