baidu一堆blog讲解怎么装。搞烦了,直接google,终于解决怎么安装了!自己太菜了,baidu太坑了~~
参考url:https://github.com/vinodpandey/blog/blob/master/vim7.3-centos-with-python-2.7.3-support.txt
安装必要的环境
yum -y groupinstall ‘Development Tools‘ yum -y install openssl-devel zlib ncurses ncurses-devel bzip2-devel
安装 python 2.7.10
sudo yum -y groupinstall ‘Development Tools‘
sudo yum -y install openssl-devel zlib ncurses ncurses-devel bzip2-devel
mkdir -p ~/temp
cd ~/temp
wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar zxvf Python-2.7.3.tgz
cd Python-2.7.3
./configure --prefix=/usr/local --with-threads --enable-shared
make
sudo make altinstall
echo "/usr/local/lib" >> python2.7.conf | sudo mv python2.7.conf /etc/ld.so.conf.d/python2.7.conf
"(/usr/local/lib should have libpython2.7.so )
sudo /sbin/ldconfig
" make python2.7 as default python in bash profile for vim setup
mkdir -p ~/bin
ln -s /usr/local/bin/python2.7 ~/bin/python
echo "export PATH=$HOME/bin:$PATH" >> ~/.bashrc
source ~/.bashrc
vim installation
=================
tar jxf vim-7.4.tar.bz2
tar zxf vim-7.2-extra.tar.gz
tar zxf vim-7.2-lang.tar.gz
mv vim72 vim74
mkdir -p ~/temp
cd ~/temp
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
tar jxvf vim-7.3.tar.bz2
cd vim73
./configure --enable-pythoninterp --with-python-config-dir=/usr/local/lib/python2.7/config --with-features=huge --disable-selinux
(compile with python support)
make
sudo make install