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确实越做越好了~~~