LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-27-2004, 09:38 AM   #1
pinguwin
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
g++ missing shared objects


I suspect that this isn't difficult, but I'm stumped. Sorry if it is too easy.

I ran c++ programs on redhat 7.2 just fine, when I move to RH9, I have problems at runtime. I get:

a.out: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

I've just installed gcc 3.4 (compiled and installed from the source). I get a version of 3.4.0 when I do a "gcc --version" and it appeared to install correctly. No special libraries should be required as it is only trying to execute helloworld.cc

I tried to add: /usr/local/lib to /etc/ld.so.conf and ran ldconfig and I've also modified the LD_LIBRARY_PATH

This resulted in the following problem at runtime:

/lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/local/lib/libstdc++.so.6)

I see it's mentioning gcc 3.3.

Any idea how to make the programs run and is the second message a step forward or backward? Should I install gcc from an rpm? I'm out of ideas.

Allison
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/usr/local/lib not searched for shared objects in Redhat/Fedora? Arodef Programming 2 09-23-2005 01:44 AM
Dynamically sized objects in shared memory jtshaw Programming 2 03-16-2005 11:12 AM
any links on linking, loading shared libraries, shared objects. etc? ananthbv Programming 0 02-03-2005 08:47 AM
Creating Shared objects Anup Kumar Programming 1 09-12-2004 12:45 AM
shared libraries missing? wkgreen Linux - Newbie 1 02-08-2004 03:01 AM


All times are GMT -5. The time now is 11:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration