码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu下code::blocks无法编译 /bin/sh: 1: g++ not found 解决办法

时间:2014-12-21 19:19:11      阅读:506      评论:0      收藏:0      [点我收藏+]

标签:

linux下code::blocks无法编译运行提示 /bin/sh: 1: g++ not found 的解决办法
今天在ubuntu 12.04 软件中心中选装了codeblocks,安装完成后却连最简单的hello world 都无法编译运行。

技术分享

编译时提示
/bin/sh: 1: g++: not found
运行时总提示
It seems that this file has not been built yet.
Do you want to build it now?

因为系统没有装C++编译器

安装相应编译器即可解决此问题(依据系统软件安装方式):
(ubuntu下)
sudo apt-get install g++
(Fedora下安装)
sudo yum install gcc-c++

ubuntu下code::blocks无法编译 /bin/sh: 1: g++ not found 解决办法

标签:

原文地址:http://www.cnblogs.com/icycity/p/4176831.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!