CentOS6.5 installation Code: Blocks

Source: Internet
Author: User

Codeblocks is a cross-platform C/C ++ IDE, but it is not installed on CentOS. We need to install it manually:1. Download wxWidgets (wxGTK) and CodeBlocks
Download the latest release: wxGTK-2.8.12.tar.gz at http://www.wxwidgets.org/downloads/
Download the latest: codeblocks_13.12-1.tar.gz at http://www.codeblocks.org/downloads /.
Since CodeBlocks is developed based on wxWidgets, you must install wxWidgets before installing CodeBlocks.

2. install necessary gcc files
Need to install gcc, need c and c ++ two local, the silent device, CentOS does not install the compiler, in the terminal output the following command can be
Yum install gcc
Yum install gcc-c ++
Then, the device gtk2-devel, because of the tacit acceptance of the formal product needs to support the database, but no device to open up the required documents.
Yum install gtk2 *

3. Next, compress wxGTK and execute the following commands in the Undo directory (the command must be executed in the tomb below)

  1. Tar-xzvfwxGTK-2.8.12.tar.gz
  2. Cd wxGTK-2.8.12
  3. ./Configure -- prefix =/usr -- enable-xrc -- enable-monolithic -- enable-unicode
  4. Make
  5. Make install

4. Install CodeBlocks
  1. Tar -xzvfcodeblocks_13.12-1.tar.gz
  2. Cdcodeblocks_13.12-1
  3. Export ACLOCAL_FLAGS = "-I 'wx-config -- prefix'/share/aclocal"
  4. ./Bootstrap
  5. . /Configure -- with-contrib-plugins = all an error may be reported here, configure: error: Package requirements (hunspell) were not met: this error, run the command yum install hunspell-devel. Similarly, there are gamin and boost. Run the command above and install the command if it is missing.
  6. Make
  7. Make install
5. If a Checking for existence error occurs during compilation, for example, it should be caused by a display terminal configuration error. We can change it to something we have. Open Settings --> Enviroment... and then execute the run Command!

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.