Page 1 of 1

error while loading shared libraries: libl

PostPosted: 30 Sep 2015, 19:25
by sonderless
Hello,

I am running 64 bit linux mint.

When I try to execute the .sh file to start STK I receive the following message...

supertuxkart: error while loading shared libraries: liblber-2.4.so.2: cannot open shared object file: No such file or directory

I have installed the i386 compatible libraries... Does anyone know what I'm doing wrong or how to fix this?

Thanks

Re: error while loading shared libraries: libl

PostPosted: 30 Sep 2015, 21:23
by deve
This library is available in both i386 and x86_64 versions in the STK package.

Could you post here output of following commands (run from STK directory):
{l Code}: {l Select All Code}
ldd ./lib/liblber-2.4.so.2
ldd ./lib-64/liblber-2.4.so.2
uname -m

maybe it will show us what happens.

I have installed the i386 compatible libraries...

You don't need it because it should run 64-bit version. At least in theory ;)

You can also try to run manually:
{l Code}: {l Select All Code}
export LD_LIBRARY_PATH="./lib-64"
./bin-64/supertuxkart

Re: error while loading shared libraries: libl

PostPosted: 08 Oct 2015, 11:12
by deve
Did you find the reason/solution for it?

I suppose that:
1. uname is/was reporting wrong architecture on your machine. It is possible in specific cases, but AFAIK there is no better way to check it. We could use "getconf LONG_BIT" instead, but it also can report wrong value if you run for example 32-bit getconf on 64-bit kernel, in chrooted environment etc...
2. You don't/didn't have installed basic 32-bit libraries such as glibc, libgcc, libstdc++ and this is the reason that 32-bit version doesn't run for you.