Bug: Strange libstdc++.so.5 Problem in Fedora 7



After installing jdk-6u2 for Linux from Sun Microsystems’ site, when I ran javaws it gave strange error that libstdc++.so.5 not found and it aborted. I searched for libstdc++.so.5 and it was not there in /usr/lib/ as expected. That implied something is wrong. As I installed jdk-6u2 from rpms, it should have given dependency error for the particular library, bit it didn’t. After searching for sometime I found that libstdc++.so.5 is provided by compat-libstdc++-33 package, which was not installed on my system. After I installing the particular package, everything worked fine.

It worked fine for Fedora Core 6 because compat-libstdc++-33 is provided by default in Fedora Core 6.

But its kind of strange that if libstdc++.so.5 and hence compat-libstdc++-33 is required for jdk-6u2 then why ‘rpm -ivh’ didn’t give dependency error.


Share

  • del.icio.us
  • Digg
  • Twitter
  • StumbleUpon
  • Reddit

Related Posts

Bug: Strange libstdc++.so.5 Problem in Fedora 7

{ 6 comments… read them below or add one }

1 Jayasanker August 24, 2007 at 7:34 AM

I did face the same issue . What i fount was thw lib was missing.
so,
yum install compat-libstdc++*
solved my problem.

Reply

2 Jonathan September 15, 2009 at 10:57 PM

That worked for me too to install Java 5 on Fedora 11, thanks :-)

yum install compat-libstdc++*

Reply

3 Kulbir Saini September 16, 2009 at 9:08 AM

Cool :) I wonder why didn’t they fix it already.

Reply

4 General Bordeaux August 24, 2007 at 8:55 AM

@Jayasanker
yum install compat-libstdc++* and installing compat-libstdc++-33 from rpm is one and the same thing. :D

Reply

5 chikkalli June 14, 2008 at 12:55 PM

I am facing the same problem. checked /usr/lib, it has libstdc++.s.6.

Still the facing problem

Reply

6 kulbirsaini June 14, 2008 at 7:25 PM

If you have 64bit operating system, try looking /usr/lib64/ .

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Previous post: How To: Configure Procmailrc to Reduce Spam

Next post: How To: Install and Configure Looking Glass 3D Desktop