Web Servers on Unix and Linux - Apache Newb Help/ C Compiler Error?

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > December 2007 > Apache Newb Help/ C Compiler Error?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache Newb Help/ C Compiler Error?
Zach is stupid

2007-12-30, 1:19 pm

Well, I'm trying to install Apache on a Xubuntu Gusty desktop I'm
planning to use as a server. I downloaded and extracted Apache 2.2.6.
But when I try to configure it, I get this:

Code:
----------------------------------------
$ sudo ./configure --prefix=/usr/local/apache2 --enable-module=so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring APR library
Platform: i686-pc-linux-gnulibc1
checking for working mkdir -p... yes
APR Version: 1.2.11
checking for chosen layout... apr
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.
configure failed for srclib/apr
-------------------------------------------------------------------


does anyone know how to make my "C compiler" create executables,
or how to fix this?
C.

2007-12-30, 7:17 pm

On 30 Dec, 17:03, Zach is stupid <artichokesha...@gmail.com> wrote:
> Well, I'm trying to install Apache on a Xubuntu Gusty desktop I'm
> planning to use as a server. I downloaded and extracted Apache 2.2.6.
> But when I try to configure it, I get this:
>
> Code:
> ----------------------------------------
> $ sudo ./configure --prefix=/usr/local/apache2 --enable-module=so
> checking for chosen layout... Apache
> checking for working mkdir -p... yes
> checking build system type... i686-pc-linux-gnulibc1
> checking host system type... i686-pc-linux-gnulibc1
> checking target system type... i686-pc-linux-gnulibc1
>
> Configuring Apache Portable Runtime library ...
>
> checking for APR... reconfig
> configuring package in srclib/apr now
> checking build system type... i686-pc-linux-gnulibc1
> checking host system type... i686-pc-linux-gnulibc1
> checking target system type... i686-pc-linux-gnulibc1
> Configuring APR library
> Platform: i686-pc-linux-gnulibc1
> checking for working mkdir -p... yes
> APR Version: 1.2.11
> checking for chosen layout... apr
> 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.
> configure failed for srclib/apr
> -------------------------------------------------------------------
>
> does anyone know how to make my "C compiler" create executables,
> or how to fix this?


1) this is way off topic
2) you may have a good reason for not using the distribution's version
of Apache; but since you've fallen at the first the hurdle it rather
suggests you're not a very techy person - and that you don't have a
good reason for not using the packaged version.

I would strongly suggest you use the packaged apache for your
distribution. Not only is this simpler and far more secure that the
route you are trying to take it will also save a great deal of time
and effort when you upgrade/extend the system, and speaking as someone
who has taken over the admin of a badly patched system, save a lot of
time and effort for anyone coming behind you to look after the system.

Although I can't say for sure, the most likely cause here is that a C
compilation toolchain is not installed on this machine; rather than
saying 'not found' an Ubuntu machine will go off and see if the
command exists in an uninstalled package and provide a helpful error
message telling you how to install it - but in the case its not you
who is asking. Note that in addition to the gcc compiler (and
preprocessor) you will also need to insall a linker and various
development packages - not sure which ones though.

As I said - better to use the pre-packaged version of apache.

HTH

C.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com