1. yum命令:
yum install <name> #安装软件 yum search <name> #搜索匹配软件
2. 安装gcc(如果没有)
>yum install gcc
>yum install gcc-c++
3.安装wxGTK
$sudo yum list | grep wxGTK
$sudo yum install wxGTK
4.安装codeblocks
下载code::blocks
http://www.codeblocks.org/downloads
解压bz2:
$ tar -xvjf code*.bz2
安装:
$sudo rpm -ivh *.rpm
===================== ubuntu =========================
$ sudo apt-get install codeblocks
然后出现: