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 08-10-2005, 08:46 PM   #1
lashnjo
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva
Posts: 14

Rep: Reputation: 0
libstdc++.so.5 problems


yo, been having this problem for awhile

./firefox-installer-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

how can I install libstdc?

thanks
lashnjo
 
Old 08-11-2005, 03:29 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Code:
#urpmi libstdc++5
 
Old 08-11-2005, 03:29 PM   #3
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
I have experianced the same issue on Fedora, what you should do is download the correct libraries from

http://gcc.gnu.org/libstdc++/index.html

With Fedora I just used my packaging system (APT) and downloaded them. I hope that helps you.
 
Old 08-16-2005, 02:05 AM   #4
terrence
LQ Newbie
 
Registered: Aug 2005
Location: carribean
Distribution: fedora core 4
Posts: 26

Rep: Reputation: 15
to previous

i too am using fedora
what is the packaging ATP you speak of
because i have the same issues

thanks
 
Old 08-18-2005, 08:38 AM   #5
garvint
LQ Newbie
 
Registered: May 2005
Location: Closer than you think.
Distribution: Mandriva (latest)
Posts: 23

Rep: Reputation: 15
GCC

It's now part of GCC as of version 3.0.
 
Old 08-18-2005, 10:02 AM   #6
ben201
LQ Newbie
 
Registered: Jun 2005
Posts: 19

Rep: Reputation: 0
Re: to previous

Quote:
Originally posted by terrence
i too am using fedora
what is the packaging ATP you speak of
because i have the same issues

thanks
Here you go, libstdc++.so.5 rpm
http://rpm.pbone.net/index.php3/stat....i386.rpm.html
 
Old 08-18-2005, 02:11 PM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
On Fedora, the right way to solve this problem is doing,
Code:
#yum install compat-libstdc++-33

Last edited by reddazz; 08-18-2005 at 02:12 PM.
 
Old 08-19-2005, 09:59 AM   #8
garvint
LQ Newbie
 
Registered: May 2005
Location: Closer than you think.
Distribution: Mandriva (latest)
Posts: 23

Rep: Reputation: 15
Quote:
Originally posted by reddazz
Code:
#urpmi libstdc++5
I tried doing this and got silence. Does this mean it's already installed? I'm trying to install kdirstat and get the following:

rpm -i kdir*
error: Failed dependencies:
libstdc++.so.5 is needed by kdirstat-2.4.0-0.i586
libstdc++.so.5(CXXABI_1.2) is needed by kdirstat-2.4.0-0.i586
libstdc++.so.5(GLIBCPP_3.2) is needed by kdirstat-2.4.0-0.i586
 
Old 08-24-2005, 12:06 PM   #9
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 9
Posts: 127

Rep: Reputation: 15
I tried installing the libraries and all seemed to go well until - suddenly - a problem.

This is what I got.


Code:
Setting up Install Process
Setting up repositories
updates-released          100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 354 kB    00:01
updates-re: ################################################## 968/968
Added 968 new packages, deleted 0 old in 9.59 seconds
primary.xml.gz            100% |=========================| 632 kB    00:03
extras    : ################################################## 1813/1813
Added 1813 new packages, deleted 0 old in 12.70 seconds
primary.xml.gz            100% |=========================| 824 kB    02:32
base      : ################################################## 2772/2772
Added 2772 new packages, deleted 0 old in 17.26 seconds
Parsing package install arguments
Examining compat-libstdc++-33-3.2.3-47.fc4.i386.rpm: compat-libstdc++-33 - 3.2.3-47.fc4.i386
Marking compat-libstdc++-33-3.2.3-47.fc4.i386.rpm to be installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package compat-libstdc++-33.i386 0:3.2.3-47.fc4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 compat-libstdc++-33     i386       3.2.3-47.fc4     compat-libstdc++-33-3.2.3-47.fc4.i386.rpm  716 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 716 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
public key not available for compat-libstdc++-33-3.2.3-47.fc4.i386.rpm
What else do I need to know?
 
Old 08-24-2005, 12:41 PM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally posted by garvint
I tried doing this and got silence. Does this mean it's already installed? I'm trying to install kdirstat and get the following:

