Skip to content

Commit 55a180b

Browse files
committed
build vim with config --enable-pythoninterp and --enable-python3interp when os is ubuntu or centos
1 parent 10f9f4b commit 55a180b

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

scripts/init-vim-centos.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,18 @@ sudo yum -y remove vim
77

88
cd ~ && rm -rf vim && git clone git@github.com:vim/vim.git && cd vim
99
./configure --with-features=huge \
10-
--enable-multibyte \
11-
--enable-pythoninterp \
12-
#--with-python-config-dir=/usr/lib/python2.7/config \
13-
--enable-python3interp \
14-
#--with-python3-config-dir=/usr/lib/python3.4/config \
15-
--with-mac-arch=x86_64 \
16-
--enable-gui=gtk2 --enable-cscope --prefix=/usr
10+
--enable-multibyte \
11+
--enable-rubyinterp=yes \
12+
#--enable-pythoninterp=yes \
13+
#--with-python-config-dir=/usr/lib/python2.7/config \
14+
#--enable-python3interp=yes \
15+
#--with-python3-config-dir=/usr/lib/python3.6/config \
16+
--enable-pythoninterp=dynamic \
17+
--enable-python3interp=dynamic \
18+
--enable-perlinterp=yes \
19+
--enable-luainterp=yes \
20+
--enable-gui=gtk2 \
21+
--enable-cscope \
22+
--prefix=/usr/local
1723
make VIMRUNTIMEDIR=/usr/local/share/vim/vim81
1824
sudo make install

scripts/init-vim-ubuntu.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ sudo apt-get remove -y vim vim-runtime gvim
2222
echoo ">>> Install vim ..."
2323
cd ~ && rm -rf vim && git clone https://github.com/vim/vim.git && cd vim
2424
./configure --with-features=huge \
25-
--enable-multibyte \
26-
--enable-pythoninterp \
27-
#--with-python-config-dir=/usr/lib/python2.7/config \
28-
--enable-python3interp \
29-
#--with-python3-config-dir=/usr/lib/python3.4/config \
30-
--with-mac-arch=x86_64 \
31-
--enable-gui=gtk2 --enable-cscope --prefix=/usr
25+
--enable-multibyte \
26+
--enable-rubyinterp=yes \
27+
#--enable-pythoninterp=yes \
28+
#--with-python-config-dir=/usr/lib/python2.7/config \
29+
#--enable-python3interp=yes \
30+
#--with-python3-config-dir=/usr/lib/python3.6/config \
31+
--enable-pythoninterp=dynamic \
32+
--enable-python3interp=dynamic \
33+
--enable-perlinterp=yes \
34+
--enable-luainterp=yes \
35+
--enable-gui=gtk2 \
36+
--enable-cscope \
37+
--prefix=/usr/local
3238
make VIMRUNTIMEDIR=/usr/local/share/vim/vim81
3339
sudo make install

0 commit comments

Comments
 (0)