Deprecated: Assigning the return value of new by reference is deprecated in /customers/1/f/c/dahoiv.net/httpd.www/programmering/wp-includes/cache.php on line 36 Deprecated: Assigning the return value of new by reference is deprecated in /customers/1/f/c/dahoiv.net/httpd.www/programmering/wp-includes/query.php on line 21 Deprecated: Assigning the return value of new by reference is deprecated in /customers/1/f/c/dahoiv.net/httpd.www/programmering/wp-includes/theme.php on line 507 How to install Code::Blocks | Programming

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?

11 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

  4. hoangcoltech

    I don’t know why but it’s work. Thank you :d

  5. Ed

    I’ve seen this method to install CodeBlocks and wxWidgets 2.8.10 for Ubuntu 7.10 all over the Internet which is exactly what I want to do but it doesn’t work. I do the following and receive an error.

    apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    libcodeblocks0: Depends: libwxgtk2.8-0 (>= 2.8.9.1) but it is not going to be installed
    E: Broken packages

  6. “and wright”?

  7. fabio

    Thank you,
    I just substituted “lucid” for “gutsy”.

    I would never be able to install codeblocks
    without your tutorial.

  8. mido

    thanks for your guide :)
    it’s really helped me

  9. Oscar

    Thank you so much. I’ve been struggling to install many applications and with linux itself on this machine. It is a lenovo g475, don’t get one.

  10. Lawrence

    thanks for the guide..,but looks like its only aiming at the Ubuntu distribution..,i have fedora running..,could you please upload a fedore guide for code bocks installaion..,thank you!!!

  11. Hi all. I am a Nix-noob but the following code on Terminal/ (k)(c)onsole worked for me in Ubuntu.

    sudo apt-get install codeblocks

    KDE DESKTOP
    ….With love from Nairobi, Kenya.

Leave a Response