error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory on CentOS 8

Another error with the new install. This one appeared just after module avail to check if the network-mounted modules for the old distro (CentOS 7.8) work fine on CentOS 8. Upon TCL install I got /usr/lib64/libtcl8.6.so, and later on I installed anaconda3, that was coming with their own versions of the libraries. So my find output looks like this:

root@test ~ ## > find / -name *libtcl8*
/root/anaconda3/pkgs/tk-8.6.10-hbc83047_0/lib/libtcl8.6.so
/root/anaconda3/lib/libtcl8.6.so
/usr/local/anaconda3/pkgs/tk-8.6.10-hbc83047_0/lib/libtcl8.6.so
/usr/local/anaconda3/lib/libtcl8.6.so
/usr/lib64/libtcl8.6.so

I have tried yum remove/yum install tcl8.5\* and yum install tcl-devel out of a hunch without luck. Here you have how TCL is installed on CentOS 7, if you need it. I’ve used it as a reference. Desperate and not wanting to modify drastically the system, I found a solution. On the tcl/tk version reference it is written, as expected, that Tcl 8.6 is highly compatible with previous Tcl versions. So I just simply did this:

root@test ~/usr/lib64 ## > cp libtcl8.6.so libtcl8.5.so
root@test ~/usr/lib64 ## > ll libtcl*
-r-xr-xr-x 1 root root 1953008 Sep 15 10:24 libtcl8.5.so*
-r-xr-xr-x 1 root root 1953008 May 11 2019 libtcl8.6.so*
lrwxrwxrwx 1 root root 12 May 11 2019 libtcl.so -> libtcl8.6.so*
-rwxr-xr-x 1 root root 15948 May 11 2019 libtclstub8.6.a*
root@test ~/usr/lib64 ## > ldconfig

Log out, log in again and the error is gone. I can list the modules available. Now, time to test if they work. One by one, I’m afraid. Wish me luck! 😦

Advertisement

2 thoughts on “error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory on CentOS 8

    • Right. I agree! Maybe I tend to copy because I feel safer having my copy.
      We have 5 admins, located in different places, and sometimes the communication is… not optimal.
      If I have a copy I don’t need to care if the other guy deletes it from our systems 🙂
      Thank you for commenting!

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s