rpm -i kdir*
error: Failed dependencies:
libstdc++.so.5 is needed by kdirstat-2.4.0-0.i586
libstdc++.so.5(CXXABI_1.2) is needed by kdirstat-2.4.0-0.i586
libstdc++.so.5(GLIBCPP_3.2) is needed by kdirstat-2.4.0-0.i586
Try going to easyurpmi and configure the main, contrib, plf and update repositories for your version of Mandriva. Once thats done, do as root
Code:
#urpmi.update -a
#urpmi --auto-select
#urpmi libstdc++5
 
Old 08-24-2005, 12:44 PM   #11
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
What else do I need to know?
Try doing as root,
Code:
#rpm --import http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/RPM-GPG-KEY
#yum install compat-libstdc++-33

Last edited by reddazz; 08-24-2005 at 12:45 PM.
 
Old 08-30-2005, 12:13 PM   #12
siuminglinux
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Wink

[root@localhost Desktop]# yum install compat-libstdc++-33
Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for compat-libstdc++-33 to pack into transaction set.
compat-libstdc%2B%2B-33-3 100% |=========================| 2.7 kB 00:00
---> Package compat-libstdc++-33.i386 0:3.2.3-47.fc4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
compat-libstdc++-33 i386 3.2.3-47.fc4 base 228 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 228 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): compat-libstdc++-3 100% |=========================| 228 kB 00:01
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
public key not available for compat-libstdc++-33-3.2.3-47.fc4.i386.rpm
Retrieving GPG key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Importing GPG key 0x4F2A6FD2 "Fedora Project <fedora@redhat.com>"
Is this ok [y/N]: y
Key imported successfully
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: compat-libstdc++-33 ######################### [1/1]

Installed: compat-libstdc++-33.i386 0:3.2.3-47.fc4
Complete!
 
Old 08-30-2005, 03:34 PM   #13
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
FYI, looking at this issue from a "non-packaged" perspective, modules are expected to be found in /lib, /usr/lib, or any directory listed in /etc/ld.so.conf.

If you noodle around those directories, you'll notice that this directory contains a lot of variously-named files and "symbolic links" (indicated by "->") such as:
Code:
/lib/libssl.so.0.9.6b
/lib/libssl.so.0.9.7 -> libssl.so.0.9.7a
/lib/libssl.so.0.9.7a
/lib/libssl.so.2 -> libssl.so.0.9.6b
/lib/libssl.so.4 -> libssl.so.0.9.7a
/lib/libss.so.2 -> libss.so.2.0
/lib/libss.so.2.0
When a program wants to open a library, it can be generic (requesting "libssl.so.2") or it can be specific (I want "libssl.so.0.9.7a"). There will always be a symbolic-link for the major-version, such as "so.2."

There's just one more twist: the loader doesn't do a directory-search every time. It relies upon a library cache which is maintained by a program /sbin/ldconfig, which can only be run by root and which is normally run as part of package installation.

If a library that you expect to find "doesn't seem to be working," sometimes a re-run of ldconfig can fix it.
 
Old 08-30-2005, 09:09 PM   #14
siuminglinux
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Unhappy

I think the problem is caused by incomplete library installation since I did not install full package during Linux installation.
 
Old 09-23-2005, 04:14 AM   #15
tommyjh02
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by reddazz
Code:
#urpmi libstdc++5
I tried for hours and hours to get Real Player 10 Gold to install on Mandrake 2005 LE, and all I had to do was download the urpmi and then another few hours before I found this code posted. Thank you. Learning linux while I wait out this Hurricane Rita.
 
  


Reply

Tags
debian


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
uvscan on FC4, libstdc++.so.2.8 problems rhoekstra Fedora 7 11-01-2005 05:06 AM
problems finding libstdc++.la Penguin Dropout Linux - Software 5 04-11-2005 06:21 PM
RPM problems with libstdc++.so.6 dangerousdave Linux - Newbie 5 02-17-2005 09:12 PM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 10:30 AM


All times are GMT -5. The time now is 03:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration