LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-20-2006, 04:26 PM   #1
UnknownFear
LQ Newbie
 
Registered: Mar 2004
Distribution: Red Hat 9
Posts: 19

Rep: Reputation: 0
GCC suddenly broken?


Okay, this is the most weird thing I ever experienced untill now using a linux machine. I just wanted to install sBNC which requires TCL, so I thought, lets install TCL!
Code:
bash-3.1$ yum install tcl
Loading "installonlyn" plugin
You need to be root to perform this command.
bash-3.1$ exit
exit
[root@p2p-hosting home]# yum install tcl
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core                                                                 [1/3]
core                      100% |=========================| 1.1 kB    00:00
extras                                                               [2/3]
extras                    100% |=========================| 1.1 kB    00:00
updates                                                              [3/3]
updates                   100% |=========================|  951 B    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 1.1 MB    00:04
extras    : ################################################## 3269/3269
Added 139 new packages, deleted 74 old in 4.89 seconds
primary.xml.gz            100% |=========================| 325 kB    00:00
updates   : ################################################## 985/985
Added 40 new packages, deleted 22 old in 1.43 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for tcl to pack into transaction set.
tcl-8.4.12-4.i386.rpm     100% |=========================|  28 kB    00:00
---> Package tcl.i386 0:8.4.12-4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 tcl                     i386       8.4.12-4         core              954 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 954 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): tcl-8.4.12-4.i386. 100% |=========================| 954 kB    00:22
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: tcl                          ######################### [1/1]
/sbin/ldconfig: /lib/libstdc++.so.5 is not a symbolic link


Installed: tcl.i386 0:8.4.12-4
Complete!
So far so good eh?

Code:
[root@p2p-hosting home]# su cyber
bash-3.1$ ./configure
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
GCC appearing to be gone?!

Code:
bash-3.1$ exit
exit
[root@p2p-hosting home]# yum install gcc
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /lib/libgcc_s.so.1: version `GCC_3.3.1' not found (required by /usr/lib/librpmio-4.4.so)

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.2 (#1, Feb 12 2006, 03:59:46)
[GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

Okay, this really beats my brains out, the only thing that went wrong as far as I see is:
Code:
/sbin/ldconfig: /lib/libstdc++.so.5 is not a symbolic link
So well, I thought lets fix that if you want a symlink:

Code:
[root@p2p-hosting lib]# ldconfig
ldconfig: /lib/libstdc++.so.5 is not a symbolic link

[root@p2p-hosting lib]# mv libstdc++.so.5 libstdc++.so.5.bak
[root@p2p-hosting lib]# ln -s libstdc++.so
libstdc++.so        libstdc++.so.5.0.3  libstdc++.so.5.bak
[root@p2p-hosting lib]# ln -s libstdc++.so.5.0.3 libstdc++.so.5
[root@p2p-hosting lib]# ldconfig
[root@p2p-hosting lib]# rpm
rpm: /lib/libgcc_s.so.1: version `GCC_3.3.1' not found (required by /usr/lib/librpmio-4.4.so)
rpm: /lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/libstdc++.so.6)
rpm: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
Anybody have any ideas what the hell is going on here and how I get this solved?

Thanks
 
Old 05-20-2006, 04:39 PM   #2
UnknownFear
LQ Newbie
 
Registered: Mar 2004
Distribution: Red Hat 9
Posts: 19

Original Poster
Rep: Reputation: 0
FYI:

[root@p2p-hosting lib]# uname --all
Linux p2p-hosting 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006 i686 i686 i386 GNU/Linux
 
Old 10-19-2006, 01:22 AM   #3
socrates71
LQ Newbie
 
Registered: Aug 2005
Location: Deux Sevres, France
Distribution: Ubuntu, Gentoo, Solaris
Posts: 11

Rep: Reputation: 0
I'm getting a similar thing here, running Ubunutu. Completely baffled. My system is absolutely fine in all other respects apart from when I try to run the game Darwinia...

I get -

Code:
./lib/darwinia.bin.x86: ./lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
weird.

Anyone else come across this and/or found a solution?

EDIT: The only thing I can think of is that it is a graphics card driver problem... Particularly NVidia...

Last edited by socrates71; 10-19-2006 at 01:25 AM.
 
Old 09-12-2007, 01:44 PM   #4
bads
LQ Newbie
 
Registered: Feb 2005
Posts: 21

Rep: Reputation: 15
I know this is a long time since the last post but I was having the same problem with Darwinia and found a fix somewhere else after visiting here so I'll just post it.

I am using CentOS 5 and if you just remove the provided libgcc_s.so.1 it works fine for me.

Code:
mv /usr/local/games/darwinia_demo/lib/libgcc_s.so.1 /usr/local/games/darwinia_demo/lib/libgcc_s.so.1_bak
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Broken (GCC 4.1 + Linux 2.6) ideasman Linux - Software 3 03-05-2006 04:44 PM
broken gcc++ and rpm Zuess Linux - Software 0 02-07-2006 08:10 PM
Harddrake and RPMdrake suddenly broken rpigna Mandriva 13 01-03-2006 10:26 PM
FC3: GCC broken? Jorenko Fedora 5 01-24-2005 08:16 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 02:13 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration