LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 05-04-2009, 06:28 AM   #1
Nivix
LQ Newbie
 
Registered: Oct 2008
Posts: 7

Rep: Reputation: 0
Apache Install Error in RHEL-4 Update 6


Dear Friends,

I have Acer G540 Server with RHEL 4 Update 6 + Oracle 10 g Installed. Some applications required web server and i have downloaded httpd-2.2.0 and installed with the following configure option.

#configure --enable-so

I received the following error at the end...
-------------------------------------------------
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure failed for srclib/apr
--------------------------------------------------

I have gcc-3.4.3EL4 and gcc-c++-3.4.3-9EL4 installed

#c++ -v or g++ -v gives the following result:

Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
-----------------------------------------------------------------------

Below is the entire out put of configure --enable-so command:

root|C:/usr/local/httpd-2.2.0> ./configure --enable-so

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... reconfig
configuring package in srclib/apr now
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 APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.2.2
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying APR hints file rules for i686-pc-linux-gnu
setting CPPFLAGS to "-DLINUX=2"
adding "-D_REENTRANT" to CPPFLAGS
adding "-D_GNU_SOURCE" to CPPFLAGS
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure failed for srclib/apr
---------------------------------------------------------------
I tried the net and our linuxQuestions.org but no particular solution for RHEL...
Kindly someone help me to solve the problem please...

Thanks & Regards,

Mohanraj.S
 
Old 05-04-2009, 11:07 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD
Posts: 3,755
Blog Entries: 5

Rep: Reputation: Disabled
Is there a reason you're not installing the rpm from the RHN?
 
Old 05-07-2009, 06:04 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,302

Rep: Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353Reputation: 1353
Probably missing 'glibc-devel' , or need updating ?

http://isoredirect.centos.org/centos/5.3/os/SRPMS/
httpd-2.2.3-22.el5.centos.src.rpm
Shows these options in httpd.spec to get a usable httpd :

Code:
../configure \
        --enable-mods-shared=all \
	--enable-ssl --with-ssl --enable-distcache \
	--enable-proxy \
        --enable-cache --enable-mem-cache \
        --enable-file-cache --enable-disk-cache \
        --enable-ldap --enable-authnz-ldap \
        --enable-cgid \
        --enable-authn-anon --enable-authn-alias \
        --enable-pie --with-pcre
If you can't get a package from RH, the usual way to have httpd is :

# rpmbuild -bb httpd.spec
using the above mentioned httpd-2.2.3-22.el5.centos.src.rpm

or httpd-2.0.52-41.ent.centos4.src.rpm ( EL4.x ) from
http://isoredirect.centos.org/centos...i386/SRPMS.os/
.....

Last edited by knudfl; 05-07-2009 at 06:11 AM.
 
Old 05-21-2009, 04:29 AM   #4
Nivix
LQ Newbie
 
Registered: Oct 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Still I'm unable to solve the problem....
 
  


Reply

Tags
apache, configure, error, httpd


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install SATA DVD on RHEL 4 Update 2 ? Gandhimathi Linux - Desktop 4 08-06-2009 10:43 AM
Error istalling Apache on RHEL --->>>>> Rajaa Linux - Newbie 6 11-03-2008 08:47 AM
SATA DVD install on RHEL 4 Update 2 Gandhimathi Linux - Desktop 4 04-23-2008 02:40 PM
Install/Upgrade Apache, PHP and Mysql RHEL WS 3.0 LotekDBA Red Hat 0 05-10-2004 12:32 PM


All times are GMT -5. The time now is 05:34 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration