How to install Code::Blocks

July 24th, 2008 by Daniel Høyer Iversen

Code::Blocks is a great IDE for C++. Here is a guide to install Code::Blocks in Linux.

Open a Terminal (Applications -> Accessories), and wright:

sudo gedit /etc/apt/sources.list
add these lines to the end of the file:
deb http://lgp203.free.fr/ubuntu/ gutsy universe
deb http://apt.wxwidgets.org/ gutsy-wx main

In the Terminal:
wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add -
wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -

sudo apt-get update

Installing the packages:
sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
You will now receive updates automatically.

You will find Code::Blocks at  Applications -> Programming.

Do you want to use this code?

3 Responses to “How to install Code::Blocks”

  1. hardnrg

    man, after like 7 hours of trying to install Code::Blocks, I found your guide which makes it SO easy

    I just substituted “hardy” for “gutsy” :)
    Thanks for the guide!

  2. huynhfxvn

    thanks you :D

  3. In Ubuntu Intrepid Ibex you can just type
    sudo apt-get install codeblocks

Leave a Response