FROM: http://blog.csdn.net/theegao/article/details/8750239
一、下载
1. codeblocks-12.11-1.el6.x86_64.tar.bz2
地址:http://www.codeblocks.org/downloads/26
2. wxWidgets-2.8.12.tar.gz
地址:http://sourceforge.net/projects/wxwindows/files/2.8.12/
二、解压wxWidgets
tar -zxvf wxWidgets-2.8.12.tar.gz
在/home/username/下新建一个文件夹,名为libs
username是你的登录用户名
使用root登陆,直接在root下新建libs文件夹
三、然后进入解压缩后的文件夹
先确保使用root用户安装
./configure --prefix=${HOME}/libs --enable-xrc --enable-monolithic --enable-unicode && make && make install
root目录下
./configure --prefix=/root/libs --enable-xrc --enable-monolithic --enable-unicode
&& make && make install
四、安装codeblocks
用root用户安装一下安装包
codeblocks-12.11-1.el6.x86_64.rpm
codeblocks-contrib-12.11-1.el6.x86_64.rpmcodeblocks-contrib-devel-12.11-1.el6.x86_64.rpm
codeblocks-devel-12.11-1.el6.x86_64.rpm
命令:
rpm -ivh *.rpm
安装这些需要一些库的支持
libc.so.6(GLIBC_2.14)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libm.so.6(GLIBC_2.15)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libstdc++.so.6(GLIBCXX_3.4.15)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_baseu-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_baseu-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_baseu-2.8.so.0(WXU_2.8.2)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_baseu_net-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_baseu_net-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_baseu_xml-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_baseu_xml-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_adv-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_adv-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_aui-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_aui-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_core-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_core-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_core-2.8.so.0(WXU_2.8.5)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_html-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_html-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_qa-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_richtext-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_xrc-2.8.so.0()(64bit) is needed by codeblocks-12.11-1.el16.x86_64
libwx_gtk2u_xrc-2.8.so.0(WXU_2.8)(64bit) is needed by codeblocks-12.11-1.el16.x86_64
wxGTK >= 2.8.0 is needed by codeblocks-12.11-1.el16.x86_64
install ok;
CodeBlocks汉化用root用户
下载CodeBlocks的中文补丁
1.cd /usr/share/codeblocks
2.mkdir local
3.cd local
4.cp -R /home/zhao/zh_CN/ .
5. chmod -R 777 /usr/share/codeblocks/locale/zh_CN/