Monday, September 25, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  2] [ 0]  / answers: 1 / hits: 16538  / 8 Months ago, sun, february 26, 2023, 10:34:19

I'm trying to run a game (PRIME, an old Rougelike found here) and after downloading the 64 bit linux version, and going to run it, I get this error response:

./prime: error while loading shared libraries: cannot
open shared object file: No such file or directory

Now, I've checked that I've got that file in my library, and it's up to date. The last time I asked this question I was able to solve it simply with a sudo-apt-update, sudo-apt-upgrade. That isn't working this time.

(The italicized note above is technically a mistake. I did have that file, but not the i386 version. Take a look at the accepted answer and my comments to see how we discovered that!)

My real item is this, though: Shared library problems are a pretty common error, it seems, and although the library in question changes, the other common issue is that the library exists, but for some reason the executable (or the user?) can't find it?

This is also not the first time I've had this issue on this system.

Is there a general solution or approach to shared library problems?

I came across this using ldconfig but I haven't been able to get it to work.

output of ldd ./prime in the directory with that executable (0xf7f03000) => not found => ./ (0xf7e4f000) => /lib/i386-linux-gnu/ (0xf7e26000) => /lib/i386-linux-gnu/ (0xf7e00000) => /usr/lib/i386-linux-gnu/ (0xf7df9000) => /usr/lib/i386-linux-gnu/ (0xf7c1b000) => /lib/i386-linux-gnu/ (0xf7b16000) => /lib/i386-linux-gnu/ (0xf7af7000) => /lib/i386-linux-gnu/ (0xf7908000) => not found => not found => not found => /lib/i386-linux-gnu/ (0xf7901000) => not found => not found => /usr/lib/i386-linux-gnu/ (0xf7894000) => /lib/i386-linux-gnu/ (0xf7876000) => /lib/i386-linux-gnu/ (0xf7870000)
/lib/ (0xf7f04000) => /usr/lib/i386-linux-gnu/ (0xf77f3000) => /usr/lib/i386-linux-gnu/ (0xf77b7000) => /usr/lib/i386-linux-gnu/ (0xf7666000) => /usr/lib/i386-linux-gnu/ (0xf7637000) => /usr/lib/i386-linux-gnu/ (0xf7631000) => /usr/lib/i386-linux-gnu/ (0xf7629000) => /usr/lib/i386-linux-gnu/ (0xf760a000)

More From » 20.04


From ldd, it is clear that prime is a 32bit/i386 build. It requires dependencies from same architecture. We may confirm too using:

file ./prime

We search for each missing library file using apt-file (if installed, be aware it downloads large indexes) or for corresponding package then install it.

sudo apt install libsigsegv2:i386 
libsdl1.2debian:i386 libsdl-image1.2:i386 liblua5.1-0:i386
libsdl-mixer1.2:i386 libsdl-net1.2:i386

[#2442] Monday, February 27, 2023, 8 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 238
Total Questions: 98
Total Answers: 100

Location: Senegal
Member since Fri, Aug 21, 2020
3 Years ago
ligenvirt questions
Tue, Aug 17, 21, 02:28, 2 Years ago
Thu, Sep 23, 21, 17:55, 2 Years ago
Mon, Oct 18, 21, 03:34, 2 Years ago
Wed, Nov 2, 22, 16:37, 12 Months ago