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, run the following command on the terminal to install yuminstallgcc:
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