LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (http://www.linuxquestions.org/questions/linux-mint-84/)
-   -   C compiler cannot create executables (http://www.linuxquestions.org/questions/linux-mint-84/c-compiler-cannot-create-executables-4175449994/)

ghstkhp 02-13-2013 09:55 AM

C compiler cannot create executables
 
hello
i installed binutils-2.23.0 (with gmp,mpfr,mpc on linuxmint 14 64bit) and it compiled and installed.
but the next time i tried to compile a program i got "configure:4136: error: C compiler cannot create executables".
i looked into log file and found problem:
"/usr/local/bin/ld: this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status"

i tried reinstalling packages from synaptic package manager and reinstalled binutils with some more but i still have same problem.

can somebody tell me how can i fix this or why is this error happening?
thanks

kedarp 02-14-2013 10:15 PM

What is your distribution?
Did you install the C compiler gcc. If you want all the compiler tools install build-essential.

ghstkhp 02-14-2013 11:37 PM

Quote:

Originally Posted by kedarp (Post 4891954)
What is your distribution?
Did you install the C compiler gcc. If you want all the compiler tools install build-essential.

i compiled some programs before so i have compilers.this happened after i compiled and installed binutils-2.23.0.
thanks for reply

knudfl 02-15-2013 04:11 AM

Quote:

I installed binutils-2.23.0 ... with gmp, mpfr, mpc
... Then no system gcc is supposed to work.

Better uninstall / delete all the alien files from /usr/local/*.
! No alternative version of binutils, gmp, mpfr, mpc
can be installed to a system path !

If you for experimental reasons want to install non system versions,
please use './configure --prefix=/opt/test/' or another location,
which is so well hidden, that no system programs will find it.

-


All times are GMT -5. The time now is 02:31 AM.