reproduced from: http://www.linuxidc.com/Linux/2014-02/97362.htm
The two-day lab requirements on the server to install a codelite, so I to the server, the Internet saw the tragedy of the discovery CodeLite not supported on the CentOS 6.2 direct installation, can only compile the installation, after a toss, successful loaded, the following is my installation steps:
install CMake http://www.linuxidc.com/Linux/2014-02/97363.htm in CentOS
How to install and CentOS code::blocks on the http://www.linuxidc.com/Linux/2014-02/97364.htm
1. First install a wget (switch to root installation)
Yum install-y wget
2, the officer net next source code package (ordinary user on line)
wget http://downloads.sourceforge.net/project/codelite/Releases/codelite-5.3/codelite-5.3-gtk.src.tar.gz
3, decompression source compression package, get codelite-5.3 directory
TAR-ZXVF codelite-5.3-gtk.src.tar.gz
4, access to the directory, found that there is a BuildInfo.txt file
CD codelite-5.3
Open it
Vim BuildInfo.txt
This stuff is a guide to how we compile and install this source package
This file should say, to install CodeLite, first install wxwidgets (version at least 2.9.5), GTK2 development package, CMake
5, first to install GTK2 development package, this is the simplest
Yum Install gtk2*
6, because to use to CMake compiled CodeLite, first of all, GCC and other necessary procedures packaging
Yum install-y gcc gcc-c++ make Automake
7, then install CMake, change the path, first from the official Internet access CMake source code package,
wget http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz
8, decompression, get cmake-2.8.12 directory
TAR-ZXVF cmake-2.8.12.tar.gz
9, enter the catalogue
CD cmake-2.8.12
10. Execute the following command
./bootstrap\
11. Execute the following command
Gmake
12. Install (switch to root)
Gmake Install
13, CMake installed, the following wxwidgets, change the path, or the first officer net under the source pack
wget http://sourceforge.net/projects/wxwindows/files/2.9.5/wxWidgets-2.9.5.tar.bz2
14, decompression, get wxWidgets-2.9.5,
TAR-JXVF wxwidgets-2.9.5.tar.bz2
15. Enter the catalogue
CD wxWidgets-2.9.5
16, sequentially execute the following command
./configure
Make
Make install
17, after the installation, the terminal appears prompt, the request sets the environment variable Ld_library_path, first executes this command
Ldconfig
18, then enter the command, get a heap of output
./wx-config--libs
19, open the file/etc/profile
Vim/etc/profile
20, to add a word, double quotes in the content is the 18th step of the output, save exit
Export Ld_library_path= "..."
21, then input, the effect is not to restart the system, so that the profile of the modified content into effect
Source/etc/profile
22, to this, BuildInfo.txt in the preconditions have been completed, with the excitement of the mood again look to the BuildInfo.txt, which has the next installation process
23, into the codelite-5.3 directory, new directory Build-release
mkdir Build-release
24, into the Build-release subdirectory
CD Build-release
25, MA-slip input command: cmake-g "Unix makefiles"-dcmake_build_type=release, Error, said in the current directory can not find CMakeList.txt, this file is very familiar, in fact it is in the codelite-5.3 directory, then we point to its path: CMake. /g "Unix makefiles"-dcmake_build_type=release, this time and error, prompted the lack of libssh, lack of what to make up, well, change the path, the next libssh
wget http://www.libssh.org/files/0.5/libssh-0.5.3.tar.gz
26, sequentially execute the following command, for decompression, compilation, installation (note, install the time to switch to root)
TAR-ZXVF libssh-0.5.3.tar.gz
CD libssh-0.5.3
mkdir Build
CD Build
CMake.. /-dcmake_build_type=debug
Make
Make instal
L27, libssh buttoned up, then came to Codelite-5.3/build, and came: CMake. /g "Unix makefiles"-dcmake_build_type=release, error, this time the lack of SSL, a little token
Yum Install OpenSSL Openssl-devel
28, Come again
CMake.. /g "Unix makefiles"-dcmake_build_type=release
29, yeah. It's a success, then.
Make
30, the last
Make install
31, call ... After the end of the call, under the CentOS to enjoy the joy of codelite