1、yum groupinstall "Development tools"
2、yum install gtk2*
3、安装wxWidgets
下载地址:https://www.wxwidgets.org/downloads/(注:一定要下载stable release版本,否则会被自己坑死)
./configure --prefix=/usr --enable-xrc --enable-monolithic --enable-unicode
make
make install
ldconfig
4、yum install hunspell-devel
yum install gamin-devel
yum install boost-devel
5、升级gcc到4.9以下
yum install centos-release-scl
yum install devtoolset-3-toolchain
scl enable devtoolset-3 bash
gcc --version
6、安装code::blocks
下载地址:https://sourceforge.net/projects/codeblocks/files/Sources/17.12/codeblocks_17.12.tar.xz/download
./configure --prefix=/usr --with-contrib-plugins=all
make
make install