前4个步骤转载自:http://blog.csdn.net/yechaodechuntian/article/details/24840255
1. 先下载安装需要用到的依赖包
libhunspell-1.2-0_1.2.11-1ubuntu1_i386.deb 直接google就能找到。或者在这下载 http://download.csdn.net/detail/liaoqianwen123/7279643
sudo dpkg -i libhunspell-1.2-0_1.2.11-1ubuntu1_i386.deb
one or more plugins were not loaded.this usually happens when a plugin is built for a different version of the code::blocks sdk.check the application log for more info.
list of failed plugins:
libFileManager.so
直接右键---> 提取 解压缩
sudo dpkg -i *.deb 安装所有的deb包
会有如下错误
在处理时有错误发生:
codeblocks
codeblocks-contrib
codeblocks-libwxcontrib0
codeblocks-wxcontrib-dev
codeblocks-wxcontrib-headers
libcodeblocks0
libwxsmithlib0
wxsmith-dev
wxsmith-headers
codeblocks-dev
codeblocks-headers
libwxsmithlib0-dev
6. 修复依赖关系
sudo apt-get -f install
7. 再次安装
sudo dpkg -i *.deb
好了,codeblocks安装成功,接下来是汉化
8. 下载12.11版本的汉化包,下载地址:http://download.csdn.net/detail/mxwtws/7990775
解压后得到codeblocks.mo
9. 依次执行下列命令
mkdir -p /usr/share/codeblocks/locale/zh_CN
chmod 777 codeblocks.mo
cp codeblocks.mo /usr/share/codeblocks/locale/zh_CN
10. 汉化设置
Setting--- Enviroment点击左边的“View”, 将右边的Internationalization选项的复选框打上勾,再选择“Chinese simplify”, 保存,重启codeblock
11. 更改调试终端
Setting==>Environment...==>General Setting==>Terminal to lanuch console programs:
更改为:gnome-terminal --geometry 80x20+100+100 --hide-menubar -t $TITLE -x
注:百度中,很多都说是更改为gnome-terminal -t $TITLE -x。但是我如是更改的话,总是调不起来调试终端
OK,收工!