Centos安装CodeBlocks

来源:互联网 发布:怎样学软件 编辑:程序博客网 时间:2024/05/16 14:02

1. 安装gcc

yum -y install gcc

yum -y install gcc-c++

 

2. 安装gtk2-level

yum -y install gtk2* 

 

3安装wxWidgets(又叫wxGTK)

由于CodeBlocks是基于wxWidgets开发的,需要首先安装wxWidgets,然后才能够安装CodeBlocks,一个可用的地址是:

http://sourceforge.net/projects/wxwindows/files/3.0.2/wxWidgets-3.0.2.tar.bz2 

用wget获取,没有就yum -y install wget;

tar -zxvf解压缩后:

./configure

./make

./make install

 

4.安装codeblocks

一个可用的地址是:http://sourceforge.net/projects/codeblocks/files/Sources/13.12/codeblocks_13.12-1.tar.gz

tar -zxvf解压缩后:

./bootstrap成功后

 

安装以下内容,否则configure不成功。

安装hunspell

yum -y install hunspell

yum -y install hunspell-devel

安装gamin

yum -y install gamin

yum -y install gamin-devel

安装boost

yum install boost

yum install boost-devel

 

./configure --with-contrib-plugins=all(--prefix指的是安装路径,这里没有特别指定;--with指安装所需要的库文件;) 

./make

./make install

 

之后会在应用程序 -> 编程中看到codeblock

(如果没有看到或者不支持wxsmith,卸载后用./configure --with-contrib-plugins=wxsmith 然后重新编译一定可以)

0 0
原创粉丝点击