Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-29-2005, 11:55 PM   #1
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Rep: Reputation: 15
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:

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?
Old 10-29-2005, 11:59 PM   #2
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.


have a look here:

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

Last edited by megaspaz; 10-30-2005 at 12:03 AM.
Old 10-30-2005, 12:15 AM   #3
Registered: Sep 2005
Posts: 145

Rep: Reputation: 15
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.
Old 10-30-2005, 12:44 AM   #4
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Original Poster
Rep: Reputation: 15
I haven't got it quite sorted yet but for those who get in my situation

apt-get install build-essential
Old 11-23-2005, 03:26 PM   #5
Registered: Apr 2003
Distribution: Slackware
Posts: 345
Blog Entries: 5

Rep: Reputation: 30
Damn... that solution worked like a charm! Thanks buddy!!!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
c compiler cannot create executables karphead Slackware 8 09-30-2005 10:20 PM
C compiler cannot create executables cov Amigo 3 05-06-2005 02:18 AM
My C compiler cannot create executables, help rbmako69 Linux - Software 15 06-16-2004 02:22 PM
C compiler cannot create executables JanDeMan Debian 7 04-20-2004 02:10 AM
C compiler cannot create executables londonboi Debian 2 09-23-2003 02:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration