umasuo—ubuntu G++的安装
2012-06-12 12:57
190 查看
刚刚想在ubuntu上安装一个花生壳,但是把花生壳下载下来以后想进行编译的时候出现了
大仙是G++没有装好,于是就装了一次G++
ubuntu 不知道从哪个版本开始就自带了GCC,但是G++貌似没有,于是用
安装,出现下面错误:
这个错误是因为有些需要的包没有
尝试使用
把欠缺的包安装完毕。
再次重试
安装成功
运行
显示以下信息:
说明G++安装成功了。
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details.
大仙是G++没有装好,于是就装了一次G++
ubuntu 不知道从哪个版本开始就自带了GCC,但是G++貌似没有,于是用
apt-get install g++
安装,出现下面错误:
The following packages have unmet dependencies: g++ : Depends: g++-4.6 (>= 4.6.3-1~) but it is not going to be installed google-chrome-stable : Depends: libxss1 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
这个错误是因为有些需要的包没有
尝试使用
apt-get -f install
把欠缺的包安装完毕。
再次重试
apt-get install g++
安装成功
运行
g++ --version
显示以下信息:
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
说明G++安装成功了。
相关文章推荐
- ubuntu g++安装过程
- Ubuntu下安装g++编译器
- VMware中安装Ubuntu 10.04后的一些配置(上网、g++、用putty登录、中文输入法)
- Ubuntu安装g++
- ubuntu13.04安装低版本的gcc和g++
- ubuntu中安装g++来编译C++代码
- ubuntu 安装openjdk,g++
- ubuntu中安装使用C、C++编译器gcc、g++
- ubuntu 安装 GCC 和 G++ C++ 开发环境
- VMware中安装Ubuntu 10.04后的一些配置(上网、g++、用putty登录、中文输入法)
- Ubuntu安装g++-4.8
- ubuntu下gcc和g++的安装
- Ubuntu下安装gcc-4.9 g++4.9
- Ubuntu 12.04安装gcc/g++ 4.8.1(解决install gcc-4.8时error: gnutls_handshake() failed: A TLS packet...)
- fedora 和ubuntu下安装c语言和C++编译器gcc 和g++
- (转)Ubuntu安装g++-4.8
- ubuntu 安装 GCC 和 G++ C++ 开发环境
- ubuntu中安装gcc和g++编译环境
- Ubuntu安装g++
- ubuntu 10.04降级安装gcc-4.2/g++-4.2