LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-06-2009, 06:29 PM   #1
MilanK
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Rep: Reputation: 0
C++ preprocessor "/lib/cpp" fails sanity check


./configure failed with above error. Running Red Hat Enterprise 5.3.

The following snippet from the config.log looks relevant:

configure:4624: checking for C++ compiler version
configure:4627: g++ --version </dev/null >&5
./configure: line 4628: g++: command not found
configure:4630: $? = 127
configure:4632: g++ -v </dev/null >&5
./configure: line 4633: g++: command not found
configure:4635: $? = 127
configure:4637: g++ -V </dev/null >&5
./configure: line 4638: g++: command not found
configure:4640: $? = 127
configure:4643: checking whether we are using the GNU C++ compiler
configure:4667: g++ -c conftest.cc >&5
./configure: line 4668: g++: command not found
configure:4673: $? = 127
configure: failed program was:
| /* confdefs.h. */

Tried: yum install gcc, then yum groupinstall 'Development Tools', then yum install glibc headers, all to no avail. I'd very much appreciate any suggestions.
 
Old 04-07-2009, 03:24 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Try installing the gcc-c++ package.
 
Old 04-07-2009, 11:19 AM   #3
MilanK
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks very much for your response.

Doing yum install gcc-c++ yielded:

Setting up Install Process
Parsing package install arguments
No package gcc-c++ available.
Nothing to do

I also did rpm -qa|grep gcc, which confirmed that gcc-c++ isn't installed. Guess I just need to figure out how to properly install gcc-c++. I'd appreciate any suggestions.
 
Old 04-07-2009, 02:07 PM   #4
MilanK
LQ Newbie
 
Registered: Mar 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Red Hat Linux Desktop Does Not Allow Installation of C++

Apparently Red Hat Linux Desktop doesn't allow for the installation of C++! I'd assumed that the various distributions of Linux were largely the same. Guess they're not. Red Hat requires spending an extra $100 on the Workstation option in order to get C++.
 
Old 04-07-2009, 02:25 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
You might try installing Mandriva RPMs for GCC.

I have no idea if it would work, but I will tell you that I install Redhat RPMs when there is something I want that doesn't have a Mandriva RPM, and I have never had a problem. Mandrake started as a fork of an early Redhat, and the major architecture is still pretty much the same. There are some differences in /etc that I am aware of, but I have never had a problem installing a Redhat RPM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 10:49 AM
error: C preprocessor "/lib/cpp" fails sanity check Virtuality Debian 13 01-12-2008 05:37 AM
error: C preprocessor "/lib/cpp" fails sanity check Virtuality Linux - Software 21 01-06-2008 10:35 PM
error: C++ preprocessor "/lib/cpp" fails sanity check i.you Linux - Software 3 03-06-2007 03:24 AM
error: C preprocessor "/lib/cpp" fails sanity check ankit4u1 Linux - Software 2 04-02-2006 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration