First, to the official website download codeblocks_12.11-2_i386-debian-stable.tar.bz2
Second, decompression codeblocks_12.11-2_i386-debian-stable.tar.bz2
Because the extracted files are not placed in the folder, so in the decompression command, preferably plus-C, extract to the development folder
Command: Tar xvf codeblocks_12.11-2_i386-debian-stable.tar.bz2-c codeblocks
Third, install Deb file
1, sudo dpkg-i *.deb, (this time the Package Manager will help you solve some dependency problems) then will prompt the error, the lack of dependency on the package, and then use command sudo apt-get-f install (the system will help you install some dependent packages online). 2, re-enter the sudo dpkg-i *.deb, this will prompt Errors were encountered while Processing:codeblocks-contrib
Then enter the command sudo apt-get-f install, this time will remove the bag.
3, install codeblocks-contrib-common_12.11-2_all.deb, command: sudo dpkg-i codeblocks-contrib-common_12.11-2_all.deb
4, install codeblocks-contrib_12.11-2_i386.deb, command: sudo dpkg-i codeblocks-contrib_12.11-2_i386.deb, then will prompt Package Libhunspell-1.2-0 is not installed. Then go to the Internet to download (download address: http://download.csdn.net/detail/dszsy1990/4956562), installation.
5, install Codeblocks-contrib_12.11-2_i386.deb again, command: sudo dpkg-i codeblocks-contrib_12.11-2_i386.deb.
6, command sudo dpkg-i*.deb installation complete
Iv. installation of g++
Command: sudo aptitude install build-essential