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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-21-2005, 05:33 PM
|
#1
|
Member
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100
Rep:
|
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?
|
|
|
02-21-2005, 05:46 PM
|
#2
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
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?
|
|
|
02-21-2005, 05:51 PM
|
#3
|
Member
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100
Original Poster
Rep:
|
Yep, they're in there, added them when I had another problem. Is there no environment variable that will tell rpm where to look?
|
|
|
02-21-2005, 06:16 PM
|
#4
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
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).
|
|
|
02-21-2005, 06:33 PM
|
#5
|
Member
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100
Original Poster
Rep:
|
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,
|
|
|
02-21-2005, 08:32 PM
|
#6
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
If you are told you do not have a file you actually do have during a compile you probably need the development version.
|
|
|
All times are GMT -5. The time now is 08:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|