This guide explains how to build the latest version of clojure-lsp in Termux, install it to your local bin directory, and make it accessible from anywhere.
Make sure you have these installed in Termux:
pkg update
pkg install -y git openjdk-17 clojurecd ~
git clone https://github.com/clojure-lsp/clojure-lsp
cd clojure-lspcd cli
clojure -T:build prod-cliThis generates a native binary
clojure-lspand a standalone.jarfile in thecli/directory.
mkdir -p ~/.local/bin
cp clojure-lsp ~/.local/bin/Edit your ~/.bashrc (or .zshrc if using zsh):
nano ~/.bashrcAdd this line at the end:
export PATH="$HOME/.local/bin:$PATH"Save and reload your shell:
source ~/.bashrcwhich clojure-lsp
clojure-lsp --versionYou should see version output like:
clojure-lsp 2025.06.13-xx.xx.xx
clj-kondo 2025.06.05You now have the latest clojure-lsp built from source and accessible globally from Termux.