LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   c++ runtime libs are missing (or not accessible) (https://www.linuxquestions.org/questions/linux-newbie-8/c-runtime-libs-are-missing-or-not-accessible-559046/)

littlewenwen 06-04-2007 09:34 AM

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!

Zmyrgel 06-04-2007 09:56 AM

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.

jay73 06-04-2007 10:02 AM

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.

littlewenwen 06-04-2007 11:03 AM

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)

jay73 06-04-2007 11:23 AM

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.

littlewenwen 06-04-2007 12:13 PM

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?

littlewenwen 06-04-2007 12:17 PM

I didn't find the package with name "compat-libstc++".

jay73 06-04-2007 12:20 PM

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.

littlewenwen 06-04-2007 12:44 PM

Unfortunately, No.

libstdc++ is the only one I found.

littlewenwen 06-04-2007 01:04 PM

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.

jay73 06-04-2007 01:10 PM

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).

littlewenwen 06-04-2007 01:17 PM

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]#

littlewenwen 06-04-2007 01:21 PM

Is it possible the path is not correctly set so that my program couldn't find the libstdc++?

jay73 06-04-2007 01:22 PM

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).

littlewenwen 06-04-2007 01:27 PM

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]#


All times are GMT -5. The time now is 09:33 AM.