1. 程式人生 > >Debian原始碼編譯安裝Vim8.0

Debian原始碼編譯安裝Vim8.0

Debian安裝Vim8.0

安裝依賴和必要的軟體

sudo apt-get install git 
sudo apt-get install libncurses5-dev 
sudo apt-get install libgnome2-dev 
sudo apt-get install libgnomeui-dev 
sudo apt-get install libgtk2.0-dev 
sudo apt-get install libatk1.0-dev 
sudo apt-get install libbonoboui2-dev 
sudo apt-get install libcairo2-dev
sudo apt-get install libx11-dev sudo apt-get install libxpm-dev sudo apt-get install libxt-dev sudo apt-get install python-dev sudo apt-get install python3-dev sudo apt-get install ruby-dev sudo apt-get install mercurial sudo apt-get install ncurses

其中有些的依賴看個人需要而定,可以將包放在一個sudo apt-get install

後面
我的Linux發行版本是Debian8

刪除之前的安裝的Vim

sudo apt-get remove vim vim-tiny vim-common vim-runtime gvim

下載Vim原始碼

git clone https://github.com/vim/vim

編譯安裝

./configure --with-features=huge --enable-multibyte --enable-luainterp /
--enable-rubyinterp --enable-pythoninterp /
--enable-perlinterp --enable-cscope
--enable-tclinterp / --enable-gui=gtk3 --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu / --with-x --with-tlib=ncurses --with-gnome

配置編譯選項,Debian8和Ubuntu16.04 Python2和Python3不能同時支援

make VIMRUNTIMEDIR=/usr/share/vim/vim80
sudo make install