2008年9月21日 星期日

Install codeblocks on Ubuntu

Prerequisites:

//=== wx2.6
1. sudo apt-get install build-essential
2. sudo apt-get install gdb
3. sudo apt-get install libwxgtk2.6-0
4. sudo apt-get install libwxgtk2.6-dev wx2.6-headers wx-common
5. sudo apt-get install wx2.6-doc

step 1-5 in one command
sudo apt-get install build-essential gdb libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-headers wx2.6-doc wx-common

//=== wx2.8
Add deb http://apt.wxwidgets.org/ edgy-wx main
or deb http://apt.wxwidgets.org/ feisty-wx main
to your sources.list.

sudo nano /etc/apt/sources.list
deb http://apt.wxwidgets.org/ gutsy-wx main
deb-src http://apt.wxwidgets.org/ gutsy-wx main

wget http://apt.wxwidgets.org/key.asc
sudo apt-key add key.asc


sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common


//===
Install codeblocks:
1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.

tar xvf CB_date-of-build_revision-number_Ubuntu6.10+7.04_wx2.8.4.tar.gz

2. Install all the packages at the same time.

sudo dpkg -i *.deb

The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional.
If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first.

[ref] http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu

沒有留言: