CentOS Installation Codeblocks

Source: Internet
Author: User
Tags wxwidgets

Installed several times the system, each time you have to be in the online various checks, too troublesome. So the decision to record, later use will be more convenient. Of course, this article from the network, take the long, the most important thing is that I have verified that the system is feasible.

The process of installing codelocks on CentOS7.

1. Install GCC, the C and C + + parts, the default installation, CentOS does not install the compiler, the terminal to enter the following command
Yum Install GCC
Yum Install gcc-c++

2. Install Gtk2-devel because the support libraries required for the official product are installed by default, but no documentation is required to install the development.
Yum Install gtk2*

3. Install WXGTK (or wxwidgets),: http://www.wxwidgets.org/downloads/, download the file: wxwidgets-3.0.1.tar.bz2,

After extracting, execute command after entering directory

./configure--prefix=/usr--ENABLE-XRC--enable-monolithic--enable-unicode
Make
Make install

4.

Install codeblocks, download Codeblocks installation package,: http://www.codeblocks.org/downloads/

Here are two ways to install:

The first way is to download the RPM package directly, can be installed directly, but the RPM installation form, there is no default installation visual design Wxsmith.

The second way is to download the source code, the suffix is. tar.gz (. tar.bz2), after downloading, unzip, enter the directory, execute the command

./configure--prefix=/usr--with-contrib-plugins=all (if just./configure the default is not to install the visual design Wssmith, If you do not need to develop the GUI, you can use the first method of installation directly)

Make

Make install

5. After installing the Codeblocks, the Programming menu item will appear under Application, where the codeblocks can be started. Sometimes there is a situation that does not start, and you need to do this:

Vim/etc/ld.so.conf

Last line added:/usr/local/lib

Save exit, and then run/sbin/ldconfig

Can.

6. Install Xterm:yum installation xterm

7. If you do not see the Codeblocks menu item, you can: Create a desktop launcher as follows:

1. Click Application-System Tools

2. Select "Launch Application"

3. Select "Add" in the Startup program preferences

4, will appear and the same as before the Add Launcher dialog box, to set

5. After setting the name and command (path), click "Add" and the launcher will be added to the list.

6, use the mouse to select the newly added start it, drag it to the desktop

7. Right-click the new Starter, select Properties, tick on the Permissions tab-execute: Allow the program to execute the file

8, the same step, click the icon in the Basic tab, you can set the Launcher desktop icon.

Reference: Http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux

Http://www.docin.com/p-636421805.html

http://yuliang.blog.51cto.com/626833/276195

The latest solution: Yum install Coderblock .....


CentOS Installation Codeblocks

Related Article

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.