LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   configure: error: C compiler cannot create executables (http://www.linuxquestions.org/questions/linux-general-1/configure-error-c-compiler-cannot-create-executables-90372/)

watashiwaotaku7 09-08-2003 12:49 AM

configure: error: C compiler cannot create executables
 
i get this message when compiling certain packages (its happened about 5 times in the last few days)

this comes from emerging dhcpcd i put the relevant compiler output there and the emerge error

checking for C compiler default output... configure: error: C compiler cannot create executables
check `config.log' for details.

!!! ERROR: net-misc/dhcpcd-1.3.22_p4-r1 failed.
!!! Function src_compile, Line 42, Exitcode 77
!!! (no error message)


anyone know whats going on??

watashiwaotaku7 09-08-2003 04:48 PM

bump

any suggestions at all would be helpful, just a place to start looking...just a starting point at all

El_Angelo 09-21-2003 05:03 AM

I get the same error and I would like to know the answer too...

kev82 09-21-2003 06:02 AM

can you give us the last 20-30 lines of your config.log when the configure stage fails.

El_Angelo 09-22-2003 02:49 AM

OK, I've found my solution... it is a very stupid one... it seemed like I forgot to install glibc in my minimal slack installation... sorry to mess up your topic with such an obvious thing... bye

you really should try a search on the forum with "c compiler cannot create executables"... you will see that a lot of people already asked this question...

rodrigofariat 08-10-2007 07:54 AM

configure: error: C compiler cannot create executables
 
if use Debian, run apt-get install build-essential

somepalli 03-31-2009 05:32 AM

I tried to install build-essential throgh Synaptic and command prompt but i am getting following error

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
build-essential: Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.1.1) but it is not going to be installed
E: Broken packages

malli42108 10-22-2009 10:40 AM

use below steps

# which gcc
/usr/local/bin/gcc
#which g++
/usr/local/bin/g++
#export PATH=$PATH:/usr/local/bin
# CC=/usr/local/bin ./configure

now your problem will solve.


All times are GMT -5. The time now is 03:38 AM.