gcc: error trying to exec ‘cc1plus’: execvp: 没有那个文件或目录

参考http://archive.cloudera.com/cdh/3/hue/manual.html安装hue,首先把那些lib都安装先。 然后

$ HADOOP_HOME=/path/to/hadoop-0.20 PREFIX=/path/to/install/into make install

遇到这个错误

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Isasl -I/usr/include/python2.7 -c sasl/saslwrapper.cpp -o build/temp.linux-i686-2.7/sasl/saslwrapper.o
gcc: error trying to exec ‘cc1plus’: execvp: 没有那个文件或目录
error: command ‘gcc’ failed with exit status 1
make[2]: *** [/home/fatkun/hue-1.2.0.0-cdh3u3/desktop/core/build/sasl-0.1.1/egg.stamp] 错误 1 安装g++即可,apt-get install g++ 注意g++的版本要和gcc的一致, g++ –version查看版本。  

updatedupdated2023-12-062023-12-06