UnknownFear |
05-20-2006 04:26 PM |
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
|