Skip to content

How to install the required dependencies

Zeioth edited this page Feb 19, 2024 · 95 revisions

You can install all the dependencies with the next commands.

Arch linux

# You can use any AUR helper
paru -S mingw-w64 dotnet-runtime dotnet-sdk aspnet-runtime mono jdk-openjdk rust go nasm r pyinstaller nuitka python ruby perl lua dart flutter kotlin elixir npm nodejs typescript swift-bin make

Evil corporation Apple MacOS

brew tap dart-lang/dart flutter/flutter homebrew/cask && brew install mingw-w64 dotnet mono openjdk rust go nasm r pyinstaller python perl lua dart kotlin elixir node typescript swift make && pip install nuitka && brew install --cask dotnet-sdk flutter

Ubuntu / Evil corporation Microsoft Windows (WSL)

sudo apt update && sudo apt install mingw-w64 dotnet-sdk-7.0 mono-complete default-jdk nasm r-base rustc golang-go python ruby perl lua5.3 kotlin elixir nodejs npm make && sudo npm install -g typescript && pip install && pip install nuitka && sudo snap install dart flutter --classic && wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && ./dotnet-install.sh && rm -f ./dotnet-install.sh && wget https://swift.org/builds/swift-5.5-release/ubuntu2004/swift-5.5-RELEASE/swift-5.5-RELEASE-ubuntu20.04.tar.gz && tar -xzf swift-5.5-RELEASE-ubuntu20.04.tar.gz && sudo mv swift-5.5-RELEASE-ubuntu20.04 /opt/swift && export PATH=/opt/swift/usr/bin:"${PATH}"

Termux (Android)

pkg install -y clang binutils openjdk-17 rust golang nasm python ruby perl lua53 dart kotlin make elixir nodejs mono swift && npm install -g typescript && pip install nuitka

You will have to manually install flutter, r, and dotnet as there is currently no termux package for them.

Checking you did it well

:lua require("compiler") -- To ensure compiler.nvim is loaded
:checkhealth compiler

More info

  • If you are on a Linux distro but it is not listed here, you can still use compiler.nvim, but you will have to search for the package equivalents of your distro. An easy way to do this is to ask chatgpt or similar to convert the package names to your distro.
Clone this wiki locally