LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problem installing gcc (https://www.linuxquestions.org/questions/linux-server-73/problem-installing-gcc-4175443984/)

rafiahmadjan 01-03-2013 09:41 AM

Problem installing gcc
 
Dear all,
I tried to install gcc on my linux server but i got the error as follows
yum install gcc
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

libssl.so.10: cannot open shared object file: No such file or directory

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.6.6 (r266:84292, Sep 12 2011, 14:03:14)
[GCC 4.4.5 20110214 (Red Hat 4.4.5-6)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq

The Openssl package is intalled with following version;
rpm -aq| grep openssl
openssl098e-0.9.8e-17.el6.x86_64


Also
uname -a
Linux WEB-SMS 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux


Kindly help with the same

Regards
rafi

John VV 01-03-2013 11:22 AM

this it what ? ( from the "el6" )
RHEL6.3 ? CentOS 6.3 ? ScientificLinux 6.3 ?

gcc IS IN the base repo for all of them
and yum IS installed by default -- no need to install it
Code:

su -
yum search gcc

and that will give you a very long list to select from

Also VERY IMPORTANT !!!!
yum REQUIRES the version of python that is in the base / update repo !!!
-- it MUST be used --

Now you can install a second version of python ( side by side) with it
but the version in the base / update repo must be installed


All times are GMT -5. The time now is 07:02 PM.