安装codeblocks nightly build版本并更新color scheme

36 篇文章 0 订阅
5 篇文章 0 订阅
问题:

使用环境:Ubuntu 12.04,利用本身的software center安装的codeblocks版本为10.05;

发现其color scheme只有一个单一的default,而且是白背景;

发现最新的版本为12.11,想体验一下新版本的新特性。所以,选择安装nightly build的12.11版本;

解决办法:

1. 首先通过ubuntu 12.04的software center删除原来的10.05版本;

2. 删除完成后按照网址here上面的步骤来进行安装,即:

1. Install the compiler.

sudo apt-get install build-essential

2. Install the debugger.

sudo apt-get install gdb

You'll need to install wxWidgets to use Codeblocks. Revisions from 4051 and after use wxWidgets 2.8.4. If you want to install them, make sure you have your universe and multiverse repositories enabled and install the following packages.

3. Install wxWidgets library. (This package is all that is needed to run any application that uses wxWidgets. ie. Code::Blocks)

sudo apt-get install libwxgtk2.8-0

4. Install the wxWidgets developement packages. (This is used to develop wxWidgets applications of your own.)

sudo apt-get install libwxgtk2.8-dev

5. (OPTIONAL) Install the wxWidgets documentation.

sudo apt-get install wx2.8-doc

Now go get the nightly build and install it. All dependencies should now be met.

1. Get the latest nigtly build of Code::Blocks from the nightly builds forum.

2. Install Code::Blocks.

sudo dpkg -i <Name_Of_Daily_Build.deb>


3. 在网页http://apt.jenslody.de/上看到

 Note for Ubuntu-users:
The contrib-plugins package for debian can not be used on Ubuntu 12.04 and 12.10, due to an incomaptible libhunspell-package.

Alternatively you can use the Ubuntu repo provided by our user pasgui. 

这句话之前,已经将下面两行添加到/etc/apt/sources.list中,

deb http://apt.jenslody.de/stable wheezy release
deb-src http://apt.jenslody.de/stable wheezy release
然后,运行

sudo apt-get update
时遇到了问题,总是提示这样的Warning:

W: Duplicate sources.list entry http://ppa.launchpad.net/pasgui/ppa/ubuntu/ precise/main i386 Packages (/var/lib/apt/lists/ppa.launchpad.net_pasgui_ppa_ubuntu_dists_precise_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

4. 按照上面描述,ubuntu用户应该根据https://launchpad.net/~pasgui/+archive/ppa/的提示进行安装。

由于工作环境为ubuntu 12.04,所以,将下面两行替换刚才/etc/apt/sources.list中添加的两行:

deb http://ppa.launchpad.net/pasgui/ppa/ubuntu precise main 
deb-src http://ppa.launchpad.net/pasgui/ppa/ubuntu precise main 

然后,运行sudo apt-get update还是有同样的warning存在

5. 打开Ubuntu Software Center中打开Software sources...,发现

http://ppa.launchpad.net/pasgui/ppa/ubuntu binary
http://ppa.launchpad.net/pasgui/ppa/ubuntu source
确实存在重复,删除重复的项,重新运行

sudo apt-get update
成功。

6. 运行

sudo apt-get install codeblocks
安装成功后,使用

codeblocks&
命令可以启动codeblocks 12.11了。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值