CentOS 6.2 compilation and installation of CodeLite 5.3

Source: Internet
Author: User
Tags wxwidgets codelite

In the past two days, the lab asked me to install a CodeLite on the server. So I started with the server. After reading the tragedy on the internet, I found that CodeLite does not support direct installation on CentOS 6.2 and can only be compiled and installed, after some tossing, the installation is successful. The following is my installation steps:

Install CMake in CentOS

How to install and write Code: Blocks on CentOS

1. Install wget first (switch to root for installation)

Yum install-y wget

2. The next source code package on the official website (for normal users)

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

3, extract the source code compressed package, get the codelite-5.3 directory

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

4. Enter the Directory and find a buildinfo.txt file.

Cd codelite-5.3

Open it

Vim BuildInfo.txt

This article explains how to compile and install the source code package.

To install codelite, you must first install wxWidgets (at least 2.9.5), gtk2, and cmake.

5. Install the gtk2 development kit first, which is the simplest

Yum install gtk2 *

6. To use cmake to compile codelite, first package necessary programs such as gcc.

Yum install-y gcc-c ++ make automake

7. Install cmake, change the path, and obtain the cmake source package from the official website,

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

8. decompress and get the cmake-2.8.12 directory.

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. Install (switch to root)

Gmake install

13. After cmake is installed, install wxWidgets in the following directory and change the path.

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

14, extract, get the wxWidgets-2.9.5,

Tar-jxvf wxWidgets-2.9.5.tar.bz2

15. Enter the Directory

Cd wxWidgets-2.9.5

16. Execute the following commands in sequence
./Configure

Make

Make install

17. After installation, the terminal prompts you to set the environment variable LD_LIBRARY_PATH and run this command first.

Ldconfig

18. Enter the command to get a bunch of output

./Wx-config -- libs

19. open the file/etc/profile

Vim/etc/profile

20. add a sentence to it. The content in double quotation marks is the output in step 1. Save and exit.

Export LD_LIBRARY_PATH = "..."

21. Enter the following information to make the modified content in the profile take effect without restarting the system.

Source/etc/profile

The frontend conditions in buildinfo.txt have been completed in 22nd region, and then look at buildinfo.txt with an exciting mood, which contains the following installation process

23. Enter the codelite-5.3 directory and create the directory build-release

Mkdir build-release

24. Go to the build-release subdirectory.

Cd build-release

25, the input command: cmake-G "Unix Makefiles" program, this file is very familiar, in fact it is in the codelite-5.3 directory, then we point out its path: cmake .. /-G "Unix Makefiles"-DCMAKE_BUILD_TYPE = Release

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

26. Execute the following commands in sequence to decompress, compile, and install the tool. (Note that you must switch to root during installation)

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 get, then came to the codelite-5.3/build, and again: cmake ../-G "Unix Makefiles"-DCMAKE_BUILD_TYPE = Release, error, this lack of ssl, meaning

Yum install openssl-devel

28. Come back

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

29. yeah! This is a success.

Make

30. Last

Make install

31. Call... After finishing the work, enjoy the joy of codelite in CentOS.

Add update sources for codelite in Ubuntu 12.04

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.