error while loading shared libraries: libstdc++.so.5

I have a habit of formatting the hard disk on my laptop every time a new version of Linux operating system or some variant of it is released.Every time I do that and start my work, I face this issue while installing Glassfish V2.

When I try to install Glassfish v2 (and many other applications) it reports with the following error message :

sreekanth@Auriferous:/space/Sreekanth/servers$ ./sges-2_1_1-linux.bin
./sges-2_1_1-linux.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

So I use our best friend Google to find out a solution.Then forget what I did next time.So I wanted to make a note of it some where this time so that I can refer back and may be it is useful for some other guys out there.So here goes the solution which works for me:

Download the needed libraries from here:

http://packages.debian.org/lenny/i386/libstdc++5/download

and then install using sudo dpkg -i libstdc++5_3.3.6-18_i386.deb

Thats all and If you know or come across a better solution , please post it  here.Thanks for reading.



Comments:

I have the same problem when trying to install Glassfish v2 on my Fedora 11.
I have a good question for -SUN- Oracle. WHY DO YOU SHIP BINARY DISTRIBUTIONS (elf) WHEN WE ARE TALKING ABOUT JAVA?????
JAVA - write once, run anywhere!!! Why the Glassfish v2 distribution is not jar?!?!??!?!?!

Posted by Sam on November 12, 2010 at 09:12 AM IST #

How did I fix this issue.
1. Locate libstdc++
# find /usr/ -iname libstdc++\*
I found:
/usr/lib/libstdc++.so.6
/usr/lib/libstdc++.so.6.0.12

2. Make a soft link
ln -s /usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so.5

Run ./sges-2_1_1-linux.bin to install glassfish

Posted by Sam on November 12, 2010 at 09:30 AM IST #

http://packages.debian.org/lenny/i386/libstdc++5/download - permiission denied :(

Posted by nema on May 06, 2012 at 01:02 AM IST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This is my personal blog.All the information here reflects my own thoughts and feelings and should not be taken as official information from Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today