Skip to content

Instantly share code, notes, and snippets.

@riffrain
Created January 12, 2020 01:47
Show Gist options
  • Save riffrain/1eafe22c534169e16774082e47564f26 to your computer and use it in GitHub Desktop.
Save riffrain/1eafe22c534169e16774082e47564f26 to your computer and use it in GitHub Desktop.
build neovim and install it to local
git clone https://github.com/neovim/neovim
cd neovim
# if you want build stable release
git checkout stable
make CMAKE_BUILD_TYPE=Release \
CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local -DLibIntl_LIBRARY=/usr/lib/libintl.so.8 -DLibIntl_INCLUDE_DIR=/usr/include"
make install
# export PATH="$HOME/.local/bin:$PATH"
# in your neovim directory
rm -r build/ # clean the CMake cache
make CMAKE_BUILD_TYPE=Release \
CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local -DLibIntl_LIBRARY=/usr/lib/libintl.so.8 -DLibIntl_INCLUDE_DIR=/usr/include"
make install
rm ~/.local/bin/nvim
rm -r ~/.local/share/nvim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment