cas*_*ius 5 linux gcc gnu-make ubuntu-12.04
我有一个新的Ubuntu linux安装,我正在尝试更新我的gcc编译器.最新的gcc编译器依赖于gmp,mpfr和mpc,所以我按照说明下载了这些并将源放入gcc 4.8.1源文件夹.
configure似乎运行得很好.我没有包含任何选项,因为似乎没有选择.我只是使用默认值运行.
当我运行make时,我收到以下错误:
configure: error: C++ compiler missing or inoperational
make[2]: \*** [configure-stage1-libcpp] Error 1
make[2]: Leaving directory `/home/clay/programming/C++/gcc-4.8.1'
make[1]: \*** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/clay/programming/C++/gcc-4.8.1'
make: \*** [all] Error 2
Run Code Online (Sandbox Code Playgroud)
我以root身份跑出了一个终端窗口,我做了一个make distclean并且第二次尝试了,但没有骰子.我知道它可以找到gcc和cc,因为它在make输出中都是这样说的.
有任何想法吗?
您需要一个C++编译器来构建GCC.在Ubuntu上,C++编译器在包中g++,与gcc(它是C编译器,而不是C++编译器)分开,因此请确保:
sudo apt-get install g++
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7768 次 |
| 最近记录: |