LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Error with GCC: while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory (https://www.linuxquestions.org/questions/slackware-14/error-with-gcc-while-loading-shared-libraries-libisl-so-22-cannot-open-shared-object-file-no-such-file-or-directory-4175675628/)

juju 05-21-2020 05:15 PM

I don't remember. I said "for a while", because I know it has been some time (maybe a year) since I've done any kind of lengthy configuration on my machine. I do update monthly with slackpkg.

A little unclear about using upgradepkg. Should I use the aforementioned link and download a pkg and then use it as follows:

Code:

% upgradepkg gcc-5.5.0_multilib-x86_64-1alien.txz

bassmadrigal 05-21-2020 06:06 PM

It looks like your slackpkg mirror is set to 14.2, but your slackpkg+ mirror for multilib is set to -current.

Find the following line in your /etc/slackpkg/slackpkgplus.conf file and change "current" to "14.2" and then update the system.

Code:

MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/current/
I would probably recommend the following to make sure you have the right stuff installed. The first will uninstall all 32bit compatibility layer packages to make sure you don't have stragglers from -current that shouldn't be on 14.2. The second will make sure slackpkg has the latest info for the repos. The third will "upgrade" your gcc and glibc packages to the correct 14.2 versions. The fourth will install all missing multilib packages.

Code:

removepkg /var/log/packages/*compat32*
slackpkg update
slackpkg upgrade multilib
slackpkg install multilib

After this, you should be good to go.

juju 05-21-2020 06:34 PM

That took a while, but it seems to work.

Many thanks for the assistance!

npkuin 04-30-2021 05:25 PM

perhaps this helps
 
I have been configuring a virtual machine, and choose an old OS, scientific linux, but needed a more recent gcc compiler, so downloaded all the required stuff, and then started gcc, of course using the online recipe, having had some 'experience' building gcc twenty years ago. All went well, until during a check, the same error, that cc1 cannot find the libisl lib, so was stuck. It seems to be, - from scouring the net - happening quite alot, so what was wrong? It had to be something in the environment, but what? After cheking this and that, I finally defined LD_LIBRARY_PATH=/lib (where a soft link to the lib was) and Hallo! It worked. Make is happily chugging away further and so, this may help in other cases.


All times are GMT -5. The time now is 08:06 PM.