Skip to content

Instantly share code, notes, and snippets.

@skanehira
Created November 14, 2020 00:07
Show Gist options
  • Save skanehira/37f01e7bd8c7356741d551dee255cae9 to your computer and use it in GitHub Desktop.
Save skanehira/37f01e7bd8c7356741d551dee255cae9 to your computer and use it in GitHub Desktop.

How to build neovim on ubuntu 20.04

Environment

  • Ubuntu 20.04
  • fish, version 3.1.2

Installation

https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites

sudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip
make
sudo make install

FAQ

Problem

Cmake error :generator: Ninja

Solustion

rm -f (find -name CMakeCache.txt)
@hinell
Copy link

hinell commented Nov 13, 2022

You have to differentiate betweee developer dependencies and app dependencies. App deps are the following:

luajit libluajit-5.1-dev lua-mpack lua-lpeg liblua5.3-dev libunibilium-dev libmsgpack-dev libtermkey-dev libvterm-dev

The following two you have to install manually or use cmake.deps auto-loaders

tree-sitter luv

Installing these worked for me on [K]Ubuntu 22.04.1 LTS.

@hinell
Copy link

hinell commented Nov 14, 2022

I wrote a script for building neovim, checkout: ubuntu-neovim-install.

You have to download it into a neovim repo frok and run ... deps.install; ... neovim.build

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