LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error while loading shared libraries: libstdc++.so.5 (https://www.linuxquestions.org/questions/linux-newbie-8/error-while-loading-shared-libraries-libstdc-so-5-a-776577/)

an_sush 12-17-2009 10:44 PM

error while loading shared libraries: libstdc++.so.5
 
Hi,
I am trying to install Sun JDK on Ubuntu 9.04 (64 bit hardware). I get the following error:

Code:

# ./java_ee_sdk-5_08-jdk-6u17-linux.bin
./java_ee_sdk-5_08-jdk-6u17-linux.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

I tried some ways to install the library but in vain:
Code:

# yum install compat-libstdc++
Setting up Install Process
Parsing package install arguments
No package compat-libstdc++ available.
Nothing to do
# yum install compat-libstdc++.so.5
Setting up Install Process
Parsing package install arguments
No package compat-libstdc++.so.5 available.
Nothing to do

Kindly help.

Doc Kaos 12-18-2009 08:26 AM

Did you try just
Code:

yum install libstdc++.i386
You could check if it's already there and this is not some other problem:
Code:

/usr/lib/libstdc++.so.5

~sHyLoCk~ 12-18-2009 08:29 AM

Quote:

I am trying to install Sun JDK on Ubuntu 9.04
Since when does ubuntu use yum?

an_sush 12-18-2009 08:49 AM

Quote:

Originally Posted by Doc Kaos (Post 3796726)

You could check if it's already there and this is not some other problem:
Code:

/usr/lib/libstdc++.so.5

I can see this:
Code:

/usr/lib# ls | grep libstdc++
libstdc++.so.6
libstdc++.so.6.0.10

So I presume libstdc++.so.6 is present (a higher version)

any idea how to solve the problem?

an_sush 12-18-2009 08:51 AM

Quote:

Originally Posted by ~sHyLoCk~ (Post 3796731)
Since when does ubuntu use yum?

Well I am a newbie and browsed some forums and got this tip...so i installed yum and was trying to install the shared library...
is there any simple way?

~sHyLoCk~ 12-18-2009 08:59 AM

Quote:

Originally Posted by an_sush (Post 3796751)
Well I am a newbie and browsed some forums and got this tip...so i installed yum and was trying to install the shared library...
is there any simple way?

Looks like I am a newbie too, I never knew there was a yum package for ubuntu, then again I have a very little knowledge about debian and ubuntu. The default package manager for ubuntu is apt-get. So first do this:

Code:

sudo apt-get update
sudo apt-cache search libstdc++

See if you see the package. If you do then install using:

Code:

sudo apt-get install libstdc++
Regards

knudfl 12-18-2009 10:51 AM

The package name is libstdc++5

sudo apt-get install libstdc++5

an_sush 12-19-2009 12:22 AM

Quote:

Originally Posted by knudfl (Post 3796895)
The package name is libstdc++5

sudo apt-get install libstdc++5


Thanks I was able to install the so


All times are GMT -5. The time now is 12:38 AM.