Skip to content

Instantly share code, notes, and snippets.

@kawaz
Last active March 30, 2025 11:14
Show Gist options
  • Save kawaz/393c7f62fe6e857cc3d9 to your computer and use it in GitHub Desktop.
Save kawaz/393c7f62fe6e857cc3d9 to your computer and use it in GitHub Desktop.
install neovim to amazonlinux
#!/usr/bin/env bash
sudo yum groups install -y Development\ tools
sudo yum install -y cmake
sudo yum install -y python34-{devel,pip}
sudo pip-3.4 install neovim --upgrade
(
cd "$(mktemp -d)"
git clone https://github.com/neovim/neovim.git
cd neovim
make CMAKE_BUILD_TYPE=Release
sudo make install
)
@petergi
Copy link

petergi commented Nov 7, 2018

Damn! Thank you. What a pain it's been until I found this!
Every other method I tried failed miserably!

@saylestyler
Copy link

thank uuuuuu

@nrmilstein
Copy link

Thanks

@fedrod
Copy link

fedrod commented Oct 9, 2020

Thank you for this! One small difference for me, when I got to this step
sudo pip-3.4 install neovim --upgrade

I had to do this instead:
sudo pip3.4 install neovim --upgrade
(without the dash!)

@zhangjinqiang
Copy link

thank you

@alexhallam
Copy link

Thanks

@drzaiusx11
Copy link

on AL 2023 its:
#!/usr/bin/env bash
sudo yum groups install -y Development\ tools
sudo yum install -y cmake
sudo yum install -y python3-{devel,pip}
sudo pip-3 install neovim --upgrade
(
cd "$(mktemp -d)"
git clone https://github.com/neovim/neovim.git
cd neovim
make CMAKE_BUILD_TYPE=Release
sudo make install
)

@alexhallam
Copy link

Thanks for keeping it alive @drzaiusx11

@JackMBurch
Copy link

Thank you both!

@alexhallam
Copy link

My pleasure

@proffapt
Copy link

Thanks mate! Was tired of being forced to use nano :D

@xanderdunn
Copy link

I'm on Amazon Linux 2 and had to do the following:
I had cmake 2.8, which is lower than the minimum requirement for neovim 3.16, so build it from source:

sudo yum install openssl-devel
# Find latest version of cmake at https://cmake.org/download/
wget https://github.com/Kitware/CMake/releases/download/v3.31.4/cmake-3.31.4.tar.gz
tar -xvzf cmake-3.31.4.tar.gz
cd cmake-3.31.4
# optional to keep long running process alive:
tmux new
./bootstrap
make
sudo make install

And modify PATH so that it's found:

export PATH="/usr/local/bin:$PATH"

Now build neovim:

# Updated build instructions: https://github.com/neovim/neovim/blob/master/BUILD.md#quick-start
git clone https://github.com/neovim/neovim
cd neovim
git checkout stable
make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install

@alexhallam
Copy link

Thanks for keeping this alive!

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