CentOS6 installation codeblocks2012-02-12 20:01
Codeblock is a good IDE, free, open source, cross-platform and some other advantages of the column!
The following is my CentOS6 on the installation of Codelocks process, I hope to yimeimei some help!
1. Installing GCC , C and C + + are required, the default installation, CentOS does not install the compiler, enter the following command in the terminal
Yum Install GCC
Yum Install gcc-c++
2. Installing Gtk2-devel , because the support libraries required for the formal product are already installed by default, but the documentation required for development is not installed.
Yum Install gtk2*
3. Install wxgtk,http://pkgs.repoforge.org/wxGTK/, requires the following two files:
wxgtk-devel-2.8.9-1.el5.rf.i386.rpm
wxgtk-2.8.9-1.el5.rf.i386.rpm
Use the RPM command or double-click Install
4. Finally, download the codeblocksand compile the installation using the source code . . Enter the extracted directory and type the command:
./configure--prefix=/usr--with-contrib-plugins=all
Make
Make install
Note that root permission is required to install
All normal conversations are installed, and you have codelocks! in application-and programming .
Very excited to write a few lines of code to test:
/**********************************************
* Author:xiaobaoqiu
* From:china University of Gensciences
* qq:375722880
* email:[email protected]
* Copyright by Xiaobaoqiu
******************************** /
#include <iostream>
using namespace Std;
int Main ()
{
cout<< "Hello codeblocks!" <<endl;
return 0;
" /span>
Compile OK but not run out, do not appear our familiar console interface, look closely to build log I found the following information:
Executing:xterm-t test-e/usr/bin/cb_console_runnerld_library_path= $LD _library_path:./home/*********/program/ Test/bin/debug/test (in/home/*********/program/test/.)
Here is a xterm is very strange, we open the menu settings->environment Open to the Environment setting interface, we on the general Settings page The bottom of the two settings (mainly see the second):
Shell to run commands in:/bin/sh-c
Terminal to launch console programs:xterm-t $TITLE-E
This means that in the Linux environment Codeblocks calls Xterm to simulate the console interface!
Then I xterm and found no!!!!!. That should be the reason!
So install Xterm:Yum installs xterm
After everything OK, appeared to us familiar with the console interface!
[Go] CentOS installation codeblocks