Installation for Ubuntu Linux: Code Block

1) Add the repositories to /etc/apt/sources.list:

Open the file with a graphical editor as root. Paste the following line in a terminal:

gksu gedit /etc/apt/sources.list

Paste this at the end:

# codeblocks
deb gutsy universe
# wx widgets
deb gutsy-wx main

Note: Depending on what version of Ubuntu you are using, in step 1 you
may need to replace gutsy with feisty.

2) To make sure your package system trusts these sources. Add their keys.

Enter these two lines at the terminal:

wget -q -O- | sudo apt-key add -
wget -q -O- | sudo apt-key add -

And update the packages by entering the following lines on the terminal:

sudo apt-get update
sudo apt-get upgrade

3) Install Code::Blocks

Enter the following line in the terminal:

sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib

You are able to step 3 whenever you want you to get the latest nightly build.

You should see Code::Blocks in the Programming Languages listing of your programs.

%d bloggers like this: