Skip to content

Installing

Ilia Maslakov edited this page Nov 19, 2026 · 3 revisions

Installing

Packages

There are two packages: bluerig, and bluerig-lua with the Lua runtime and the editor scripts.

System Command
openSUSE Tumbleweed sudo zypper install bluerig bluerig-lua
Ubuntu 24.04, 26.04 sudo add-apt-repository ppa:bluepanels/bluerig, then sudo apt install bluerig bluerig-lua
macOS, Linux (Homebrew) brew install blue-panels/tap/bluerig
Nix nix run github:blue-panels/bluerig, or nix profile install github:blue-panels/bluerig
Fedora sudo dnf copr enable smind/bluerig, then sudo dnf install bluerig bluerig-lua
Debian 13 sudo apt install ./bluerig{,-lua}_*debian13*_amd64.deb, the files from the release
Arch Linux sudo pacman -U ./bluerig{,-lua}-1*-x86_64.pkg.tar.zst, the files from the release

Every release has .deb files for Debian 13 and Ubuntu 26.04 (amd64, arm64), .rpm for Fedora (x86_64, aarch64), .pkg.tar.zst for Arch, and a .dmg and .pkg for macOS on Apple Silicon. The recipes are in packaging/.

From source

bluerig is built with meson (0.61 or newer) and ninja.

Dependencies

Required: a C compiler, meson, ninja, pkg-config, gettext, GLib 2.58 or newer, and S-Lang or ncurses.

Optional: Lua 5.3 or newer (for the Lua scripts and the renderers of the Preview), gpm, the X11 headers, and the check library for the tests. At run time the plugins use ctags (Universal Ctags is best), aspell or hunspell, gdb and git when they are there.

System Command
Debian, Ubuntu sudo apt install build-essential meson ninja-build pkg-config gettext libglib2.0-dev libslang2-dev libgpm-dev libx11-dev liblua5.4-dev check
Fedora sudo dnf install gcc meson pkgconf-pkg-config gettext glib2-devel slang-devel gpm-devel libX11-devel lua-devel check-devel
Arch Linux sudo pacman -S base-devel meson pkgconf gettext glib2 slang gpm libx11 lua check
Alpine sudo apk add build-base meson pkgconf gettext-dev glib-dev slang-dev gpm-dev lua5.4-dev check-dev
FreeBSD sudo pkg install meson ninja pkgconf gettext glib libslang2 libX11 lua54 check
macOS (Homebrew) brew install meson pkg-config gettext glib s-lang check

Build, test and run

The build happens in a directory of its own; the source tree stays clean.

meson setup build
meson compile -C build
meson test -C build            # the unit tests, needs the check library

To run the program straight from the build directory, with the plugins it has just built rather than installed ones:

meson devenv -C build bluerig file.c

Install

meson configure build --prefix=/usr --sysconfdir=/etc
meson compile -C build         # as yourself, before installing
sudo meson install -C build

The installation directories are compiled into the program, so build as yourself before sudo meson install, or the build directory gets files owned by root. To install into your home directory without sudo, use --prefix=$HOME/.local. sudo ninja -C build uninstall removes what the last install put in place.

Build options

meson configure build lists them. The ones you are most likely to want:

Option Meaning
-Dscreen=ncurses Use ncurses instead of S-Lang
-Dlua=disabled Build without the Lua runtime
--buildtype=debug / release The usual meson build types
-Db_sanitize=address AddressSanitizer; the tests pass under it

Where bluerig keeps things

What Where
Settings (ini, keymap.ini, layouts.ini) ~/.config/bluerig/
Data: history, macros, positions in files, your syntax rules and skins ~/.local/share/bluerig/
Temporary files ~/.cache/bluerig/
System configuration /etc/bluerig/ (with --sysconfdir=/etc)

bluerig -F prints all of these directories, with the plugins it found.

Reporting problems

Open an issue with bluerig --version, your system, and the build options if you know them (bluerig --configure-options). For a crash, attach a backtrace (gdb bluerig core, then where).

Clone this wiki locally