Last active
March 30, 2025 11:14
-
-
Save kawaz/393c7f62fe6e857cc3d9 to your computer and use it in GitHub Desktop.
install neovim to amazonlinux
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 | |
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 | |
) |
Thank you both!
My pleasure
Thanks mate! Was tired of being forced to use nano :D
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
Thanks for keeping this alive!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for keeping it alive @drzaiusx11