有说Linux中C\C 编程只要vi、vim、emacs、gcc、gdb、make、... ...等这些部件就行了。用那些小部件来进行编程能学到很多的东西,用IDE来进行编程能提高效率,最好两者都用。在Linux中的IDE工具我知道的也不多,但感觉Code::Blocks这个IDE不错,下面来安装这个IDE软件吧: 本想还是用yum来安装的,但源里面没有这软件,只有去 RPM Search 这个网站搜索这个软件,这个软件有4个包,如下: codeblocks-8.02-1.el5.i386.rpm codeblocks-libs-8.02-1.el5.i386.rpm wxBase-2.8.7-2.el5.i386.rpm wxGTK-2.8.7-2.el5.i386.rpm RPM-GPG-KEY-EPEL 安装过程如下: [root@localhost ~]# rpm --import RPM-GPG-KEY-EPEL [root@localhost ~]# rpm -K *.rpm codeblocks-8.02-1.el5.i386.rpm: (sha1) dsa sha1 md5 gpg OK codeblocks-libs-8.02-1.el5.i386.rpm: (sha1) dsa sha1 md5 gpg OK wxBase-2.8.7-2.el5.i386.rpm: (sha1) dsa sha1 md5 gpg OK wxGTK-2.8.7-2.el5.i386.rpm: (sha1) dsa sha1 md5 gpg OK [root@localhost ~]# rpm -ivh wxBase-2.8.7-2.el5.i386.rpm Preparing... ########################################### [100%] 1:wxBase ########################################### [100%] [root@localhost ~]# rpm -ivh wxGTK-2.8.7-2.el5.i386.rpm Preparing... ########################################### [100%] 1:wxGTK ########################################### [100%] [root@localhost ~]# rpm -ivh codeblocks-libs-8.02-1.el5.i386.rpm Preparing... ########################################### [100%] 1:codeblocks-libs ##################################### [100%] [root@localhost ~]# rpm -ivh codeblocks-8.02-1.el5.i386.rpm Preparing... ########################################### [100%] 1:codeblocks ########################################## [100%] 这样就安装完成了,是英文界面的。我的英文不太好,下面来安装中文包: screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http:///fileicon/zip.gif');}" onmousewheel="return imgzoom(this);" alt="" /> 文件:codeblocks_chinese_locale.tar.gz 大小:82KB 下载: 下载 要用到p7zip工具来解压这个中文包(没有p7zip就去安装)。 [root@localhost ~]# gunzip 080909212701.gz && tar -xvf 080909212701 [root@localhost ~]# 7za x d2school_codeblocks_chinese_locale.7z [root@localhost ~]# mkdir /usr/share/codeblocks/locale/ [root@localhost ~]# mv ./zh_* /usr/share/codeblocks/locale/ 中文包也安装上了,还需要设置一下,启动Code::Blocks IDE(应用程序->编程->Code::Blocks IDE),在菜单栏选择Setting->Environment...后弹出环境设置窗口,选择View(眼睛),勾上Internationalization(needs restart)复选框,在下拉列表中选择Chinese(Simplifed)项,最后确定,关闭重启Code::Blocks IDE就是中文了,如下图: screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.chinaunix.net/photo/76337_080909214714.png');}" onmousewheel="return imgzoom(this);" alt="" /> screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://blog.chinaunix.net/photo/76337_080909214746.png');}" onmousewheel="return imgzoom(this);" alt="" /> |
|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )
GMT+8, 2024-9-29 23:27 , Processed in 0.138246 second(s), 12 queries , Gzip On, MemCache On.
Powered by Discuz! X3.5
© 2001-2023 Discuz! Team.