ubuntu 18.04安装vim8.1
ubuntu 18.04编译安装vim最新版本8.1(2018.08.13)
git clone https://github.com/vim/vim.git cd vim ./configure --with-features=huge --enable-gui=gtk2 --enable-cscope --prefix=/usr sudo make VIMRUNTIMEDIR=/usr/share/vim/vim81 sudo make install
如果一切顺利就安装完了!!!
执行版本查看命令:
vim --version
这里列出几个可能出现的错误
1、configure: error: no acceptable C compiler found in $PATH
sudo apt install gcc
2、no terminal library found checking for tgetent()… configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with –with-tlib.
下载新版本安装:
https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/ncurses/6.1-1ubuntu1/ncurses_6.1.orig.tar.gz
执行如下命令:
gunzip ncurses_6.1.orig.tar.gz tar -xvf ncurses_6.1.orig.tar cd ncurses-6.1 ./configure sudo make sudo make install