LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 05-29-2004, 08:44 AM   #1
bluelaguna
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10 Official
Posts: 11

Rep: Reputation: 0
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
 
Old 05-30-2004, 09:30 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
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'
 
Old 05-31-2004, 09:05 AM   #3
bluelaguna
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake 10 Official
Posts: 11

Original Poster
Rep: Reputation: 0
Don't worry about it, I've fixed it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 08:34 AM
linux init error in loading shared shared libraries akaran Linux - Software 1 05-28-2003 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration