52 lines
1.6 KiB
Bash
52 lines
1.6 KiB
Bash
#!/bin/bash
|
|
|
|
VIM_CODE=$HOME/download/vim-8.2.2767
|
|
CONF=$VIM_CODE/configure
|
|
|
|
# download vim 8.1 first, and enter the directory
|
|
$CONF \
|
|
--disable-nls \
|
|
--enable-cscope \
|
|
--enable-gui=no \
|
|
--enable-multibyte \
|
|
--enable-python3interp=yes \
|
|
--enable-pythoninterp=yes \
|
|
--enable-rubyinterp=yes \
|
|
--prefix=$HOME/.local/vim \
|
|
--with-features=huge \
|
|
--with-python3-config-dir=$HOME/.local/anaconda3/lib/python3.6/config \
|
|
--with-python-config-dir=/usr/lib/python2.6/config \
|
|
--without-x
|
|
|
|
|
|
# compile using anaconda3 python-3.6
|
|
$CONF \
|
|
--enable-terminal \
|
|
--enable-gui=auto \
|
|
--with-features=huge \
|
|
--enable-multibyte \
|
|
--enable-cscope \
|
|
--enable-terminal \
|
|
--prefix=$HOME/.local/vim \
|
|
--enable-python3interp \
|
|
--with-python3-config-dir=$HOME/.local/anaconda3/lib/python3.6/config \
|
|
--includedir=$HOME/.local/anaconda3/include \
|
|
LDFLAGS=" -L$HOME/.local/anaconda3/lib -L$HOME/.local/anaconda3/lib/python3.6/config-3.6m-x86_64-linux-gnu"
|
|
|
|
# compile using anaconda3 python-3.8
|
|
$CONF \
|
|
--enable-terminal \
|
|
--enable-gui=no \
|
|
--with-features=huge \
|
|
--enable-multibyte \
|
|
--enable-cscope=yes \
|
|
--prefix=$HOME/.local/vim \
|
|
--enable-python3interp=yes \
|
|
--with-python3-config-dir="$HOME/.local/anaconda3/lib/python3.8/config-3.8-x86_64-linux-gnu" \
|
|
--includedir="$HOME/.local/anaconda3/include" \
|
|
LDFLAGS=" -L/usr/lib -L/usr/local/lib -L/usr/lib64 -L$HOME/.local/anaconda3/lib -L$HOME/.local/anaconda3/lib/python3.8/config-3.8-x86_64-linux-gnu"
|
|
# --with-tlib=ncurses \
|
|
|
|
# then export LD_LIBRARY_PATH="$HOME/.local/anaconda3/lib:$HOME/.local/lib:$LD_LIBRARY_PATH"
|
|
|