Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error while loading shared libraries

Status
Not open for further replies.

dwilko

Technical User
Feb 20, 2002
113
GB
I have program that for monitoring a a game server it called Moh Mon but when I run I get the following error

./mon_server: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

any Ideas on how to get it running?



Thanks

________________________________________
I help Where I can, If My advice Dont work Or Is Wrong then tell Me
 
I just dealt with this using Gentoo and trying to get Xine-lib compiled. The problem in this case was it was trying to reference a shared lib that didn't exist anymore after a gcc upgrade.

In order to fix it there was a script called fix_libtool_files.sh that I ran to fix all the old links referring to the non-existent gcc version.

I don't know honestly if you'll have that on your system (if it's not Gentoo), but may be worth a shot.

use "fix_libtool_files.sh <gcc-version>" to run it.

gcc-version will be whatever version you are running, (i.e., 3.4.2, 3.3.3, etc).

Hope that helps and fixes your problem.



J.R.
 
You need to install the package compat-libstdc++


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
do have a link where I can download it
or is there a command to put compat-libstdc++ on it

I dont know if its had a gcc upgrate but the again I dont know what gcc is lol but thats prob cos am new linux

its a redhat 9 dedi server which is rented

________________________________________
I help Where I can, If My advice Dont work Or Is Wrong then tell Me
 
I'd go at it from the other end. Download the source for mon and build it on your target system. That way it's linked against the shared libraries on your system, not the ones installed on the system your binary package got built on. That way you're not making system-wide changes that could have unexpected effects on other programs.

----
JBR
 
if you are using apt, then the command:

apt-get install compat-libstdc++

should get you the packages you want. If you don't have apt, get it from

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
thanks zeland it works now :)

flugh - couldnt download the source

________________________________________
I help Where I can, If My advice Dont work Or Is Wrong then tell Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top