After a long time, I finally installed CB. The following notes:
Install necessary components
Code:
Sudo apt-Get install build-essential
Code:
Sudo apt-Get install GDB (use which GDB to check if any)
Install the latest wxWidgets Library
Code:
Sudo apt-Get update
Code:
Sudo apt-Get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers WX-common
Set wxWidgets default version
Code:
Sudo Update-alternatives -- config WX-config
Select an item from the list.
6. Download Code: Blocks
To the codeblocks official website download: http://www.codeblocks.org/downloads/26#linux codeblocks-10.05-1-debian-i386.tar.bz2
7. Installation code: Blocks
Check your Ubuntu version before installation. To install codeblocks in Ubuntu 10.04 or earlier, install the latest version.Libwxbase2:
My environment: Ubuntu 8.04 codeblocks: 10.05
First, the following error message is displayed:
Version wxu_2.8.5 not defined in file libwx_baseu-2.8.so.0 with link time reference
Problem: the version in Ubuntu is relatively low.
Solution: Please download from http://apt.wxwidgets.org/dists/etch-wx/main/binary-i386/ hereLibwxbase2.8-0_2.8.11.0-0_i386, Then install, you can start codeblocks10.05, and in the installation of codeblocks10.05, is divided into many Deb package for installation, please first install libcodeblocks0_10.05-1_i386.deb and libwxsmithlib0_10.05-1_i386.deb and then in sudo dpkg-I *. deb. because
The libwxbase version in Ubuntu is relatively low, so it will be unable to be opened after installation, which is in Ubuntu 10.04Libwxbase2.8-0_2.8.10.0-0_i386.
Note: Do not installLibwxgtk2.8-0_2.8.11.0-0_i386.debThis will cause errors in the package dependency when you install other software.
For the latest version of libwx:
Http://apt.wxwidgets.org/dists/etch-wx/main/binary-i386/