LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I am having trouble installing a program (https://www.linuxquestions.org/questions/linux-newbie-8/i-am-having-trouble-installing-a-program-401694/)

chesterthefatp 01-10-2006 01:14 PM

I am having trouble installing a program
 
I cd into the directory containing the installation files labeled src and typed ./configure, but it is telling me there is something wrong with my c compiler which I just updated and installed via kynaptic. This is the message I have please help I am in need of assistance!

[root@localhost src]# ./configure
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
[root@localhost src]#
allelopath I tried what you told me and it didn't work
I am running arklinux

allelopath 01-10-2006 01:22 PM

Make sure that gcc is in your PATH environment variable before cc.

#which cc gcc
#echo $PATH

Is gcc before cc in your PATH?

If gcc is before cc in your PATH, you may have to specify CC=gcc when compiling applications.

CC=gcc ./configure
or
CC=gcc; export CC; ./configure

pljvaldez 01-10-2006 03:57 PM

Depending on what distro you have, you may also be able to find a binary format of the package you're trying to compile. In general, only compile as a last resort...


All times are GMT -5. The time now is 11:43 PM.