编译安装最新版本VIM

编译安装最新版本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 withwith-tlib.

ncurses是一个比较老的库

解决方法:

sudo apt-get install libncurses5-dev
posted @   我心飞扬~  阅读(60)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示