LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   installing apache (https://www.linuxquestions.org/questions/linux-general-1/installing-apache-483109/)

centos-new 09-13-2006 09:44 AM

installing apache
 
hi
I want install apache-2.2.3 and my distribution is centOS.
when I wnat to configure thia problem appear:
----------------------
[root@linux httpd-2.2.3]# ./configure --prefix=/usr/local/apache2 --enable-rewrite=shared --enable-speling=shared --enable-modules=all --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... yes
setting CC to "gcc"
setting CPP to "gcc -E"
setting CFLAGS to " -g -O2 -pthread"
setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
setting LDFLAGS to " "

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
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.
------------
whats the problem??

odcheck 09-14-2006 03:21 AM

why try so hard if yum is preconfigured within centos.
So yum install http*
it will do all the work for you.
Give it a try.

Abunasar Khan 09-15-2006 10:34 PM

Quote:

Originally Posted by centos-new
hi
I want install apache-2.2.3 and my distribution is centOS.
when I wnat to configure thia problem appear:
----------------------
[root@linux httpd-2.2.3]# ./configure --prefix=/usr/local/apache2 --enable-rewrite=shared --enable-speling=shared --enable-modules=all --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... yes
setting CC to "gcc"
setting CPP to "gcc -E"
setting CFLAGS to " -g -O2 -pthread"
setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
setting LDFLAGS to " "

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
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.
------------
whats the problem??



dude just
apt-get install build-essential

and everything will be okay, let me know when its done.. =)

odcheck 09-18-2006 04:58 AM

In case that your using redhat based system ...
use YUM. which is nearly the same to apt-get but it's already included.

gilead 09-18-2006 05:18 AM

Quote:

Originally Posted by centos-new
checking for APR-util... yes
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.
------------
whats the problem??

Have you looked in config.log to see if there was more information? It may be that there's a problem with your compiler installation. What is the output of which gcc?


All times are GMT -5. The time now is 03:48 AM.