CentOS6.2 compile and install codelite5.3

This two-day lab requires the installation of a codelite on the server, then the server start by me, the Internet looked under tragic discovery codelite does not support direct installation on centos, can only compile and install, after some agonizing, the success of the installation on, here are my installation steps:

1, a first load wget (changes to the next installation root)

 

yum install -y wget

 

2, the next source packet official website (Normal users on the list)

 

wget http://downloads.sourceforge.net/project/codelite/Releases/codelite-5.3/codelite-5.3-gtk.src.tar.gz

3, extract the source archive, directory give codelite-5.3

tar -zxvf codelite-5.3-gtk.src.tar.gz

4, enter the directory, found a file BuildInfo.txt

cd codelite-5.3

 

Open it

vim BuildInfo.txt

This stuff is inside us guidance on how to compile and install the source package

 

This file should be said, to install codelite, first install wxWidgets (at least version 2.9.5), gtk2 development kits, cmake
5, the first development kits to install gtk2, the most simple

 

yum install gtk2*

6, due to the use cmake to compile codelite, put gcc and other essential programs on the packaging

 

 

yum install -y gcc gcc-c++ make automake


7, then install cmake, another path, the official start line acquired cmake source package,

 

 

wget http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz

 

8, decompression, to obtain directory cmake-2.8.12

 

tar -zxvf cmake-2.8.12.tar.gz


9, enter the directory

 

 

cd cmake-2.8.12

10, execute the following command

 

 

./bootstrap

11, execute the following command

 

 

gmake

12, is mounted (switch to root)

 

 

gmake install

13, cmake Bahrain, mounted below the wxWidgets, another path, or the source packet next to the official website

 

 

wget http://sourceforge.net/projects/wxwindows/files/2.9.5/wxWidgets-2.9.5.tar.bz2

14, decompression, to give wxWidgets-2.9.5,

 

 

tar -jxvf wxWidgets-2.9.5.tar.bz2

 

15, enter the directory

 

cd wxWidgets-2.9.5

16, in turn execute the following command

 

 

./configure
make
make install

17, after installation, the terminal prompted required to set the environment variable LD_LIBRARY_PATH, to execute this command

 

 

ldconfig

18, and then enter a command, to obtain an output pile

 

 

./wx-config --libs

19, open the file / etc / profile

vim /etc/profile

20, inside add a word, the content of double quotes is the first step 18 was output, save and exit

 

 

export LD_LIBRARY_PATH="..."

 

21, and then input, in effect without restarting the system, so that the content profile is modified to take effect

 

source /etc/profile

22, this, BuildInfo.txt the pre-conditions have been completed, excited to see the BuildInfo.txt again, there are next installation process

23, enter codelite-5.3 directory, create directory build-release

 

mkdir build-release

24, into the build-release subdirectory

 

 

cd build-release

25, hemp slip enter the command: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE = Release, being given that CMakeList.txt not found in the current directory, the file very well, in fact, it is in the codelite-5.3 directory, we point out its path: cmake ../ -G "Unix Makefiles" -DCMAKE_BUILD_TYPE = Release, this time and error, suggested that the lack libssh, lack of Han make up what, well, another path, next libssh

 

 

wget http://www.libssh.org/files/0.5/libssh-0.5.3.tar.gz

26, followed by executing the following command, decompress, compile, install (note, the installation must be switched to the 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 install

27, libssh get, then came under codelite-5.3 / build, again: cmake ../ -G "Unix Makefiles" -DCMAKE_BUILD_TYPE = Release, error, this lack ssl, a mere trifle

 

 

yum install openssl openssl-devel

28, again

cmake ../ -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release

29, yeah! This successful, then

 

 

make

30, finally

make install

31, call. . . Kick call it a day, here to enjoy the joy codelite bring it under CentOS

 

Install CMake reference link: http: //www.cnblogs.com/mophee/archive/2013/03/19/2969456.html
install wxWidgets reference link: http: //blog.csdn.net/howeverpf/article/details/7834513








 


Guess you like

Origin www.cnblogs.com/read-the-spring-and-autumn-annals-in-night/p/12042014.html