LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-04-2007, 09:34 AM   #1
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Rep: Reputation: 15
c++ runtime libs are missing (or not accessible)


Dear All,

I am using RedHat5 and trying to install some programs. However, after trying to start the program, i got the following error message.("cara_1.8.4_linux" is the program I want to run)


[wen@wenpc ~/CARA]$ cara_1.8.4_linux
cara_1.8.4_linux: error while loading shared libraries: libstdc++.so.5: cannot o pen shared object file: No such file or directory


Does this mean the c++ runtime libs are missing or not accessible in the path? If do, how can I get it work?

I am not a linux person. So please help! I will greatly appreciate your help! Thank you very much!
 
Old 06-04-2007, 09:56 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
That message usually means that the package is missing. You could try to install the libstdc++ package from repo if you can find one.

Red Hat 5 is horribly old release, you should change to a newer distro like Fedora 7 or CentOS.
 
Old 06-04-2007, 10:02 AM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Not that old if the OP means Red Hat Enterprise 5.

I assume that you need compat-libstdc++. Install it and do rpm -qpl to check whether it does provide libstdc++5.
 
Old 06-04-2007, 11:03 AM   #4
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Thank you. I am using Red Hat Enterprise 5.

I have all 5 disc. Can you show me how to install "libstdc++" step by step? (I am sorry to ask such trivial question, i reall don't know linux)
 
Old 06-04-2007, 11:23 AM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Applications > System Settings > Add/Remove Applications.

Locate the package in question (as I said, probably compat-libstc++), select and click on apply.

This implies that you have working internet.
 
Old 06-04-2007, 12:13 PM   #6
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Thank you so muuch for helping me.

I did the following: System> Add/Remove Software, after I typed root passwaod, a "Package Manager" window appears, from "all packages", i found the following one:


libstdc++ - 4.1.1-52.el5.i386- GNU Standard C++ library


It seems that this package is already installed.

Is this package too old? Or should I do a software updte? Do I have to do the updata through RedHat.com?
 
Old 06-04-2007, 12:17 PM   #7
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
I didn't find the package with name "compat-libstc++".
 
Old 06-04-2007, 12:20 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Did you look for compat-libstdc++?

And no, the package that is installed is not too old, on the contrary - which doesn't mean you should remove it; I'm sure that it is needed by other applications.

libstc++ is not new software so doing an update won't help in this case.
 
Old 06-04-2007, 12:44 PM   #9
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Unfortunately, No.

libstdc++ is the only one I found.
 
Old 06-04-2007, 01:04 PM   #10
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
I found a website:

http://rpm2html.osmirror.nl/libstdc++.so.5.html

do you think the one " libstdc++-3.2.2-5.i386 " will be applicable for my case? I downloaded it, but i don't know how to install. I am sorry to waste you so much time.
 
Old 06-04-2007, 01:10 PM   #11
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Weird. I should be there somehow. Try this command from a terminal

su -
(root password)
yum install libstdc++.so.5

Does that return anything?

If that doesn't help, you can install that file you found. But this is not the recommended way: the package is apparently more than a year old and it may at some point start producing issues with later packages.

If you do want to install it, place it on your desktop, then from a terminal:

cd /home/username/Desktop
rpm -ivh [name of the package]

If it installs, the downloaded file can be deleted (or saved somewhere else for later use).

Last edited by jay73; 06-04-2007 at 01:15 PM.
 
Old 06-04-2007, 01:17 PM   #12
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Thank you so much. The following is what I got:

[root@wenwenbapc wenwenba]# yum install libstdc++.so.5
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: libstdc++.so.5
Nothing to do
[root@wenwenbapc wenwenba]#
 
Old 06-04-2007, 01:21 PM   #13
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Is it possible the path is not correctly set so that my program couldn't find the libstdc++?
 
Old 06-04-2007, 01:22 PM   #14
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
OK, yum can't find it either - which is normal: it can only install packages listed in Add/Remove Applications. I assume that you could easily find the package if you registered with Red Hat but I don't know whether you intend to. If not, installing the package you already downloaded is the only option (other than installing a free version of Red Hat).
 
Old 06-04-2007, 01:27 PM   #15
littlewenwen
Member
 
Registered: Mar 2007
Posts: 32

Original Poster
Rep: Reputation: 15
Here is the result after I tried to install the downloaded file:


[root@wenwenbapc Desktop]# rpm -ivh libstdc++-3.2.2-5.i386.rpm
warning: libstdc++-3.2.2-5.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
package libstdc++-4.1.1-52.el5 (which is newer than libstdc++-3.2.2-5) is already installed
[root@wenwenbapc Desktop]#
 
  


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
Missing Dependecny: XFree86-libs??? universalguitarist Linux - Newbie 4 05-29-2006 01:04 PM
swaret and missing libs masterross Slackware 3 05-08-2006 12:13 PM
OpenGL libs missing? bertNernie Programming 4 02-12-2006 06:17 AM
always missing some libs. txotxo SUSE / openSUSE 3 10-03-2005 04:36 PM
Missing curl-libs compiling GRIP senorsnor Slackware 7 10-18-2004 10:54 PM

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

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