LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   Shared Libraries error when trying to install game server (https://www.linuxquestions.org/questions/linux-games-33/shared-libraries-error-when-trying-to-install-game-server-187306/)

bluelaguna 05-29-2004 08:44 AM

Shared Libraries error when trying to install game server
 
Hello, I'm trying to install a game server for a game called Cube on my RedHat 7.3 server. However, when I try to run the binary i get:

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

However, when I ls /usr/lib/ i find the following files among them.

libstdc++-libc6.1-1.so.2
libstdc++-libc6.2-2.a.3
libstdc++-libc6.2-2.so.3
libstdc++.so.2.7.2
libstdc++.so.2.7.2.8
libstdc++.so.2.8
libstdc++.so.2.8.0
libstdc++.so.2.9
libstdc++.so.2.9.dummy
libstdc++.so.5

Oliv' 05-30-2004 09:30 AM

Hello,

so what's the output of:
Code:

ldd ./linux_server
It shows you where it tries to find libraries... Usually, you have issues like yours when libraries are stored in /usr/local/lib or unusual lib directories...
What you can try to solve this is to set LD_LIBRARY_PATH variable to:
Code:

LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib/
Oliv'

bluelaguna 05-31-2004 09:05 AM

Don't worry about it, I've fixed it.


All times are GMT -5. The time now is 01:45 PM.