Install C ++ compiler Code: Blocks in Linux

Source: Internet
Author: User

CodeBlocks is a very good C ++ integrated design environment (IDE). It is developed based on wxWidgets and supports Linux and Windows. I am not using it for a long time. I personally feel that it is better than Dev c ++ and eclipse cdt. It is easy to install on windows, and there is nothing to say, but in Linux such as RHEL4, it is relatively troublesome because the corresponding rpm is not provided.

The following is a brief introduction to the installation steps based on source code in CentOS 4.6:

1. Download wxWidgets (wxGTK) and CodeBlocks
Download: wxGTK-2.8.9.tar.gz at http://www.wxwidgets.org/downloads/
Download: codeblocks-8.02-0fc8-i586.tar.gz at http://www.codeblocks.org/downloads /.
Since CodeBlocks is developed based on wxWidgets, you must install wxWidgets before installing CodeBlocks.

2. Install wxWidgets
FTP-> wxGTK-2.8.9.tar.gz
Tar xzf wxGTK-2.8.9.tar.gz
(3) cd wxGTK-2.8.9
(4)./configure -- enable-xrc -- enable-monolithic -- enable-unicode
(5)./make
(6)./make install

3. Install CodeBlocks
FTP-> codeblocks-8.02-0fc8-i586.tar.gz
Tar xzf codeblocks-8.02-0fc8-i586.tar.gz
(3) cd codeblocks-8.02
(4) export ACLOCAL_FLAGS = "-I 'wx-config -- prefix'/share/aclocal"
(5)./bootstrap
(6)./make
(7)./make install

4. Run CodeBlocks.
Run codebloks on the terminal to start the IDE.
(Installation directory/usr/local/share/codeblocks)

5. Chinese Language Pack
If your Chinese environment is still available, you can find this language package d2school_codeblocks_chinese_locale.7z from the Internet.
After decompression in Windows, directly upload the two directories zh_CN and zh_TW to/usr/local/share/codeblocks/locale. Repeat
Start Code: Blocks and choose Settings> Enviornment> View> Internationalization> Chinese (Simplified.

Have a good time!

Code: Blocks detailed introduction: click here
Code: Blocks's: click here

For the installation Code: Block in Ubuntu 12.04, see

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.