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