ubuntu系统中,code::blocks出现/bin/sh: g++: not found的解决方法

问题描述:codeblocks /bin/sh: g++: not found

I have installed codeblocks successfully

but when i try and compile the file i get

Compiling: main.cpp
/bin/sh: g++: not found
Process terminated with status 127 (0 minutes, 0 seconds)
0 errors, 0 warnings

I need some help, i am used to using codeblocks in windows!!!

Thanks in advance
 
解决方法:
 
  aptitude show g++ | grep State:
 
If this shows not installed, then
sudo apt-get install g++
Otherwise, perhaps your PATH variable is not set right.
posted @ 2012-07-11 21:16  owen-beta  阅读(1242)  评论(0编辑  收藏  举报