LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   cannot open shared object file: No such file or directory - but the file is there! (https://www.linuxquestions.org/questions/slackware-14/cannot-open-shared-object-file-no-such-file-or-directory-but-the-file-is-there-899245/)

Ook 08-24-2011 03:32 PM

cannot open shared object file: No such file or directory - but the file is there!
 
I am trying to run a program (epsxe, a play station emulator) and I get:

libgtk-1.2.so.0: cannot open shared object file: No such file or directory

And yet, if I look in /usr/lib64, I see libgtk-1.2.so.0 which links to libgtk-1.2.so.0.9.1, which is also there.

So, I'm not quite sure what it is telling me. Why would it say the file is not there, when it is? More importantly, what can I do so that it sees the file? I have had this happen with other programs as well, but not really sure if it is the fault of the program, or something on my system.

Slackware current 64 bit, as of yesterday.

ponce 08-24-2011 03:36 PM

I think you are trying to run 32bit binaries on a 64bit system, so you need to go multilib.

you can verify it with a
Code:

file $(which epsxe)

Ook 08-24-2011 04:07 PM

file $(which epsxe) gives:

/opt/epsx/epsxe: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, corrupted section header size

I have multilib installed, have had it for a while. I updated everything to slackware current 64 bit two days ago, and I also downloaded the current multilib. AFAIK it's working because I'm using 23 bit wine, and it compiles and runs my windows programs fine.

ponce 08-24-2011 04:16 PM

ah, sorry, I haven't seen he's looking for the 32bit gtk-1 library, that isn't part of the standard compat32 set, but you can easily convert the slackware current package with
Code:

convertpkg-compat32 -i gtk+-1.2.10-i486-5.txz
and then install the resulting package.

EDIT: you will need to do the same with the glib-1 package.

Ook 08-24-2011 05:05 PM

Wow, that worked perfectly! I have a few other programs I've seen this happen to, I think I'll try to find them and see if I can likewise get them going.

Thanks :)

ponce 08-24-2011 05:13 PM

you're welcome :)
don't forget to mark the thread as [SOLVED] ;)


All times are GMT -5. The time now is 05:32 AM.