How to install codeblocks on centos7

Source: Internet
Author: User
Tags wxwidgets

Author: lidabo

The system has been installed for many times. It is too troublesome to check the system on the Internet every time it is installed. So I decided to record it and it will be easier to use it later. Of course, this article comes from the network, taking the lead of hundreds of thousands. The most important thing is that I have verified it, which indicates that this system is feasible.

Install codelocks on centos7.

1. To install GCC, C and C ++ are required. If centos does not install the compiler by default, enter the following command on the terminal:
Yum install gcc
Yum install gcc-C ++

2. Install the gtk2-devel because the support library required by the official product has been installed by default, but there is no documentation required for installation and development.
Yum install gtk2 *

3. Install wxgtk (or wxWidgets) at: http://www.wxwidgets.org/downloads/. the downloaded file is: wxwidgets-3.0.1.tar.bz2,

Decompress the package, enter the directory, and run the command

./Configure -- prefix =/usr -- enable-XRC -- enable-monolithic -- enable-Unicode
Make
Make install

4.

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

There are two installation methods:

The first method is to directly download the RPM package and install it directly. However, in the RPM installation mode, wxsmith is not installed by default.

The second formula is to download the source code package, which is suffixed with .tar.gz(.tar.bz2). Download the package, decompress it, enter the directory, and run the command

. /Configure -- prefix =/usr -- With-contrib-plugins = All (if only. /configure by default, the visual design wssmith will not be installed. If graphical interface development is not required, you can directly use the first installation method)

Make

Make install

5. After codeblocks is installed, the programming menu item will appear under the application. Here codeblocks can be started. Sometimes it will fail to be started. You need to do this:

Vim/etc/lD. So. conf

Add/usr/local/lib in the last line

Save and exit, and then run/sbin/ldconfig

You can.

6. Install xterm: Yum install xterm

7. If the codeblocks menu item is not displayed, you can: Create a desktop starter as follows:

 

1. Click application-System Tools

2. Select "Start application"

3. Select "add" in the startup preferences"

4. The add Startup Program dialog box is displayed as before.

5. After setting the name and command (PATH), click "add" to add the initiator to the list.

6. Select the newly added one and drag it to the desktop.

7. Right-click the new starter and select Properties. On the permission tab, select -- run: Allow program execution files

8. Click the icon on the basic tab to set the desktop icon of the starter.

 

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

How to install codeblocks on centos7

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.