LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   C compiler cannot create executables [PHP5/Apache2] (https://www.linuxquestions.org/questions/linux-software-2/c-compiler-cannot-create-executables-%5Bphp5-apache2%5D-378227/)

colabus 10-29-2005 11:55 PM

C compiler cannot create executables [PHP5/Apache2]
 
Hello all,

I have just setup Debian install with apache2 and want to install php

I have done all the steps and ready to compile with ./configure but I get:

Code:

loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

I haven't done much in the way off compiling and hoping to learn more about it rather than a apt-get all the time.

I have also had a look on google etc but not turning alot up. Any ideas?

megaspaz 10-29-2005 11:59 PM

did you compile apache successfully?

You could try apt-get or whatever else package manager uses ( I don't really know as I don't use debian) to get all gcc and libraries needed. I'm thinking you might not have a linker (gcc uses ld), but I don't know.


edit:

have a look here:

http://www.geektimes.com/linux/troub...ecutables.html

Now don't go using rpms, use .deb packages on the kernel-headers and glibc-devel as well as binutils.

cigarstub 10-30-2005 12:15 AM

I think that will be no success for newbie to install grphical or big prog from source, the best is by a frest dist and install all the pack you need then use the p.m. to install the rest. Never download source try to install it in Win if succeed the linux, if the irpmu did not work strangely then post the error here.

colabus 10-30-2005 12:44 AM

I haven't got it quite sorted yet but for those who get in my situation

Code:

apt-get install build-essential

zsejk 11-23-2005 03:26 PM

Damn... that solution worked like a charm! Thanks buddy!!!

-zsejk


All times are GMT -5. The time now is 07:25 PM.