Ubuntu – Install Code::Blocks in Ubuntu 12.10

12.10code-blocksinstallationsoftware-center

I installed Code::Blocks from Muon Software Center (I'm using KDE) and I got Code::Blocks 10.05.

I found this link: https://launchpad.net/~pasgui/+archive/ppa/

After adding this PPA, and running sudo apt-get update if I run sudo apt-get install codeblocks, which version of Code::Blocks will I get? If I download the tarball from the main site, how to I install it properly?

Can someone help me out?

Best Answer

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)

Related Question