Centos6.5 (final) install GCC and G++,python and the solution that causes the problem

Source: Internet
Author: User

Installing GCC:Yum install gcc

Installation g++:yum install gcc-c++

To install Python:

The CentOS default is version 2.6,

Download python, I downloaded the 2.7.10.

1 Unpacking the installation package

TAR-ZXVF  python-2.7.  10.tgz

2 Compiling the installation

The CD switches to the python-2.7. 10 directory. /configure--prefix=/usr/local/python-2.7. Ten  && make install

3 Creating a soft link

Mv/usr/bin/python/usr/bin/python2. 6.6  -s/usr/local/python-2.7. Ten/bin/python2. 7  /usr/bin/python Note: The first path is I download to the local to the path, this path to the situation according to their own changes;

4 Checking the installation

[[Email protected] ~]$ Pythonpython2.7.Ten(default, Sep7  -, +: -: -) [GCC4.4.7 20120313(Red Hat4.4.7- -)] on Linux2type" Help","Copyright","credits"Or"License"  forMore information.>>>

5 causes the problem after installation:

Chinese Input method cannot display candidates

After a search, the solution is as follows:

/usr/libexec/ibus-ui-gtk/usr/bin/ibus-setup/usr/libexec/ibus-engine-table will be in the three files above  "exec python"  was modified to  "exec python2. " 6", let the after reboot can see the input method to the candidate project.

The reason for this is that CentOS relies on python2.6. You can look at this delicate analysis http://www.douban.com/group/topic/27400855/.

Yum does not work properly

This is because the Python version that Yum uses by default is 2. 6.6, where is the current Python version is 2. 7.5  /usr/bin/Yum changes the file header's #!/usr/bin/python to #!/usr/bin/python2. 6

Centos6.5 (final) install GCC and G++,python and the solution that causes the problem

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.