ubuntu下code::blocks的安装

code::blocks下载地址为http://www.codeblocks.org/downloads/26#linux,但是没有ubuntu的版本。

安装方法一:
下载codeblocks-10.05-1-debian-i386.tar.bz2,debian版本的。解压后发现都是*.deb包,安装前注意看安装说明:
Important note for Ubuntu users: To be able to use the Debian packages on Ubuntu Karmic Koala (9.10) you have to use the wxWidgets packages fromapt.wxwidgets.org, because the packages provided by Ubuntu are not compatible with the ones from wxwidgets.org. Alternatively you can use the Ubunturepoprovided by our user pasgui.
所以进入http://wiki.wxpython.org/InstallingOnUbuntuOrDebian网站,按照步骤执行即可。如下:
$curl http://apt.wxwidgets.org/key.asc | sudo apt-key add -
将下面内容添加到/etc/apt/sources.list 中
deb http://apt.wxwidgets.org/ DIST-wx main
deb-src http://apt.wxwidgets.org/ DIST-wx main

$sudo apt-get update
$sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n
$sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev
注意:将上面命令中红色的词改为其他任意合适的词。以$开头的是需要在命令行中执行的命令!
最后dpkg -i *.deb ,即可安装好codeblocks。


安装方法二:
在ubuntu的"ubuntu software center"中输入code blocks,安装即可!傻瓜型,但是确实很实用!!ubuntu确实越做越好了~~~

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值