CentOS 6.2 Eclipse CDT Development Environment Setup

Source: Internet
Author: User
Tags gtk locale

First, the installation of Chinese language support

When I installed CentOS6.2, I chose Chinese language support, ibus and pinyin input method, GNOME and KDE.

Not installed can be referenced: CentOS English environment using Chinese Input method to install Chinese language support and input methods

Second, the configuration Xwindow

Contents of the 1/etc/sysconfig/i18n file:

Lang= "ZH_CN. UTF-8 "

2. bashrc file join:

Export lang= "en_US. UTF-8 "Export lc_all=" en_US. UTF-8 "

3 Xwindow issues that cannot be started are resolved:

To delete all files and directories associated with Xwindow in the user's home directory, simply keep the following files:. bash*. gvimrc. ssh. Subversion. Viminfo. VIMRC your other working files and directories.

Especially after modifying the language settings, the Gnome card is dead, this method can be solved.

4 Configuring Input methods

Copy Input method file into English environment

#cp/usr/share/locale/zh_cn/lc_messages/ibus*/usr/share/locale/en_us/lc_messages

Set IBUs to boot entry for the English environment

#vi/etc/x11/xinit/xinitrc.d/50-xinput.sh

Find _im_language_list= "as Bn gu hi ja kn ko ml Mr ne or pa si ta te th ur vi en"

Add en to the list

5 Start Xwindow, add Chinese Input method

In the bottom section of the login window, language selection 中文版 (states), session selection GNOME

Point Menu: System->preferences->input method

Dot button: Input Method Preferences ... Select Pinyin Input Method and add

Open the editor and press "Control+space" to enter Chinese. (if not, log off the user first, then enter)

Third, install the JDK (reference URL)

1 Downloads jdk-7u80-linux-x64.gz

2 MV files to the/usr/local directory

Cd/usr/local

TAR-XZVF jdk-7u80-linux-x64.gz

MV Jdk-7u80-linux-x64 Jdk7

3 Modify the. bash_profile file, add:

Export JAVA_HOME=/USR/LOCAL/JDK7

Export classpath=.: $JAVA _home/lib/tools.jar: $JAVA _home/lib/dt.jar

Export path= $JAVA _home/bin: $PATH

4 exit the user and log back in

$ java-version

Java Version "1.7.0_80"

Java (TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot (tm) 64-bit Server VM (build 24.80-b11, Mixed mode)

Iv. installing eclipse (reference URL)

1 Downloads eclipse-cpp-luna-sr2-linux-gtk-x86_64.tar.gz

2 with root user action:

Mkdir/opt/eclipse

Cd/opt/eclipse

TAR-ZXVF eclipse-cpp-luna-sr2-linux-gtk-x86_64.tar.gz

MV Eclipse LUNA-SR2

Ln-s/opt/eclipse/luna-sr2/eclipse/usr/local/bin/eclipse-luna

3 Creating a Desktop boot

Vim/usr/share/applications/eclipse-luna.desktop

Add the following code:

[Desktop Entry] Type=application name=eclipse 4.4.2 Luna comment=eclipse Luna C + + icon=/opt/eclipse/luna-sr2/icon.xpm Exec=/usr/ Local/bin/eclipse-luna Terminal=false categories=development;ide; C + +;

4 Check if Eclipse is added to the application

CentOS 6.2 Eclipse CDT Development Environment Setup

Related Article

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.