Last active
February 27, 2018 21:51
-
-
Save vigosan/28e0d6c4efda4eafb43d to your computer and use it in GitHub Desktop.
Build and install neovim for Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Build and install neovim for Debian | |
pushd . | |
mkdir -p ~/src | |
cd ~/src | |
# Install cmake 2.8.10 | |
cmake_package="cmake-3.3.1" | |
if [ ! -e ~/scr/$cmake_package ]; then | |
curl -O http://www.cmake.org/files/v3.3/$cmake_package.tar.gz | |
tar -xzvf $cmake_package.tar.gz | |
fi | |
cd ~/src/$cmake_package && ./configure -- -DCMAKE_USE_OPENSSL=ON && sudo make install -j4 && cd ~/src | |
#Install dependencies | |
sudo apt-get install libtool libtool-bin autoconf automake cmake libncurses5-dev g++ pkg-config unzip | |
#Get or update neovim github repo | |
if [ ! -e ~/src/neovim ]; then | |
git clone https://github.com/neovim/neovim | |
else | |
cd neovim | |
git pull origin | |
fi | |
cd ~/src/neovim | |
sudo make install | |
popd | |
echo nvim command: `which nvim` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used this script (in fact I did all the steps manually according to the script) to install alpha version of nvim.
At one moment, I was not able to complete compilation, it was complaining about missing dependency
libunibilium.so
.make clean
did not improve the situation.Finally, I had to remove complete
~/src/neovim
directory, clone it from git again. After that, compilation worked well.Now I have version
NVIM v0.1.0-39-g3b61598
installed and working.Thanks