LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Game Installation Compilation Error (https://www.linuxquestions.org/questions/linux-newbie-8/game-installation-compilation-error-900347/)

hitmen 08-31-2011 12:47 AM

Game Installation Compilation Error
 
c@c-laptop:~/Desktop/torcs-1.3.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


How do I solve this error? Any ideas?

Konphine 08-31-2011 01:08 AM

Hey, I've been getting this same problem too for programs like clamav.

jdkaye 08-31-2011 01:47 AM

Is this the solution?
http://gcc.gnu.org/ml/gcc-help/2006-01/msg00161.html
or this?
http://www.thelinuxblog.com/c-prepro...-sanity-check/
and there are loads of others where they came from. Try googling?
ciao,
jdk

knudfl 08-31-2011 03:42 AM

Quote:

checking for g++... no
sudo apt-get install g++

( gcc will also not work without the g++ dependencies.)

TORCS : sudo apt-get install torcs
( Ubuntu 11.04 has version 1.3.1
http://packages.ubuntu.com/search?su...keywords=torcs )

.


All times are GMT -5. The time now is 09:21 AM.