LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-14-2005, 08:49 AM   #1
dandelvec33
LQ Newbie
 
Registered: Apr 2005
Location: Evanston, IL
Distribution: Mandrake
Posts: 21

Rep: Reputation: 15
Firefox 1.0.2 trouble: libstdc++.so.5


Hello helpful Linux wizards!

Again, I am a super-newbie. I have just installed Mandrake Limited Edition 2005, and am trying to get a feel for the Linux world.

I'm trying to install Firefox 1.0.2, but I'm getting an error that I don't know how to resolve.

I'm going to the firefox website and downloading the file: firefox-1.0.2.installer.tar.gz. Then, I do the following:

tar -zxvf firefox-1.0.2.installer.tar.gz
cd firefox-1.0.2.installer
./firefox-installer

... which gives me the following error:

./firefox-installer-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

Can someone help an absolute newbie? Keep in mind, I'm very new w/ Linux! Thanks for any help you can provide!
 
Old 04-14-2005, 09:58 AM   #2
MA_D
Member
 
Registered: Apr 2005
Location: Iowa
Distribution: Archlinux/RHEL/FreeBSD
Posts: 41

Rep: Reputation: 15
locate libstdc++.so
Go to where the results are, and do something like this:
ln -s libstdc++.so libstdc++.so.5

Make sure you do not overwrite an existing file! man ln for more info. The -s is important.
 
Old 04-14-2005, 10:05 AM   #3
dandelvec33
LQ Newbie
 
Registered: Apr 2005
Location: Evanston, IL
Distribution: Mandrake
Posts: 21

Original Poster
Rep: Reputation: 15
When you say 'go to where the results are', do you mean to change to that directory?

What exactly does 'ln -s libstdc++.so libstdc++.so.5' do?
 
Old 04-14-2005, 10:26 AM   #4
dandelvec33
LQ Newbie
 
Registered: Apr 2005
Location: Evanston, IL
Distribution: Mandrake
Posts: 21

Original Poster
Rep: Reputation: 15
Ok, so I see that the 'ln -s...' will create a virtual link. Does this need to be done from the directory that the existing libstdc++.so file is located?
 
Old 04-14-2005, 10:30 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can use full path names or from within the directory where the file is located.
 
Old 04-14-2005, 10:35 AM   #6
dandelvec33
LQ Newbie
 
Registered: Apr 2005
Location: Evanston, IL
Distribution: Mandrake
Posts: 21

Original Poster
Rep: Reputation: 15
Smile

Thanks for the info, folks. I'll give it a shot tonight and let you know what happens!
 
Old 04-14-2005, 03:26 PM   #7
rpz
Member
 
Registered: Mar 2005
Posts: 126

Rep: Reputation: 15
That could work, but it's a hack. The problem is that you got the wrong version of the stdc++ library installed. (Wrong, as in incompatible with your binary file). I bet you have libstdc++.so.6, right?
You should download binaries for the right version if your operating system. My firefox is statically linked so I guess it all depends. Did you get it from mozilla.org or your distro mirror?

Last edited by rpz; 04-14-2005 at 03:27 PM.
 
Old 04-14-2005, 04:00 PM   #8
dandelvec33
LQ Newbie
 
Registered: Apr 2005
Location: Evanston, IL
Distribution: Mandrake
Posts: 21

Original Poster
Rep: Reputation: 15
I'm away from my box right now... not sure what version of libstdc++ I currently have... I'll find out in a few hours!

Not sure if this is what you were asking, but I downloaded the Firefox tar.gz file from mozilla.org.
 
Old 04-14-2005, 04:34 PM   #9
dandelvec33
LQ Newbie
 
Registered: Apr 2005
Location: Evanston, IL
Distribution: Mandrake
Posts: 21

Original Poster
Rep: Reputation: 15
Question

Would I be correct in assuming I should download the libstdc++5-3.3.4-4mdk.i586.rpm from rpm.pbone.net, or would I be better off trying the virtual link?
 
Old 04-14-2005, 05:16 PM   #10
MA_D
Member
 
Registered: Apr 2005
Location: Iowa
Distribution: Archlinux/RHEL/FreeBSD
Posts: 41

Rep: Reputation: 15
No, that is not a hack rpz. You shouldn't downgrade.. You can check into it, but they are probably binary compatible. I always try the symlink first. If it doesn't work you will know right away. These are pretty close, it's not like he's using a version that's 1 year newer!

But go ahead and fight the downgrade if you wish.
 
Old 04-14-2005, 11:12 PM   #11
dandelvec33
LQ Newbie
 
Registered: Apr 2005
Location: Evanston, IL
Distribution: Mandrake
Posts: 21

Original Poster
Rep: Reputation: 15
Question

The good news is I ended up installing the libstdc++ 5 rpm, and I was able to install Firefox!

The bad news is that it didn't seem to update my existing copy, rather installed a separate program on my desktop. How do I configure/move files so it will replace my older Firefox? (i.e., the old version is still being loaded in KDE through 'Web Browsers')

Do I have to install the file from a different directory? If so, where is the standard folder that Mandrake puts these types of files? I'm completely new to this file structure!

Thanks for any help you can offer!
 
Old 04-16-2005, 02:55 PM   #12
dandelvec33
LQ Newbie
 
Registered: Apr 2005
Location: Evanston, IL
Distribution: Mandrake
Posts: 21

Original Poster
Rep: Reputation: 15
Talking

Figured it out, thanks for all your help everyone! This site rocks. You are truly encouraging others to learn Linux!
 
Old 04-16-2005, 03:28 PM   #13
rpz
Member
 
Registered: Mar 2005
Posts: 126

Rep: Reputation: 15
Quote:
Originally posted by MA_D
No, that is not a hack rpz. You shouldn't downgrade.. You can check into it, but they are probably binary compatible. I always try the symlink first. If it doesn't work you will know right away. These are pretty close, it's not like he's using a version that's 1 year newer!

But go ahead and fight the downgrade if you wish.
You got me wrong. I did not suggest downgrading libstdc++, but getting the correct firefox binaries. Maybe I was unclear about this, sorry.
Usually editing symlinks like this by hand just results in undefined symbols and errors like that, because some functions may be missing. About the stdc++ library I don't know.

Last edited by rpz; 04-16-2005 at 03:30 PM.
 
Old 04-16-2005, 10:36 PM   #14
leafleaves
Member
 
Registered: Apr 2005
Posts: 57

Rep: Reputation: 15
i meet the same guestion in freebsd5.3 platplam
when i install realplay10 player,

i am in the trouble for a long time.
i have post a new thread in www.freebsdforum.org
about the file not found question .but nobody know it.

maybe this thread can help me.
thanks in advanced.
 
Old 04-17-2005, 03:10 AM   #15
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I had the same problem as you on FreebSD with RealPlayer. If I get a solution I'll post back.
 
  


Reply



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
FC4 doesn't have libstdc++.so.5 but libstdc++.so.6 baosheng Fedora 14 04-06-2008 10:08 AM
Firefox trouble SteveSch Debian 4 06-15-2005 08:13 PM
firefox trouble!!!! jaspreet85 Linux - Software 4 03-14-2005 01:20 PM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 09:30 AM
trouble with firefox sbcdivision63 Linux - Software 4 03-10-2004 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration