Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problems with shared libraries

Zane Reymont
Registered User
Join date: 10 Dec 2005
Posts: 11
02-01-2006 15:57
Hi,

Just tried to run the Linux client. I get this:

bin/secondlife-bin: error while loading shared libraries: libz.so: cannot open shared object file: No such file or directory

I tried setting LD_LIBRAY_PATH to the lib directory and even copied the libraries to /usr/local/lib - no luck.

This is on Ubuntu Breezy. Anyone else get this?
Grim Ash
Registered User
Join date: 13 Jan 2006
Posts: 11
02-01-2006 16:11
Yes, I did
AMD64 version

I just renamed lib/libz.so.1 to lib/libz.so and then it did work
Don Linden
Bug Reaper
Join date: 14 Jun 2004
Posts: 58
02-01-2006 16:12
Try this:

CODE

cd SecondLife-linux-02012006/lib
ln -s libz.so.1 libz.so
_____________________
Its not a glitch, its a feature.
Havoc Strauss
Registered User
Join date: 6 Jan 2006
Posts: 11
02-01-2006 16:12
From: Zane Reymont
Hi,

Just tried to run the Linux client. I get this:

bin/secondlife-bin: error while loading shared libraries: libz.so: cannot open shared object file: No such file or directory

Yes, you shouldn't be running the binary directly, you should use the ./secondlife script. If you must, use:

% LD_LIBRARY_PATH=lib bin/secondlife-bin

From: Zane Reymont

I tried setting LD_LIBRAY_PATH to the lib directory and even copied the libraries to /usr/local/lib - no luck.

Ouch! Do *not* do things like that! You could be overwriting your system libraries.

- C.
Zane Reymont
Registered User
Join date: 10 Dec 2005
Posts: 11
02-01-2006 16:17
Created the symlink and now get:

bin/secondlife-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Hello Toonie
Registered User
Join date: 25 Jul 2005
Posts: 212
02-01-2006 16:26
From: Zane Reymont
Created the symlink and now get:

bin/secondlife-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

libstdc++.so.5 seems to be omitted from enough distros that the linux versions of Doom3 and Quake4 ship with a version bundled. You can probably just use the version from the linux Doom3/Quake4 demos! I guess it would be good if SL bundled this lib too, and any other vaguely-possibly-maybe-missing ones. I dunno.
Don Linden
Bug Reaper
Join date: 14 Jun 2004
Posts: 58
02-01-2006 16:27
Zane, please cut and paste the output from the following commands:

CODE

cd SecondLife-linux-02012006
LD_LIBRARY_PATH=lib ldd bin/secondlife-bin
_____________________
Its not a glitch, its a feature.
Nathan Stewart
Registered User
Join date: 2 Feb 2005
Posts: 1,039
02-01-2006 16:54
I had the same error, managed to fix it and get sl running by installing a copy of gcc3.2, fedora 4 is shipping with gcc 4.0
_____________________
Elberg Control
Wandering Loon
Join date: 24 Aug 2005
Posts: 79
02-01-2006 22:37
Yeah, basically if your system is using gcc-4 you're going to have a newer version of the libstdc++ library than the client can use, so if there's a gcc-3.x (3.3.6 here) package available for your distro, drop that in and the problem should go right away).
Merrick Moose
Registered User
Join date: 20 Oct 2005
Posts: 191
Ubuntu (Dapper Drake) *ALPHA*
04-16-2006 21:55
I get an error as well. System (uname -a): Linux huskeh 2.6.15-20-amd64-k8 #1 SMP PREEMPT Tue Apr 4 18:03:46 UTC 2006 x86_64 GNU/Linux

bin/secondlife-bin: error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory

--edit--
I should add more so this has context. libuuid.so.1 exists in /lib where it should be as a symlink to libuuid.so.1.2 and even when the sym link is replaced with libuuid.so.1 it fails.
Output from: LD_LIBRARY_PATH=lib ldd bin/secondlife-bin

cut to the only file not found: libuuid.so.1 => not found
MC Seattle
Registered User
Join date: 3 Apr 2006
Posts: 63
04-17-2006 00:41
From: Merrick Moose
I get an error as well. System (uname -a): Linux huskeh 2.6.15-20-amd64-k8 #1 SMP PREEMPT Tue Apr 4 18:03:46 UTC 2006 x86_64 GNU/Linux

bin/secondlife-bin: error while loading shared libraries: libuuid.so.1: cannot open shared object file: No such file or directory

--edit--
I should add more so this has context. libuuid.so.1 exists in /lib where it should be as a symlink to libuuid.so.1.2 and even when the sym link is replaced with libuuid.so.1 it fails.
Output from: LD_LIBRARY_PATH=lib ldd bin/secondlife-bin

cut to the only file not found: libuuid.so.1 => not found


I had this problem in Ubuntu Dapper (latest as of a few days ago), but I think it was because I was on an AMD64 platform and it needs 32-bit libraries. Fixed it by running secondlife inside a 32-bit chroot. We really need a 64-bit port of the SL client...
Merrick Moose
Registered User
Join date: 20 Oct 2005
Posts: 191
04-17-2006 01:40
From: MC Seattle
I had this problem in Ubuntu Dapper (latest as of a few days ago), but I think it was because I was on an AMD64 platform and it needs 32-bit libraries. Fixed it by running secondlife inside a 32-bit chroot. We really need a 64-bit port of the SL client...


