CentOS 6.5 安装CodeBlocks

  经历了无数痛苦的折磨,Linux上的库依赖真是能把人逼疯,终于在Google上找到了办法,勉强将CodeBlocks安装成功。

1.为了避免最新版本的CodeBlocks在6.5上的依赖问题,所以在CodeBlocks官网上下载了旧版本的软件,此处并没有使用源码安装,而是使用编译好的二进制版本:

  codeblocks-13.12-1.el5.x86_64.tar.bz2

2.更新源

  下载源文件:http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

  rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
  yum install --enablerepo=rpmforge-extras
3.CodeBlocks依赖wxGTK,安装wxGTK
  yum install wxGTK-devel
4.解压codebocks包,然后安装所有组件
  rpm -ivh *.rpm
5.最后安装xterm,否则编译后,运行时无法显示控制台窗口而报错
  yum install xterm
6.进行编辑器配色
  这里提供了多种配色方案,需要将<colour_sets>和</colour_sets>之间的配色信息写入Codeblocks的default.conf文件中相应标签下,default.conf文件存储在“home/username/.codeblocks”目录中。
  Settings --> Editor... --> Syntax hightlighting -->
    Solarized Dark
    Keyword -> Green
    Operator -> Yellow
    Preprocessor -> Purple
7.更改光标颜色
  Settings  --> Editor... --> Margins and caret -->Caret 
    Colour -> Red
    Widht -> 2
8.添加VIM插件
 
 
附录:
1.安装问题
  在百度和Bing上搜索了很多解决方案,每一个靠谱的,最后还得求助于Google解决问题,下面是Google上搜到的解决方法,原文链接

#Install some necessary libraries
yum groupinstall "Development Tools"


#install rpmforge, there are other ways, here I use wget to download rpm package and install
#install wget
yum install wget
mkdir ~/temp
cd ~/temp
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm


rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
yum install --enablerepo=rpmforge-extras


#Install wxGTK
yum install wxGTK-devel


#Install codeblocks from source
#ref:http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions
cd ~
mkdir codeblocks
cd codeblocks
svn checkout svn://svn.berlios.de/codeblocks/trunk
cd trunk
./bootstrap
./configure
make
sudo make install


#Now Code::Blocks has installed, configure remote access
#enable X11 forwarding: ref:http://www.techotopia.com/index.php/Displaying_CentOS_Applications_Remotely_(X11_Forwarding)
sudo vi /etc/ssh/ssh_config
#Edit the file and make sure -> X11Forward yes
sudo yum xorg-x11-xauth.x86_64
sudo yum install xorg-x11-fonts


#Now on a Windows client, using Putty and Xming access the server
#On windows desktop, download and install Xming Server and Xming fonts
#in Putty, enable X11 Forwarding, set display to "Localhost:0"


#Type the following:
echo $DISPLAY
#It should return localhost:10.0


#Run Code::Blocks
codeblocks &

最新文章

  1. H3 BPM初次安装常见错误详解1-4
  2. 看懂mysql执行计划--官方文档
  3. 解决:Linux版百度云客户端 BCloud网络错误 问题
  4. Tools
  5. DNS解析流程
  6. 开篇----JavaScript细节的那些事儿
  7. 使用json格式输出
  8. CCF认证(1)
  9. 学习笔记Jmail收发邮件
  10. 【转】使用sklearn做单机特征工程
  11. XSS 自动化检测 Fiddler Watcher &amp; x5s &amp; ccXSScan 初识
  12. COM组件入门(一)
  13. HDOJ-ACM1010(JAVA) 奇偶剪枝法 迷宫搜索
  14. 第23篇 js快速学习知识
  15. keepalive集群工作原理及应用
  16. Eclipse中删除tomcat server 导致不能重新创建该版本的tomcat server
  17. 008 RestFul API 拦截器
  18. npm突然找不到D:\nodejs\node_modules\npm\bin\npm-cli.js的解决方法
  19. 上海高校金马五校赛 F题:1 + 2 = 3?
  20. httpclient和htpUrlConnection用例

热门文章

  1. [问题2014A13] 解答
  2. 特征的转换规则 Transfer Routione
  3. Sprint(第七天11.20)
  4. loadrunner常用术语
  5. 用HttpSessionListener与HttpSessionBindingListener实现在线人数统计
  6. CSS布局基础之一设备像素,设备独立像素,设备像素比,css像素之间的关系
  7. 【树莓派】树莓派移动网络连接(配置4G网卡)
  8. Delphi 文件类型
  9. Linux shell中运行命令后加上字符“&amp;”的作用
  10. CSS 3 3D转换