LinuxQuestions.org
Visit Jeremy's Blog.
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 08-14-2005, 08:43 PM   #1
_UnPrEdictAbLe_
Member
 
Registered: Aug 2004
Location: Hyderabad, India
Distribution: Fedora Core 4
Posts: 183

Rep: Reputation: 30
Unhappy libstdc++ problem, 'rpm' also doesnt work :(


[root@localhost anurag]# rpm -Uvh libstdc++-4.0.1-4.fc4.i386.rpm
rpm: error while loading shared libraries: libstdc++.so.6: cannot open
shared object file: No such file or directory

This is what the error comes when I try to upgrade, run a file, firefox,
anything.

I had gcc-4.0.1-4.fc4 installed on my system. I was trying out with vmware.
It required me to use the same version of gcc as the kernel was compiled
with. So, I downgraded all the gcc and its dependencies and the things which
depended on it to the lower version(fc4 default). Now, its not able to run
anything. Is there any cure? Yeah, my gnome is working,
but no KDE, no Kaffeine, no firefox and not even the rpm command.
Please help asap.
 
Old 08-14-2005, 09:37 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Your best bet is probably to unpack the rpm on another system (you can use rpm2tgz and just untar it into a temp directory). Then just scp the root of it to / and you should be ok... providing you can use scp.

If you can't, boot off a live cd, mount your file system to a temp mount point, and do it from there.
 
Old 08-14-2005, 09:53 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I had gcc-4.0.1-4.fc4 installed on my system. I was trying out with vmware.
It required me to use the same version of gcc as the kernel was compiled
with."

Wouldn't it have been easier to recompile your kernel with gcc-4.0.1-4.fc4 than trying to downgrade gcc?

--------------------------
Steve Stites
 
Old 08-15-2005, 02:40 AM   #4
_UnPrEdictAbLe_
Member
 
Registered: Aug 2004
Location: Hyderabad, India
Distribution: Fedora Core 4
Posts: 183

Original Poster
Rep: Reputation: 30
It was easier to downgrade GCC. With a connection speed of 300 KB/sec, it was so so easy to just download all packages needed to be downgraded and...

rpm --oldpackage -Uvh *.rpm

Anyways, I solved the problem finally.

rpm2cpio libstdc++-4.0.1-4.fc4.i386.rpm | cpio -dimv
(on a different machine)

and then scped the files to my system at the correct place. Works now. Thanks a lot.
 
  


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
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 11:31 AM
how to find which rpm cotains libstdc++-libc6.2-2.so.3 stewchcken Linux - Software 1 07-26-2005 09:23 AM
RPM problems with libstdc++.so.6 dangerousdave Linux - Newbie 5 02-17-2005 08:12 PM
rpm doesnt work Xris718 Linux - General 3 02-10-2005 02:26 PM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 09:30 AM

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

All times are GMT -5. The time now is 09:26 AM.

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