Install Code: Blocks on the Red Hat Linux platform

Source: Internet
Author: User
I posted some of my previous experiences in installing Code: Blocks on the Red Hat Linux platform. I am a beginner and hope to help programmers who just got started. This is a C ++ IDE. Code: Blocks it is open-source and can run on Windows or linux on a cross-platform basis. It also supports MacOS, this tool is very useful. I personally feel that it is like Java's JCreator and a small and easy-to-use IDE. For Windows, you don't need to talk about it.

I posted some of my previous experiences in installing Code: Blocks on the Red Hat Linux platform. I am a beginner and hope to help programmers who just got started.

This is a C ++ IDE. Code: Blocks it is open-source and can run on Windows or linux on a cross-platform basis. It also supports MacOS, this tool is very useful. I personally feel that it is like Java's JCreator and a small and easy-to-use IDE.

For Windows, you don't need to talk about it. Simply set it up. Let's talk about the installation on Linux.

1. Install GTK + on Linux

If you do not select GTK + in the development tool when installing the Red Hat program, you can use a CD to install the program. It is convenient to use the add and delete functions of the Red Hat program.

If you do not have a CD, you can only download it at http://www.gtk.org/and install it. Then, you can install the gtkw.gov.cn.

Note that GTK + is a required component and cannot be installed without wxGTK.

2. Compile and install wxGTK on Linux platform (taking wxGTK-2.6.2 as an example)

Download wxgtk-2.6.2.tar.gz at http://www.wxwidgets.org /.

After the download, enter the following command for installation:

Tar zxvf wxGTK-2.6.2.tar.gz

Cd wxGTK-2.6.2

./Configure -- enable-xrc -- enable-monolithic -- enable-unicode

Make

Make install

If no error message is displayed, the installation is smooth and the compilation process is slow.

3. The library file path points to the correct path

Because the path is not specified when wxGTK is installed, wxGTK is mounted to/usr/local/lib. If it points to the path,

This step can be omitted after the "-prefix =/usr" parameter is added.

Library file path pointing method:

Vi/etc/ld. so. conf

At the end of the file, enter:

/Usr/local/lib

After adding, run:

/Sbin/ldconfig

4. Installation Verification

You can use the following output to check whether the installation is correct:

Wx-config -- prefix

Wx-config -- libs

Which wx-config

5. Download Code: Block

Download it at http://www.codeblocks.org/downloads/

: Http://ncu.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-8.02-src.tar.bz2

Run the following command to install the SDK:

Tar jxf codeblocks-8.02-src.tar.bz2

Cd codeblocks-8.02

./Configure-prefix =/usr

Make

Make install

If no error message is displayed, the installation is smooth and the compilation process is slow.

6. Start and create shortcuts

Right-click the desktop, select "create initiator", and enter the following path:

/Usr/bin/codeblocks

After creating a shortcut, double-click the newly generated icon to start CB, as shown below:

 

Code: Blocks: Click here
Code: Blocks: Click here

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.