安装gcc,make时产生错误如下~求大神指教

编译打包和其他
回复
jeffrey丶35
帖子: 2
注册时间: 2015-01-10 22:52
系统: ubuntu-12.04

安装gcc,make时产生错误如下~求大神指教

#1

帖子 jeffrey丶35 » 2015-01-10 23:09

gmp,mpc,mpfr,m4都安了,对gcc配置完之后make,最后出现:
configure: error: in `/home/jeffrey/Downloads/gcc-build/gcc':
configure: WARNING: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
checking for unordered_map... no
checking for tr1/unordered_map... no
checking for ext/hash_map... no
checking dependency style of g++... none
configure: error: no usable dependency style found
make[2]: *** [configure-stage1-gcc] Error 1
make[2]: Leaving directory `/home/jeffrey/Downloads/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/jeffrey/Downloads/gcc-build'
make: *** [all] Error 2
回复