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?? |
bump
any suggestions at all would be helpful, just a place to start looking...just a starting point at all |
I get the same error and I would like to know the answer too...
|
can you give us the last 20-30 lines of your config.log when the configure stage fails.
|
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... |
configure: error: C compiler cannot create executables
if use Debian, run apt-get install build-essential
|
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 |
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 05:43 AM. |