Fork me on GitHub

codeblocks

在centos6.5-64中安装codeblocks集成开发环境

[root@localhost ~]# yum install gtk2-devel gcc gcc-c++
[root@localhost ~]# yum install wxGTK wxGTK-devel
wget http://sourceforge.net/projects/codeblocks/files/Binaries/13.12/Linux%20%2864bit%29/codeblocks-13.12-1.el6.x86_64.tar.xz
[root@localhost devel]# tar xvf codeblocks-13.12-1.el6.x86_64.tar.xz
[root@localhost devel]# cd el6/x86_64/
[root@localhost devel]# rpm -ivh *

 

在应用程序菜单的编程下面就会出现codeblocks,并可以正常使用
但是在启动的时候会报“spellchecker needs a dictionary to work correctly”的错误,这个好解决,我们进入“/usr/share/myspell”下面,新建一个“dicts”的文件夹。
我们先进入dicts文件夹下面,对前三组共6个文件创建软连接
[root@ienter dicts]# ln -s ../en_GB.aff en_GB.aff
[root@ienter dicts]# ln -s ../en_GB.dic en_GB.dic
[root@ienter dicts]# ln -s ../en_CA.aff en_CA.aff
[root@ienter dicts]# ln -s ../en_CA.dic en_CA.dic
[root@ienter dicts]# ln -s ../en_US.aff en_US.aff
[root@ienter dicts]# ln -s ../en_US.dic en_US.dic
现在打开codeblocks,打开“Settings”->“editor“,选择左边的”SpellChecker“,开启”Enable spelling suggestion tooltips“,在下面的”Language“里就可以选择自己想要的了。然后”确定“关闭,下次再用的时候就不会报这个问题了。

有时候也会出现无法启动的情况,需要这样做:
vim /etc/ld.so.conf
最后一行添加:/usr/local/lib
保存退出,然后运行/sbin/ldconfig

 

本来要安装xterm的,最后我用的时候发现,显示中文有些显示的是方框,开始以为是codeblocks的事情,最后找到原因了,是这个xterm的问题,输出改成gnome的终端就行了,安装好后,进入”Settings”->”Environment settings”->”General settings”,在右边下面的”Terminal to launch console programs:”这里,后面下拉选择“gnome-terminal –disable-factory -t $TITLE -x”,或者直接输入也行,这样就ok了,显示中文也挺正常。 

posted on 2019-06-20 09:41  阳光-源泉  阅读(323)  评论(0编辑  收藏  举报

导航