I can't find a C compiler to configure gcc & Python 3.1.3

General support questions including new installations
Post Reply
ld1976
Posts: 4
Joined: 2010/12/27 07:42:41

I can't find a C compiler to configure gcc & Python 3.1.3

Post by ld1976 » 2010/12/27 07:51:01

Hello all.
I am a newbie to Linux installations.
i have installed on my home PC CentOS 5.5, and downloaded Python 3.1.3 source, when I have tried to run the configuration file
I have got
...
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/ldagan/python/Python-3.1.3':
configure: error: no acceptable C compiler found in $PATH
...
I have tried downloading gcc and installing it, but got the same message.
So, I can't find any C compiler, and I can't install one. I assume that there is a solution, only that I am not familiar with one...
Any ideas?
-Lior

valroot
Posts: 1
Joined: 2010/12/27 11:28:00
Contact:

Re: I can't find a C compiler to configure gcc & Python 3.1.3

Post by valroot » 2010/12/27 11:31:03

yum install gcc

User avatar
TrevorH
Forum Moderator
Posts: 24326
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I can't find a C compiler to configure gcc & Python 3.1.3

Post by TrevorH » 2010/12/27 13:32:00

You should be extremely careful if you aim to compile something like python from source as many of the Redhat tools are written in python and depend on the version that ships with RHEL/Centos being installed. If you replace it you may well break your system completely. If you really [b]must[/b] have python 3.1 then please make sure you install it to a different location than the python 2.4 that ships with Centos 5.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

I can't find a C compiler to configure gcc & Python 3.1.3

Post by pschaff » 2011/01/01 22:29:39

Rather than building from source you may want to check out the python31 packages from the [url=http://wiki.centos.org/AdditionalResources/Repositories?highlight=%28IUS%29|%28Community%29]IUS Community repo[/url].

derbyjon
Posts: 1
Joined: 2011/01/02 15:02:30

Re: I can't find a C compiler to configure gcc & Python 3.1.3

Post by derbyjon » 2011/01/02 15:14:29

I will try it and let you know

Post Reply