编译安装最新版本VIM

发布时间 2023-08-11 22:42:45作者: 我心飞扬~

编译安装最新版本VIM

命令:

git clone https://github.com/vim/vim.git
cd vim/src
make
sudo make install
vim

编译时可能出现的错误

1.错误:no acceptable C compiler found in $PATH

解决办法:安装GCC软件套件

atp install gcc

2.编译vim时You need to install a terminal library; for example ncurses.解决

提示错误:

no terminal library foundS
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.

ncurses是一个比较老的库

解决方法:

sudo apt-get install libncurses5-dev