ref url: http://lgp203.free.fr/spip/spip.php?article1
具體安裝步驟如下:
1、安裝必要組件
代碼:
sudo apt-get install build-essential
代碼:
sudo apt-get install gdb
4、安裝最新 wxWidgets 庫
代碼:
sudo apt-get update
代碼:
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common
5、設置 wxWidgets 默認版本
代碼:
sudo update-alternatives --config wx-config
6、下載 Code::Blocks 每夜構建版本
sudo gedit /etc/apt/sources.list
在最后一行的后面加一行
deb http://lgp203.free.fr/ubuntu/?gutsy universe
獲得密鑰
wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add -
下載 并且 安裝
sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
or download the install package from CodeBlocks site:
wget http://downloads.sourceforge.net/codeblocks/codeblocks-8.02-src.tar.bz2
tar xzf codeblocks-8.02-src.tar.bz2
... and then install these deb packages