LinuxQuestions.org
Register a domain and help support LQ
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 12-17-2009, 10:44 PM   #1
an_sush
Member
 
Registered: Nov 2008
Posts: 46

Rep: Reputation: 15
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.
 
Old 12-18-2009, 08:26 AM   #2
Doc Kaos
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
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

Last edited by Doc Kaos; 12-18-2009 at 08:32 AM.
 
Old 12-18-2009, 08:29 AM   #3
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
I am trying to install Sun JDK on Ubuntu 9.04
Since when does ubuntu use yum?
 
Old 12-18-2009, 08:49 AM   #4
an_sush
Member
 
Registered: Nov 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Doc Kaos View Post

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?
 
Old 12-18-2009, 08:51 AM   #5
an_sush
Member
 
Registered: Nov 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ~sHyLoCk~ View Post
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?
 
Old 12-18-2009, 08:59 AM   #6
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by an_sush View Post
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

Last edited by ~sHyLoCk~; 12-18-2009 at 10:54 AM.
 
Old 12-18-2009, 10:51 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,623

Rep: Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528Reputation: 2528
The package name is libstdc++5

sudo apt-get install libstdc++5
 
Old 12-19-2009, 12:22 AM   #8
an_sush
Member
 
Registered: Nov 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
The package name is libstdc++5

sudo apt-get install libstdc++5

Thanks I was able to install the so
 
  


Reply


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
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM
error while loading shared libraries: libstdc++.so.5 iNvIsIbLe HaNd Fedora 6 09-19-2007 01:32 PM
error while loading shared libraries: libstdc++.so.5 slackr007 Linux - Newbie 1 09-07-2006 06:08 AM
error while loading shared libraries: libstdc++.so.6 RH9.0 vks_agra Red Hat 3 01-21-2006 08:48 AM


All times are GMT -5. The time now is 06:46 AM.

Main Menu
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