问题描述
正常流程其实:
git clone https://github.com/neovim/neovim.git
cd neovim
sudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip
sudo make CMAKE_BUILD_TYPE=Release
sudo make install
cd
source .bashrc
完事
但是在make
的时候,提示了github各种依赖没法下载成功导致编译失败…
解决方案
提示make过程中依赖下载失败
比如提示了lua-compat-5.3/v0.7.tar.gz
下载失败.
此时手动按照提示网址下载依赖,放到neovim/.deps/build/downloads/
里,修改权限为777即可.
提示lua-rock下载依赖失败
比如说
Error: Failed installing dependency: https://luarocks.org/mediator_lua-1.1.2-0.rockspec - Error fetching file: Failed downloading https://github.com/Olivine-Labs/mediator_lua/archive/v1.1.2-0.tar.gz - v1.1.2-0.tar
.gz
优先尝试修改 git 的代理,比如:
git config --global http.https://github.com.proxy socks5://127.0.0.1:7890
不行则手动下载安装