Skip to content

Instantly share code, notes, and snippets.

@vigosan
Last active February 27, 2018 21:51
Show Gist options
  • Save vigosan/28e0d6c4efda4eafb43d to your computer and use it in GitHub Desktop.
Save vigosan/28e0d6c4efda4eafb43d to your computer and use it in GitHub Desktop.
Build and install neovim for Debian
#!/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`
@vlcinsky
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment