Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ RHEL6.5 install the latest version of Vim and increase support for the Python2.7.5     - CentOS 7 install Hadoop-cdh-2.6 (Server)

- Ubuntu 15.04 using the Eclipse 4.4, Java 8 and WTP (Linux)

- Timeout control related to Python threads and a simple application (Programming)

- Docker improve safety (Server)

- How to upgrade the kernel to 3.13.7 on Ubuntu / Linux Mint (Linux)

- Packages with Snort intrusion monitoring light (Linux)

- Use MySQL optimization of security to prevent misuse of aliases (Database)

- MogileFS system installation configuration example (Server)

- History of the most complex validation e-mail address regular expression (Linux)

- CentOS 7 How to install MySQL Server (Database)

- CentOS 7 - use cgroups limit process resource (Linux)

- Reason C ++ program running under Linux a segmentation fault core dumped in (Programming)

- TOAST function in PostgreSQL (Database)

- Distributed File System FastDFS deployment (Server)

- Execute command sentence can result in equipment permanently bricked in Linux laptop (Linux)

- MySQL log from the library than the main library (Database)

- Oracle database, some basic grammatical structures (Database)

- Use install_updates upgrade GAMIT / GLOBK (Linux)

- Appweb configuration in detail (Server)

- How to publish projects to the Jcenter repository using Gradle in Android Studio (Programming)

 
         
  RHEL6.5 install the latest version of Vim and increase support for the Python2.7.5
     
  Add Date : 2018-11-21      
         
         
         
  Many vim plugin Git on, we need vim high version, rhel6.5 default installation of vim 7.2, these plug-ins to make vim support, so that vim more efficient work, the interface look more beautiful, you need to compile and install the vim new.

1. Check rhel6.5 default installation of python version
2. Install the python multiple version management tool
3. Install python 2.7.5
4. vim compile and install the latest version
5. Use pip install ipython

1. Check rhel6.5 default installation of python version

rhel 6.5 to 2.6.6 installed by default python can be seen from the following output:

# Python

Python 2.6.6 (r266: 84292, Sep 4 2013, 07:46:00)

2. Install the python multiple version management tool

You need to use the relevant features of the new version of Python, but do not want to affect the system comes with Python, this time on the need to achieve coexistence of multiple versions of Python.

# Curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash

Add in .bashrc

# Vim .bashrc

export PYENV_ROOT = "$ {HOME} /. pyenv"

if [-d "$ {PYENV_ROOT}"]; then

  export PATH = "$ {PYENV_ROOT} / bin: $ {PATH}"

  eval "$ (pyenv init -)"

fi

# Source .bashrc


pyenv common commands

pyenv install --list can view the installed version

pyenv install 2.7.5 to install the specified version

pyenv versions View the currently installed version of python

pyenv version View Python version currently in use

pyenv global 2.7.5 set the global version of python

pyenv local 2.7.5 set the local python, affects only the current working directory


It recommended not to use global switch because the current system some depend on the current system software to run as the default version of python yum

3. Install python 2.7.5

Installation depends:

yum -y install gcc gcc-c ++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel

In order to install python 2.5.7 pyenv faster import python domestic source

# Export PYTHON_BUILD_MIRROR_URL = "http://pyenv.qiniudn.com/pythons/"


Use pyenv install python 2.5.7

[Root @ www ~] # pyenv install 2.7.5

Downloading Python-2.7.5.tgz ...

-> Http://pyenv.qiniudn.com/pythons/b4f01a1d0ba0b46b05c73b2ac909b1df

Installing Python-2.7.5 ...

patching file ./Modules/readline.c

Hunk # 1 succeeded at 204 (offset -2 lines).

Hunk # 2 succeeded at 747 (offset -2 lines).

Hunk # 3 succeeded at 857 (offset -2 lines).

Hunk # 4 succeeded at 905 (offset -13 lines).

Installed Python-2.7.5 to /root/.pyenv/versions/2.7.5

Downloading setuptools-3.6.tar.gz ...

-> Https://pypi.python.org/packages/source/s/setuptools/setuptools-3.6.tar.gz

Installing setuptools-3.6 ...

Installed setuptools-3.6 to /root/.pyenv/versions/2.7.5

Downloading pip-1.5.6.tar.gz ...

-> Https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz

Installing pip-1.5.6 ...

Installed pip-1.5.6 to /root/.pyenv/versions/2.7.5

You can not only see the use pyenv installation python2.7.5 installed python, and 1.5.6 also installed pip

# Pyenv versions

* System (set by /root/.pyenv/version)

  2.7.5

pip separate installation methods:

# Wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py

# Python get-pip.py

 Switching between multiple versions of python:

# Pyenv versions

* System (set by /root/.pyenv/version)

  2.7.5

# Pyenv local 2.7.5

# Pyenv versions

  system

* 2.7.5 (set by /root/.python-version)

4. vim compile and install the latest version

Download Source:

# Yum -y install hg

# Hg clone https://code.google.com/p/vim/ vim

To support python vim need to install pythen-devel:

# Yum install -y python-devel

# ./configure --with-Features = huge \

    --enable-gui = gnome2 --enable-luainterp = yes --enable-pythoninterp = dynamic \

    --enable-rubyinterp = yes --enable-perlinterp = yes --enable-cscope \

    --enable-fontset --enable-multibyte --enable-sniff --enable-xim \

    --prefix = / usr / local / vim74 \

    --with-python-config-dir = / root / .pyenv / versions / 2.7.5 / lib / python2.7 / config

# Make && make install

# Echo 'PATH = / usr / local / vim74 / bin: $ PATH'> /etc/profile.d/vim.sh

#source / etc / profile

# Echo $ PATH

#vim /etc/man.conf

MANPATH / usr / local / vim74 / share / man

# Vim .vimrc add

set nocompatible "No to the total compatibility with the ancient vi


The following error occurred during the compilation of resolve:

/ Usr / bin / perl / usr / share / perl5 / ExtUtils / xsubpp -prototypes -typemap \

/ Usr / share / perl5 / ExtUtils / typemap if_perl.xs >> auto / if_perl.c

Can not open perl script "/ usr / share / perl5 / ExtUtils / xsubpp": No such file or directory

make [1]: *** [auto / if_perl.c] Error 2

make [1]: Leaving directory `/ root / soft / vim / src '

make: *** [first] Error 2

Solution:

yum search perl | grep ExtUtils

yum install -y perl-ExtUtils-Embed

Check out our newly installed vim:

# Vim

: Version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 22 2014 09:55:19)

5. Use pip install ipython

# Pip install ipython
     
         
         
         
  More:      
 
- Zend Studio PHP syntax color scheme to export (Linux)
- Unix system security configuration (Linux)
- Git Tutorial Comments (Linux)
- Linux environment variable configuration and save places (Linux)
- Python 2 Chinese garbage problem solved (Linux)
- There are three ways to run a Linux operating system from a USB stick (Linux)
- Realize screen recording and playback via Linux command (Linux)
- The Linux C truncate function clears the file notes (Programming)
- Shell Common Command Summary (Programming)
- Let MySQL 5.6 support Emoji expression (Database)
- Memcached distributed caching (Server)
- Debian 7.6 install Nvidia graphics driver (Linux)
- Cacti monitoring service Nginx (Linux)
- Why not use the ifconfig command under RedHat Linux 5 (Linux)
- Java Virtual Machine Basics (Programming)
- Install apr support for Tomcat on Linux (Server)
- VMware virtual machines to install virt-manager unable to connect to libvirt's approach (Linux)
- Oracle user lock how to know what causes (Database)
- Redis configuration file interpretation (Database)
- GRUB and Linux system repair (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.