LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2006, 09:44 AM   #1
centos-new
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
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??
 
Old 09-14-2006, 03:21 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
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.
 
Old 09-15-2006, 10:34 PM   #3
Abunasar Khan
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
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.. =)
 
Old 09-18-2006, 04:58 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
In case that your using redhat based system ...
use YUM. which is nearly the same to apt-get but it's already included.
 
Old 09-18-2006, 05:18 AM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Apache Gins Linux - General 31 09-11-2005 01:08 PM
Installing Apache 1.3 cmccully Linux - Software 2 02-03-2005 11:49 PM
installing apache 2 melinda_sayang Slackware 5 09-09-2004 12:17 PM
Installing apache squirellplaying Linux - Newbie 7 05-19-2004 03:53 PM
Installing Apache 1.3.26 with Thinkgeekness Linux - Software 1 03-17-2003 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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