The libraries are supposed to be 32 bit compatible. libuuid is 64 bit but that shouldn't matter. It seems odd that the other 64 bit libs did not throw out like this one did.

--edit--
Using 'linux32 ./secondelife' gives the same error, this quite likely is not a 32/64 bit related problem. Anyone else have an idea.

linux32 uname -a -> Linux huskeh 2.6.15-20-amd64-k8 #1 SMP PREEMPT Tue Apr 4 18:03:46 UTC 2006 i686 GNU/Linux

uname -a -> Linux huskeh 2.6.15-20-amd64-k8 #1 SMP PREEMPT Tue Apr 4 18:03:46 UTC 2006 x86_64 GNU/Linux

--edit #2--

That was the problem. libuuid.so.1 in Ubuntu Dapper Drake x86_64 is not reverse compatible to 32 mode with SL. This was the only thing keeping it from running on the 64bit system, libuuid.so.1 should probably come with SL as 32bit where secondlife-bin knows where to look at it. Otherwise people will have to install the i386 chroot environment to get the library needed to run secondlife. Or a x86_64 port would be nice too.

How about 24 bit color depth? :D
Kingfield Zapotocky
Registered User
Join date: 17 Jul 2006
Posts: 8
07-17-2006 23:34
From: Don Linden
Zane, please cut and paste the output from the following commands:

CODE

cd SecondLife-linux-02012006
LD_LIBRARY_PATH=lib ldd bin/secondlife-bin

well i have the same problem, so i may as well do this as well~ here i get this

linux-gate.so.1 => (0xffffe000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb7f56000)
libGLU.so.1 => lib/libGLU.so.1 (0xb7ed9000)
libSDL-1.2.so.0 => lib/libSDL-1.2.so.0 (0xb7e4a000)
libapr-1.so.0 => lib/libapr-1.so.0 (0xb7e27000)
libaprutil-1.so.0 => lib/libaprutil-1.so.0 (0xb7e12000)
libboost_regex-gcc-1_32.so.1.32.0 => lib/libboost_regex-gcc-1_32.so.1.32.0 (0xb7d99000)
libcrypto.so.0.9.7 => lib/libcrypto.so.0.9.7 (0xb7ca6000)
libcurl.so.3 => lib/libcurl.so.3 (0xb7c78000)
libexpat.so.1 => lib/libexpat.so.1 (0xb7c58000)
libfreetype.so.6 => lib/libfreetype.so.6 (0xb7bee000)
libjpeg.so => lib/libjpeg.so (0xb7bcd000)
libkdu_v42R.so => lib/libkdu_v42R.so (0xb7b4e000)
libogg.so.0 => lib/libogg.so.0 (0xb7b49000)
libssl.so.0.9.7 => lib/libssl.so.0.9.7 (0xb7b1b000)
libvorbis.so.0 => lib/libvorbis.so.0 (0xb7afc000)
libvorbisenc.so.0 => lib/libvorbisenc.so.0 (0xb7a84000)
libvorbisfile.so.0 => lib/libvorbisfile.so.0 (0xb7a7e000)
libxmlrpc.so.0 => lib/libxmlrpc.so.0 (0xb7a56000)
libz.so => lib/libz.so (0xb7a43000)
libstdc++.so.5 => lib/libstdc++.so.5 (0xb7989000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7967000)
libgcc_s.so.1 => lib/libgcc_s.so.1 (0xb795e000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb782e000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7748000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb773b000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb7736000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7724000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7721000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb7719000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb7711000)
libcrypt.so.1 => /lib/tls/i686/cmov/libcrypt.so.1 (0xb76e4000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb76e1000)
libdb-4.2.so => not found
libz.so.1 => lib/libz.so.1 (0xb76cd000)
/lib/ld-linux.so.2 (0xb7fce000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb76ca000)
Zi Ree
Mrrrew!
Join date: 25 Feb 2006
Posts: 723
07-18-2006 01:43
Once again the libdb-4.2.so problem.

Please do a forum search on this library (Berkeley Database Library Version 4.2) and install it (if you are on a 64 bit machine, install the 32 bit compatibility version).

If you're experienced with the command line, you can also create a symlink from a newer libdb (say, 4.3) to 4.2.
_____________________
Zi!

(SuSE Linux 10.2, Kernel 2.6.13-15, AMD64 3200+, 2GB RAM, NVidia GeForce 7800GS 512MB (AGP), KDE 3.5.5, Second Life 1.13.1 (6) alpha soon beta thingie)

Blog: http://ziree.wordpress.com/ - QAvimator: http://qavimator.org

Second Life Linux Users Group IRC Channel: irc.freenode.org #secondlifelug
Kingfield Zapotocky
Registered User
Join date: 17 Jul 2006
Posts: 8
07-18-2006 02:30
yeah, i did that now i get a fcuken error msg,