Find the answer to your Linux question:
Results 1 to 3 of 3
I am trying to install gcc natively in Centos. While trying to configure I am getting the following errors. ---------------------------------------------------- loading cache ./config.cache checking host system type... i686-pc-linux-gnu checking target ...
  1. #1
    ygk
    ygk is offline
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2

    configure: error: installation or configuration problem: C compiler cannot create exe

    I am trying to install gcc natively in Centos. While trying to configure I am getting the following errors.
    ----------------------------------------------------
    loading cache ./config.cache
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking build system type... i686-pc-linux-gnu
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether ln works... yes
    checking whether ln -s works... yes
    checking for gcc... gcc
    checking whether the C compiler (gcc ) works... no
    configure: error: installation or configuration problem: C compiler cannot create executables.
    -------------------------------------------------

    When config.log file is checked , this is the result
    --------------------------------------------

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    configure:600: checking host system type
    configure:621: checking target system type
    configure:639: checking build system type
    configure:694: checking for a BSD compatible install
    configure:747: checking whether ln works
    configure:771: checking whether ln -s works
    configure:1825: checking for gcc
    configure:1938: checking whether the C compiler (gcc ) works
    configure:1954: gcc -o conftest conftest.c 1>&5
    /usr/gcc4/gcc-4.1.0/configure: line 1953: gcc: command not found
    configure: failed program was:

    #line 1949 "configure"
    #include "confdefs.h"

    main(){return(0);}

    ---------------------------------------------------------------
    I searched in forums but cant find proper answer. Please help me.

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Install GCC
    EDIT: Install GCC from binaris for the first time.
    Because you cant compile the compiler without a compiler
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    GCC and G++ are available in the package repositories for CentOS either on the DVD or online. You shouldn't have to manually build them from a tarball, and as you found out, it's pretty much impossible since you have nothing with which to build them.
    Registered Linux user #270181
    TechieMoe's Tech Rants

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...