Install Codeblocks 12.11 on Ubuntu 12.04 / 12.10
1º) Install libraries wxWidgets
$ sudo apt-get install libwxgtk2.8-0
$ sudo apt-get install libwxgtk2.8-dev
2º) Download libraries http://packages.debian.org/squeeze/libhunspell-1.2-0
(pay attention if your distribution is 32 or 64 bits)
and install (This prevents errors when installing codeblocks)
$ sudo dpkg -i libhunspell-1.2-0_1.2.11-1_amd64.deb
3º) Download the binaries http://www.codeblocks.org/downloads/26
(pay attention if your distribution is 32 or 64 bits)
Debian stable is: codeblocks_12.11-2_amd64-debian-stable.tar.bz2 (squeeze)
Unzip to a folder and install:
$ sudo dpkg -i *.deb
4º) If you develop for MySql Install MySql connector
Download the version for your distribution from the official site
mysql-connector-c-shared_6.1.0-2_amd64.deb
and install
$ sudo dpkg -i mysql-connector-c-shared_6.1.0-2_amd64.deb
5º) Finally the library with header files for MySql
$ sudo apt-get install libmysqlclient-dev
(To install the MySQL server search on google)