Error while installing Python2.5.1 on red hat 9

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • koolest1
    New Member
    • Jun 2007
    • 7

    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!
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    This link could be useful.

    It would be interesting to know if you can call a C compiler from a shell prompt...

    Comment

    • koolest1
      New Member
      • Jun 2007
      • 7

      #3
      @bartonc....Yes got it! That link you gave is truly out of this (cyber)world! Thanx a lot!

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by koolest1
        @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.

        Comment

        • Jach
          New Member
          • Jun 2007
          • 4

          #5
          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.

          Comment

          • bartonc
            Recognized Expert Expert
            • Sep 2006
            • 6478

            #6
            Originally posted by Jach
            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.

            Comment

            Working...