Installing the Latest wxGTK
This original version of this tutorial was copied completely from http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu.
To install the latest wxGTK you need to be using Ubuntu 6.06 (Dapper Drake), Ubuntu 6.10 (Edgy Eft), Ubuntu 7.04 (Feisty Fawn), or Ubuntu 7.10 (Gutsy Gibbon) and you need to add the wxWidgets repository to your sources.list.
- Backup your current sources.list first for precaution.
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak - Open your sources.list in a text editor to edit it.
gksu gedit /etc/apt/sources.list - Add the correct repository for the Ubuntu version you are running to the end of the file.
deb http://apt.wxwidgets.org/ dapper-wx main
ordeb http://apt.wxwidgets.org/ edgy-wx main
ordeb http://apt.wxwidgets.org/ feisty-wx main
ordeb http://apt.wxwidgets.org/ gutsy-wx main - Save and close the file.
- Add the key for tt-solutions.com.
wget http://apt.wxwidgets.org/key.asc sudo apt-key add key.asc
- Update your sources.list and run upgrade to make sure everything is up-to-date.
sudo apt-get update sudo apt-get dist-upgrade
- Now you're finally ready to install the latest wxGTK
sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common - Set wxWidgets 2.8 as default version for your machine. Select number for the wxgtk2.8 version.
sudo update-alternatives --config wx-config