Article 53QW5 Error with GCC: while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory

Error with GCC: while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory

by
juju
from LinuxQuestions.org on (#53QW5)
Hello,

I'm tooling around on my Slackware 14.2 machine tonight, trying some beginner C programming. I encountered the following error when trying to compile my first program:

/usr/libexec/gcc/x86_64-slackware-linux/9.3.0/cc1: error while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory

I imagine this is a fairly standard error. The library, libisl.so.22 is located at /usr/lib. I added this directory to my ld.so.conf file and ran ldconfig. This didn't help.

Running ldconfig -p shows the library in the appropriate directory.

I should note this is a 64-bit machine. It's been a while since I set it up, so I've forgotten the finer points of the system.

I'm fairly sure the answer is found in this multilib setup.

Thanks in advance...

Here is the output of the command gcc -v:

Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/9.3.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/9.3.0/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-9.3.0/configure --prefix=/usr
--libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info
--enable-shared --enable-bootstrap
--enable-languages=ada,brig,c,c++,d,fortran,go,lto,objc,obj-c++
--enable-threads=posix --enable-checking=release --enable-objc-gc
--with-system-zlib --enable-libstdcxx-dual-abi
--with-default-libstdcxx-abi=new --disable-libstdcxx-pch
--disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp
--enable-gnu-unique-object --enable-plugin --enable-lto
--disable-install-libiberty --enable-gnu-indirect-function
--with-linker-hash-style=gnu --with-gnu-ld --with-isl --verbose
--with-arch-directory=amd64 --disable-gtktest --disable-werror
--enable-clocale=gnu --enable-multilib --target=x86_64-slackware-linux
--build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 9.3.0 (GCC)latest?d=yIl2AUoC8zA latest?i=6X_4jz_RqyY:U7ygjGbd8lc:F7zBnMy latest?i=6X_4jz_RqyY:U7ygjGbd8lc:V_sGLiP latest?d=qj6IDK7rITs latest?i=6X_4jz_RqyY:U7ygjGbd8lc:gIN9vFw6X_4jz_RqyY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments