How to install Code::Blocks
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.
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!
thanks you
In Ubuntu Intrepid Ibex you can just type
sudo apt-get install codeblocks
I don’t know why but it’s work. Thank you :d
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