Installation steps:
1. First install the compiling environment, C library, C ++ library, and boost Library, As follows:
Sudo apt-Get install libc6 libc6-dbg libc6-dev glibc-Doc libstdc ++ 6 libstdc ++ 6-4.2-dbg libstdc ++ 6-4.2-dev libstdc ++ 6-4.2-doc libboost *
Note: run the following command to replace the old library above.
Sudo apt-Get install build-essential
2. The latest code: blocks contains a debugging component valgrind, which is used to detect memory leakage.:
Sudo apt-Get install valgrind
3. Install GDB:
Sudo apt-Get install GDB
4. Add a software update source
Sudo CP/etc/APT/sources. LIST/etc/APT/sources. List. Bak
Sudo gedit/etc/APT/sources. List
# Add the following update addresses
DebHttp://apt.tt-solutions.com/ubuntu/
Edgy main
DebHttp://apt.tt-solutions.com/ubuntu/
Feisty main
Sudo apt-Get update
Sudo apt-Get dist-Upgrade
Save the disk and exit gedit.
5. Install the Public Key:
Wget-Q http://apt.wxwidgets.org/key.asc-o-| sudo apt-key add-
Wget-Q http://lgp203.free.fr/public.key-o-| sudo apt-key add-
Add key from tt-solutions.com
Wget http://www.tt-solutions.com/vz/key.asc
Sudo apt-key add key. ASC
6. Installation code: blocks latest version and wxWidgets(Note: Check the latest version on www.wxwidgets.org before installation)
Sudo apt-Get install Plugin-0 libwxbase2.8-dbg libwxbase2.8-dev Plugin-0 Plugin-dbg Plugin-dev wx2.8-Doc wx2.8-examples wx2.8-headers wx2.8-i18n WX-common
Sudo apt-Get install codeblocks-contrib libcodeblocks0 libwxsmithlib0
Start using code: blocks, ApplicationProgram-> Programming-> code: blocks IDE.
Code: blocks and wxWidgets are well integrated and almost no additional configuration is required.
Reprinted from: http://yangzb.iteye.com/blog/594022
Some settings are not added because they are not used.