PDA

View Full Version : error: C++ preprocessor "/lib/cpp" fails sanity check


strat
02-15-2005, 14:18
Hi..

This is my first time using a VPS.. And having more of a hands on feel than a standard reseller account.. So bare with me ;)

I am having trouble compiling anything using "configure"

checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Anyone know what i can do to fix this..

arty
02-15-2005, 14:42
you will have to install cpp
you go to rpmfind.net and download the binary rpm for your distro

strat
02-15-2005, 14:52
Pretty sure its installed..? but it wont let me configure anything..

root@2689 [~]# rpm -qa | grep cpp
cpp-3.3.2-1
root@2689 [~]#

eisai ellinas? lol ;)

mikron15
02-15-2005, 16:07
If you have CPanel installed, disable jail shell for that user account.. Jail shell is enabled , it disables all the compilers

strat
02-15-2005, 16:38
Im logged in with root.

I unticked it in cpanel anyways but im still getting the same.

Some more info i just noticed:

I get this when i try "Update Server Software" in WHM


Ftp Setup Script Version 6.0
Fetching version information from http://updates.cpanel.net/ftpinstall/version (RELEASE)....Done
This is the pure-ftpd 1.0.20 installer release number 10.tls for platform fedora 1
pure-ftpd is up to date. Use ftpup --force to force a reinstall
MySQL Setup Script Version 3.0
Fetching version information from http://updates.cpanel.net/mysqlinstall/version (RELEASE)....Done
This is the MySQL 4.0.23 installer release number 0 for platform
MySQL-4.0.23 is up to date
Install Complete
Using Mysql4
bandmin is up to date (Sun Feb 6 06:36:19 2005)
chkservd is up to date (Fri Aug 20 04:05:17 2004)
portsentry is up to date (Wed Jan 30 13:02:40 2002)
Traceback (most recent call last):
File "/usr/bin/yum", line 22, in ?
import yummain
File "/usr/share/yum/yummain.py", line 22, in ?
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in ?
import rpm
ImportError: No module named rpm

Complete

arty
02-15-2005, 17:30
Hi..

This is my first time using a VPS.. And having more of a hands on feel than a standard reseller account.. So bare with me ;)

I am having trouble compiling anything using "configure"

checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Anyone know what i can do to fix this..


as you can see it can't find a c++ compiler
make sure you have installed: gcc and c++ packages
if you don't install the rpms

virtual servers doesn't have them when you get them

strat
02-15-2005, 18:09
im pretty sure they both are?? :S

Batu
05-17-2006, 19:21
Disable jailshell