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 |
Quote:
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. |
Quote:
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 |
Quote:
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)? |
All times are GMT -5. The time now is 03:52 AM. |