这个是我make 时,出现的error
g++ -Ilib -Iexternals -Iexternals/tinyxml -O2 -DNDEBUG -Wall -std=c++0x -c -o lib/check64bit.o lib/check64bit.cpp
g++: error trying to exec 'cc1plus': execvp: No such file or directory
make: *** [lib/check64bit.o] Error 1
有人说需要安装g++.
1.首先该系统中本来就存在g++,gcc(gcc从其他地方copy的,不知有没有影响)。g++和gcc版本号应该是一致的
2.该虚拟机系统不能上网,不能用yum install g++z之类的功能。
cat /proc/version
Linux version 2.6.18-194.el5 (mockbuild@x86-005.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:39 EDT 2010
g++ -v /gcc -v 显示的结果
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)
请高人指点,十分感谢!


风8云8888 于 2014-04-02 16:32:46发表:
g++,gcc都是从别的地方copy过来的,用g++ -v/gcc -v 显示Red Hat 4.1.2-54(如上图),当前redhat系统cat /proc/version 显示Red Hat 4.1.2-48,这个版本能算一样吗?我当前Lab不能上网,不能yum install g++之类,如果重新安装g++,要怎么操作,具体g++的版本是什么?求指点!