Install Code: Blocks on the Red Hat Linux platformI have posted some of my previous little experiences. I am very beginner and hope to help the programmers who just got started. This is a C ++ IDE. Code: Blocks it is open-source and can run on Windows or linux on a cross-platform basis. It also supports MacOS, this tool is very useful. I personally feel that it is like Java's JCreator and a small and easy-to-use IDE.
For Windows, you don't need to talk about it. Simply set it up. Let's talk about the installation on Linux.
1. Install GTK + on Linux
If you do not select GTK + in the development tool when installing the Red Hat program, you can use a CD to install the program. It is convenient to use the add and delete functions of the Red Hat program.
If there is no CD, then you can only download to the http://www.gtk.org, and installed, install GTK + is more complex, here is not much to say.
Note that GTK + is a required component and cannot be installed without wxGTK. 2. Compile and install wxGTK on Linux platform (taking wxGTK-2.6.2 as an example)
Download wxgtk-2.6.2.tar.gz, where the http://www.wxwidgets.org is located.
After the download, enter the following command to install: tar zxvf wxGTK-2.6.2.tar.gz
Cd wxGTK-2.6.2
./Configure -- enable-xrc -- enable-monolithic -- enable-unicode
Make
Make install if no error message is displayed, the installation is smooth and the compilation process is slow. 3. The library file path points to the correct path
Because the path is not specified when wxGTK is installed, wxGTK is mounted to/usr/local/lib. If it points to the path,
This step can be omitted after the "-prefix =/usr" parameter is added.
Path to the library file: vi/etc/ld. so. conf
At the end of the file, enter:
/Usr/local/lib
After adding, run:
/Sbin/ldconfig4. Installation Verification
You can use the following output to check whether the installation is correct:
Wx-config -- prefix
Wx-config -- libs
Which wx-config 5. Download Code: Block
Download it at http://www.codeblocks.org/downloads/
: Http://ncu.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-8.02-src.tar.bz2
Download and enter the following command to install: tar jxf codeblocks-8.02-src.tar.bz2
Cd codeblocks-8.02
./Configure-prefix =/usr
Make
Make install if no error message is displayed, the installation is smooth and the compilation process is slow. 6. Start and create shortcuts
Right-click on the desktop, select "create initiator", and enter the following path:/usr/bin/codeblocks 650) this. width = 650; "onclick = 'window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'alt = "" src = "http://www.bkjia.com/uploads/allimg/131228/1U3022343-0.png" border = "0"/> after creating a shortcut, double-click the new icon to start CB, as shown below: 650) this. width = 650; "onclick = 'window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'alt =" "src =" http://www.bkjia.com/uploads/allimg/131228/1U3022b9-1.png "border =" 0 "/> 《Java programmers, work",Preface,DirectoryZhuo Yue network sales Link
China-pub sales Link
Dangdang sales LinkCommemorative post on "Java programmer, work day"
This article is from the "pure" Programmer Club "blog, please be sure to keep this source http://useway.blog.51cto.com/736087/165551