Skip to content

l00sed/LunarVim-RaspberryPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Installing LunarVim on Raspberry Pi 4

Tested with ARMv7 (06/19/2022)

image

  1. Install Rust:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

  2. Reboot your terminal, then check your install:

    which rustup

    which cargo

  3. 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

  4. 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

  5. Install a C compiler

    sudo apt-get install gcc

  6. Install tree-sitter-cli

    cargo install tree-sitter-cli

  7. 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/

  8. Finally, install LunarVim ("Install In One Command!" ---my ass):

    bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)

About

Step-by-step to install LunarVim on Raspberry Pi 4.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published