LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't find a library (https://www.linuxquestions.org/questions/linux-newbie-8/cant-find-a-library-794482/)

sllinux 03-10-2010 12:26 PM

Can't find a library
 
I am trying to get a 32-bit executable to run on 64-bit Ubuntu.

I had to install multilib, and then when I ran the executable, I got this error:

Code:

./x86/bin/target_base_mac: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
So I installed libxml2, but I still get that same error. The file does exist:
Code:

test@olds:~/simulation$ ls -lrt /usr/lib/libxml2.so.2
lrwxrwxrwx 1 root root 16 2010-03-10 13:05 /usr/lib/libxml2.so.2 -> libxml2.so.2.7.5


rweaver 03-10-2010 12:36 PM

What do you get when you type:
Code:

ls -lrt /usr/lib/libxml2.so.2.7.5
Have you run ldconfig?

sllinux 03-10-2010 01:10 PM

That file exists too:
Code:

test@olds:~/simulation$ ls -lrt /usr/lib/libxml2.so.2.7.5
-rw-r--r-- 1 root root 1372312 2010-01-10 05:46 /usr/lib/libxml2.so.2.7.5

I don't know anything about ldconfig, but I ran it, and then I re-ran the executable, and I still get the same error.

sllinux 03-11-2010 09:30 AM

Finally got it working. Turns out I did not need multilib, that didn't help. I also didn't need to reinstall libxml2, that was already on the system (although it was the 64-bit version so it wouldn't work). I just needed to install ia32-libs, and now everything's working!


All times are GMT -5. The time now is 09:53 AM.