-- 安装 zlib (安装pip要用到,没有就error)
wget http://zlib.net/zlib-1.2.11.tar.xz
tar xJf zlib-1.2.11.tar.xz
cd zlib-1.2.11
./configure
make
make install
-- 安装python
# wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz# tar xJf Python-3.6.1.tar.xz# cd Python-3.6.1# ./configure --enable-optimizations# make# make install# which python3# python3 -V
Install Vim 8
-- 遇到错误(no terminal library found)请执行
sudo apt-get install libncurses5-dev-- 下载
git clone https://github.com/vim/vim.git
cd vim/src
--清理上次编译文件
make distclean
./configure --with-features=huge --enable-pythoninterp--enable-python3interp--with-python-config-dir=/usr/local/lib/python3.6/config-3.6m-x86_64-linux-gnu--enable-gui=gtk2 --enable-cscope--enable-multibyte-----------------------------------------with-features=huge:支持最大特性
--enable-pythoninterp:启用Vim对python编写的插件的支持
--enable-python3interp:启用Vim对python3编写的插件的支持
--enable-multibyte:多字节支持 可以在Vim中输入中文
--enable-cscope:Vim对cscope支持
--enable-gui=gtk2:gtk2支持,也可以使用gnome,表示生成gvim
--with-python-config-dir: 指定 python 路径
---------------------------------------
make
make install