| Red Hat This forum is for the discussion of Red Hat Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-04-2009, 06:51 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2008
Posts: 7
Rep:
|
configure: error: C preprocessor "/lib/cpp" fails sanity check
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)
# rpm -qa | grep c++ gives the following:
compat-libstdc++-33-3.2.3-47.3
gcc-c++-3.4.6-9
compat-libstdc++-296-2.96-132.7.2
gcc4-c++-4.1.2-14.EL4
compat-gcc-32-c++-3.2.3-47.3
libstdc++-3.4.6-9
libstdc++-devel-3.4.6-9
# ls -l /lib/cpp Gives the following
lrwxrwxrwx 1 root root 14 Sep 18 2008 /lib/cpp -> ../usr/bin/cpp
-----------------------------------------------------------------------
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
Last edited by Nivix; 05-04-2009 at 07:37 AM.
Reason: to add more details
|
|
|
|
05-04-2009, 12:55 PM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,799
|
Quote:
Originally Posted by Nivix
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.
I tried the net and our linuxQuestions.org but no particular solution for RHEL...
|
Ok...as root, type in "yum install apache2". Press enter. Apache will then be downloaded and installed. Is there a particular reason you're downloading/compiling from source?
Also, RedHat support can easily help you with this...you're paying for phone/web support when you purchase RedHat Enterprise. They will support anything you can ask them.
|
|
|
|
05-23-2009, 06:03 AM
|
#3
|
|
LQ Newbie
Registered: Oct 2008
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
Ok...as root, type in "yum install apache2". Press enter. Apache will then be downloaded and installed. Is there a particular reason you're downloading/compiling from source?
Also, RedHat support can easily help you with this...you're paying for phone/web support when you purchase RedHat Enterprise. They will support anything you can ask them.
|
Thanks to everyone for suggessions... I have solved the problem by installing the follwoing rpms:
glibc-kernheaders
glibc-headers
glibc-common
glibc-profile
gclibc-utils
glibc
glibc-devel
Apache nicely compiled and installed without a hitch...
Once again thanks to all for suggessions...
Regards,
-Mohanraj.S
|
|
|
|
06-02-2009, 09:55 PM
|
#4
|
|
Member
Registered: Apr 2009
Posts: 34
Rep:
|
Quote:
Originally Posted by Nivix
Thanks to everyone for suggessions... I have solved the problem by installing the follwoing rpms:
glibc-kernheaders
glibc-headers
glibc-common
glibc-profile
gclibc-utils
glibc
glibc-devel
Apache nicely compiled and installed without a hitch...
Once again thanks to all for suggessions...
Regards,
-Mohanraj.S
|
Nivix,
where from/how did you install the glibc-xxx libraries, I think I have the same problem; yum returns the same error when trying to ./configure or install (usually 3rd party packages)?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:07 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|