Monday Jun 28, 2010

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.



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