Tested with ARMv7 (06/19/2022)
-
Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Reboot your terminal, then check your install:
which rustup
which cargo
-
Install Node:
-
Check your ARM version using the following command:
cat /proc/cpuinfo
-
On the Raspberry Pi 4 it returns ARMv7
-
Download the appropriate binary here, or use use
wget
to download (for ARMv7):wget https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-armv7l.tar.xz
-
Make a directory for node to live in and unzip the package there
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xJvf node-v16.15.1-linux-armv7l.tar.xz -C /usr/local/lib/nodejs
-
-
-
Set Node ENV variables in
~/.profile
or~/.bashrc
export PATH=/usr/local/lib/nodejs/node-v16.15.1-linux-armv7l/bin:$PATH
-
Source your dotfile and then test:
node -v
-
-
Install a C compiler
sudo apt-get install gcc
-
Install tree-sitter-cli
cargo install tree-sitter-cli
-
Install Neovim:
-
Install Pre-requisites:
sudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip curl doxygen
-
Clone neovim from repo
git clone https://github.com/neovim/neovim ~/Downloads/neovim
-
There was an issue described here which supposedly fixes some issues with LuaJIT by adding
-DCOMPILE_LUA=OFF
-
Change into the cloned neovim directory and run the make command
cd ~/Downloads/neovim && make CMAKE_EXTRA_FLAGS="-DCOMPILE_LUA=OFF -DCMAKE_INSTALL_PREFIX=$HOME/neovim" CMAKE_BUILD_TYPE=RelWithDebInfo
-
Make install binary
make install
-
Add the binary location to PATH in
~/.profile
or~/.bashrc
export PATH="$HOME/neovim/bin:$PATH"
-
To uninstall, if you want:
sudo rm /usr/local/bin/nvim
sudo rm -r /usr/local/share/nvim/
-
-
Finally, install LunarVim ("Install In One Command!" ---my ass):
bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)