LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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



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 12:44 AM
Dynamically sized objects in shared memory jtshaw Programming 2 03-16-2005 10:12 AM
any links on linking, loading shared libraries, shared objects. etc? ananthbv Programming 0 02-03-2005 07:47 AM
Creating Shared objects Anup Kumar Programming 1 09-11-2004 11:45 PM
shared libraries missing? wkgreen Linux - Newbie 1 02-08-2004 02:01 AM

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

All times are GMT -5. The time now is 01:00 AM.

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