LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2005, 05:33 PM   #1
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Rep: Reputation: 15
What the hell is libstdc++?


I have had soo many rpms that have failed now because they cant find libstdc++.so.6... the file is already on my computer but I tried to get the latest version anyway, and when I tried to install that it said it cant find libstdc++.so.5 (even though thats there as well)!

I've successfully installed programs from source that wont work by rpm because of this dependency, so it must be something to do with the rpm set up(?). What is this library and is there anything I can do to force the rpms into seeing it?

Why does installing programs have to be such hassle?
 
Old 02-21-2005, 05:46 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
libstdc++ is the standard C++ libraries. Is the directory that libstdc++.so.6 and the one with libstdc++.so.5 in your /etc/ld.so.conf file?
 
Old 02-21-2005, 05:51 PM   #3
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Original Poster
Rep: Reputation: 15
Yep, they're in there, added them when I had another problem. Is there no environment variable that will tell rpm where to look?
 
Old 02-21-2005, 06:16 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Was your g++/gcc installed via rpm? RPM only knows about things it installed. In general if you are going to use a package manager at all you should use it for everything... especially things that are important dependencies to many packages (like libstdc++, which would be a dependancy for every package that contains any C++ code).
 
Old 02-21-2005, 06:33 PM   #5
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Original Poster
Rep: Reputation: 15
Ah, I did actually download the latest gcc and installed from source. An older version which has .so files up to .so.5 came with the distro i.e. /usr/lib/, but the .so.6 file is in /usr/local/lib, presumably from when I installed the latest gcc.

Is there no way I can tell rpm that its there? Are there any rpms for gcc (I found some but they were either old versions or for x86_64, etc)?

Cheers,
 
Old 02-21-2005, 08:32 PM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
If you are told you do not have a file you actually do have during a compile you probably need the development version.
 
  


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
FC4 doesn't have libstdc++.so.5 but libstdc++.so.6 baosheng Fedora 14 04-06-2008 11:08 AM
libstdc++.so.5 Cake Linux - Software 6 04-13-2005 02:24 AM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 10:30 AM
libstdc++ ponkanMonster Linux - Newbie 2 10-11-2004 05:34 AM
libstdc++.so.2.8 JimKyle Linux - Software 4 11-05-2003 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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