Linux under Codeblock installation (finishing) __linux

Source: Internet
Author: User

Reference http://blog.csdn.net/xi52qian/article/details/7208738

http://blog.csdn.net/dian_technology/article/details/6163557

linux redhat enterparse6.1 installation code::blocks10.05 previously written code on Linux was compiled with VS on windows and then placed under Linux for Vi+gdb mode. It was a tragedy, so today I'm going to find the IDE under Linux. Read a few posts compared to a few Linux mainstream IDE, the last choice of Code::Blocks, choose its main reasons:

1. Open source support for most of the Linux,windows and Mac OS (if it works, you're going to kick vs, too big, too slow)

2. Support many compiler project Borland C + +, VC + +, Inter C + + and so on.

3. The main thing is CB use C + + development of wxwidgets+boost, such as the Eclipse of Java development is not considered, personal preference (but I do not know the reason for my virtual machine configuration is low or something else, eclipse startup is very slow and slow)

4. Plugin-style framework

5. It is said that there is a Chinese version, there is no installation of


Installation process:

CB need a lot of libraries, which to install the good, I installed Redhat no hint of what is missing.

1. But the wxwidgets must be installed.

Download Address: http://www.wxwidgets.org/downloads/

Note: Download 2.8.12 version, the latest 2.9.3 CB in the compilation of the call will have a compile error, changed and changed a lot of ... So simply don't use it. You can do it next wxgtk.

Decompress TAR-XVF./wxwidgets-2.8.12.tar.gz-c/usr/local/src/

cd/usr/local/src/wxwidgets-2.8.12/

Su-root

./configure--prefix=/usr/local-enable-xrc-enable-monolithic-enable-unicode

Make

Make install

Make clean


2. Install code::blocks10.05

Website Download Address: http://prdownload.berlios.de/codeblocks/codeblocks-10.05-src.tar.bz2

TAR-XVF./codeblocks-10.05-src.tar.bz2-c/usr/local/src/

cd/usr/local/src//codeblocks-10.05-release/

Su-root

./configure--prefix=/usr/local

Make

Make install

Make clean Note: You do not need to set the lib and Bin path, the installation of the script will automatically set up, if you do not speak to a WX and CB placed in a path may need to set.


It is said that there is a Chinese version of the patch, but successfully installed online are 8.02 version, did not try.

After installing the application-〉 will see Code::Blocks in the programming.

ubuntu 10.04 installation codeblocks-10.05-1 Category: Work magazine 2011-01-25 17:44 999 people read comments (0) Favorites report Ubuntu Deb Linux include GTK File

Because in Windows with the source insight to see, modify the code, and then copy the modified code to the Linux compiler, this process is too cumbersome. So have been looking for a Linux environment to run, similar to the source Insight program. So far found two software is more appropriate:

² Sourcenav-6.0

Download Address:

Http://nchc.dl.sourceforge.net/project/sourcenav/sourcenav/6.0/sourcenav-6.0.tar.gz

² Codeblocks-10.5

This is a general description of the installation process of Codeblocks-10.5 in the Ubuntu environment.

1. Install the necessary components

At the prompt, enter:

# sudo apt-get install build-essential

# sudo apt-get install GDB

2. Update Source

At the prompt, enter:

# Gksudo Gedit/etc/apt/sources.list

Add (take feisty as an example):

At the prompt, enter:

# Deb Http://apt.tt-solutions.com/ubuntu/feisty Main

# Deb Http://apt.tt-solutions.com/ubuntu/edgy Main

3. Get the key

At the prompt, enter:

# wget HTTP://WWW.TT-SOLUTIONS.COM/VZ/KEY.ASC

At the prompt, enter:

# sudo apt-key add KEY.ASC

4. Install the latest WxWidgets library

At the prompt, enter:

# sudo apt-get update

At the prompt, enter:

# sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers Wx-common

5. Set wxWidgets default version

At the prompt, enter:

# sudo update-alternatives--config wx-config

Select an item from the list.

(Personal recommended option 2)

6. Installation of packages dependent on Codeblocks

(where the DEP refers to the dev of this package)

Here's a point to be sure to install gtk2.0+ This development package, do not have problems in the later configure:

At the prompt, enter:

# sudo apt-get install Libgtk2.0-dev

7. Download the Codeblocks source package

I am using the source code compiled method, download the address:

http://download.berlios.de/codeblocks/codeblocks-10.05-src.tar.bz2

Unzip the downloaded source package to the root directory.

At the prompt, enter:

# CD ~

# tar JXVF codeblocks-10.05-src.tar.bz2

8. Codeblocks sourcecode Compilation and Installation

Before compiling, make sure the system has the Libtool Toolkit installed, and if not, install it:

# sudo apt-get install Libtool

Now start editing and installation of the source package

Switch to Codeblocks to extract the directory, and then run the following command:

#./bootstrap

#./configure

# make

# make Install

The process may be a little long, so you can take a cup of tea and have a rest.

Here codeblocks10.04 installed successfully, now directly open words will appear a flashing phenomenon, because a Lib file is not included in.

If the following problems occur:

# After the installation is complete, start codeblocks and prompt:

Codeblocks:error while loading shared libraries:libcodeblocks.so.0:cannot open Shared object file:no such file or dire Ctory

Workaround: Edit the/etc/ld.so.conf file.

At the prompt, enter:

# vi/etc/ld.so.conf

Change the contents of the ld.so.conf file as shown below, Save and exit

Include/etc/ld.so.conf.d/*.conf/usr/local/lib

Quit and then run the following command to reconfigure.

# Ldconfig



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.