(OK) The process of installing codeblocks on CentOS7

Source: Internet
Author: User
Tags bz2 wxwidgets
1. Install GCC, need C and C + + two parts, the default installation, CentOS do not install the compiler, in the terminal input the following command
Yum Install GCC
Yum Install gcc-c++

2. Install Gtk2-devel, because the support library for the formal product is installed by default, but the documentation required for development is not installed.
Yum Install gtk2*

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

After decompression, execute command after entering directory

./configure--ENABLE-XRC--enable-monolithic--enable-unicode
Make-j5
Make install
------------------------------------------------------

The installation of WxWidgets is finished. On certain
Platforms (e.g. Linux) you'll now have to run Ldconfig
If you installed a shared library and also modify the
Ld_library_path (or equivalent) environment variable.

WxWidgets comes with no guarantees and doesn ' t claim
To is suitable for any purpose.

Read the wxwindows Licence on licencing conditions.

------------------------------------------------------

Ldconfig


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

There are two ways to install this:

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

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

./configure--prefix=/codeblocks--with-contrib-plugins=all
(if it's just./configure) The default is not to install the visual design Wssmith, if you do not need a graphical interface development, you can directly use the first installation method.
-------------------------------------------------------------------------------
Checking for GTK2 ... yes
Checking for gamin ... no
Configure:error:Package requirements (gamin) were not met:

No package ' gamin ' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
Installed software in a non-standard prefix.

Alternatively, you may set the environment variables Gamin_cflags
and gamin_libs to avoid the need to call Pkg-config.
The Pkg-config man page is for more details.
-------------------------------------------------------------------------------
How to solve the above problem: Yum install gamin*

Make-j5
Make install

[Root@localhost bin]# pwd
/codeblocks/bin
[Root@localhost bin]#./codeblocks
./codeblocks:error while loading shared libraries:libwx_gtk2u-3.0.so.0:cannot open Shared object file:no such file or Directory
----------------------------------------
Vim/etc/ld.so.conf
Last line add:/usr/local/lib
Save exit, then run Ldconfig.
----------------------------------------


[Root@localhost bin]# ln-s/codeblocks/bin/codeblocks/root/Desktop/codeblocks


5. After installing the Codeblocks, the Programming menu item will appear under Application, where the codeblocks can be started.


6. Install Xterm:yum Install Xterm

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


1, click the application--system Tools
2. Select "Launch Application"
3. Select "Add" in Startup program preferences
4, will appear as before the Add Launcher dialog box, to set
5, after setting the name and command (path), click "Add", the initiator is added to the list
6, with the mouse to select just add the initiator, drag it to the desktop
7. Right-click the new Starter, select Properties, check in the Permissions tab--execute: Allow program execution files
8, the above step, in the Basic tab click on the icon, you can set the Launcher desktop icon.

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.