LinuxQuestions.org
Review your favorite Linux distribution.
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 11-22-2007, 07:30 PM   #1
bangqian.chen
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Red face RH9.3 install gcc4.2.2 ,libstdc++.so.6 problem


I have installed the gcc4.2.2 on my system,with the defaut install steps:
tar ...
cd /tmp/Download/gcc-4.2.2
./configure
make
make install

ok,no problem,after than run g++ -v, show my g++ version is 4.2.2
while compile a simple hello world program with no error,but run the problem ./a.out, it print the fellowing information:

[root@chbq test]# ./a.out
./a.out: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

[root@chbq test]# whereis libstdc++.so.6
libstdc++.so: /usr/lib/libstdc++.so.5 /usr/local/lib/libstdc++.so.6 /usr/local/lib/libstdc++.so

I found libstdc++.so.6 is installed,but I don't know set libstdc++.so.6 as my default link,can you give me some advise? thank you !
 
Old 11-22-2007, 08:10 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
Quote:
cp /usr/local/lib/libstdc++.so.6 /usr/lib/libstdc++.so.6
that should do it.

by the way,
upgrade to Fedora 8, its high time.

Last edited by w3bd3vil; 11-26-2007 at 06:53 AM.
 
Old 11-22-2007, 09:05 PM   #3
bangqian.chen
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I have copy the file to that directory, and copy another file libgcc_s.so.1 to the /lib,run the program without problem, I don't make sure this is a right way for this problem, I don't found other problem just now.thank you

Quote:
Originally Posted by w3bd3vil View Post
that should do it.

by the way,
upgrade to Fedora 8, it high time.
 
Old 11-22-2007, 10:05 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
AFAIK there's no such thing as RH 9.3... maybe he meant 7.3?
 
Old 12-11-2007, 08:44 PM   #5
Eliaquim
LQ Newbie
 
Registered: Dec 2007
Location: Cebu, Phillippines
Posts: 6

Rep: Reputation: 0
Smile Thanks guys

I appreciate your help........ coz I have the same problem, I'm so thankful that I found this topic
 
  


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
[SOLVED] gcc4.1.1 install issue. brave heart Red Hat 8 08-27-2007 04:13 AM
install GCC3.2 but remain GCC4.1 in FC6 oneday Linux - Software 1 08-22-2007 05:51 AM
Thunderbird - install problem - libstdc++.so.5 greengrocer Linux - Newbie 1 06-28-2006 06:33 AM
trying to install gcc4.3 from downloaded archive piccolo solo Linux - Software 15 04-09-2006 03:19 AM
Missing libstdc++ / GCC4 Make Errors Kenji Miyamoto Slackware 2 05-27-2005 08:13 AM

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

All times are GMT -5. The time now is 09:43 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