FreeBSD - babashka/babashka GitHub Wiki
Minimal setup
Basically you just need to enable Linux binary compatibility and use statically compiled babashka version.
Enable Linux ABI and start service:
sysrc linux_enable="YES"
service linux start
Fetch statically built babashka, then unpack it:
fetch https://github.com/babashka/babashka/releases/download/v1.12.204/babashka-1.12.204-linux-amd64-static.tar.gz
tar --gz -xf babashka-1.12.204-linux-amd64-static.tar.gz
Install rlwrap (optional):
pkg install rlwrap
Finally run babashka:
rlwrap ./bb
Install script
To use the official babashka install script, you need to install bash and curl or wget.
pkg install curl bash
With that in place, the following should install the latest babaskha into /usr/local/bin:
curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install
chmod +x ./install
./install