---
vim源码安装:
1. git clone https://github.com/vim/vim.git
2. cd vim && ./configure --prefix=xxx -enable-multibyte --enable-pythoninterp=yes --enable-python3interp=yes
3. make && make install
4. 遇到一个库的错误,解决方法: sudo apt-get install libncurses5-dev libncursesw5-dev
5. 开启python支持 https://www.tuicool.com/articles/jYvMFv
---
python3.6 源码安装
1. wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
2. 源码安装SSL wget https://github.com/openssl/openssl/archive/OpenSSL_1_1_1.tar.gz && ./config --prefix=/data00/kangyang/openssl && make && make install. 并且配置PATH和LD_LIBIARY_PATH
3. ./configure --enable-optimizations --with-ensurepip=install --prefix=/data00/kangyang/python3.6
4. make && make install
5. pip3 install virtualenv && virtualenv /data00/kangyang/virtualenv3.6