471,338 Members | 1,275 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

Error while installing Python2.5.1 on red hat 9

I use red hat 9 which comes with python2.2 installed in it. Wanting to
use the latest version, i downloaded python 2.5.1 from the official
python website. After downloading, i performed the following steps,
but there is some error during the configuration process and hence i'm
not able to run the "make" command after this. Following is the
sequence of events that happened in my terminal:

[root@localhost root]# tar xfz Python-2.5.1.tgz
[root@localhost root]# cd Python-2.5.1
[root@localhost Python-2.5.1]# ./configure
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@localhost Python-2.5.1]# make
make: *** No targets specified and no makefile found. Stop.


As far as i know there are no distribution repositories in red hat.... and there are four rpms for gcc. So i don't get why it's not able to find any C compiler.
If anybody can help... Thanx!
Jun 23 '07 #1
5 1600
bartonc
6,596 Expert 4TB
This link could be useful.

It would be interesting to know if you can call a C compiler from a shell prompt...
Jun 23 '07 #2
@bartonc....Yes got it! That link you gave is truly out of this (cyber)world! Thanx a lot!
Jun 23 '07 #3
bartonc
6,596 Expert 4TB
@bartonc....Yes got it! That link you gave is truly out of this (cyber)world! Thanx a lot!
Just lucky, I guess. I'm not a *nix guy. I just took 3 words from your post ("rpms for gcc") and Googled it. That was the first hit and it looked interesting.
Jun 23 '07 #4
Jach
4
It would be interesting to know if you can call a C compiler from a shell prompt...
Of course!
gcc file.c -o outputfile
g++ file.cpp
javac file.java

etc. Linux shell rules, and the whole premise of a make file is to compile everything at once (and warn you if you don't have dependencies) so you don't have to search around and compile stuff.

Anyway, good to know this error is resolved; I think I had something similar once, but I don't remember what I did to fix it.
Jun 23 '07 #5
bartonc
6,596 Expert 4TB
Of course!
gcc file.c -o outputfile
g++ file.cpp
javac file.java

etc. Linux shell rules, and the whole premise of a make file is to compile everything at once (and warn you if you don't have dependencies) so you don't have to search around and compile stuff.

Anyway, good to know this error is resolved; I think I had something similar once, but I don't remember what I did to fix it.
I was merely trying to ascertain whether the OP actually had a compiler installed or not.
Jun 24 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Wouter Vanden Hove | last post: by
reply views Thread by Adelein and Jeremy | last post: by
7 posts views Thread by Edward Diener | last post: by
reply views Thread by mmarkzon | last post: by
13 posts views Thread by Gary Wessle | last post: by
reply views Thread by Cecilia Marini Bettolo | last post: by
5 posts views Thread by Cappy2112 | last post: by
6 posts views Thread by BartlebyScrivener | last post: by
4 posts views Thread by BL | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.