Skip to content
Alex Brown edited this page Mar 23, 2026 · 11 revisions

You can find an overview of how to build plptools on the project README. This page attempts to provide additional platform-specific build information.

macOS

Building for macOS can be a little awkward as Xcode ships some CLI tools, necessitating a some path manipulation to ensure the correct tools are used over Xcode's built-in versions.

  1. Bootstrap and configure the project:

    PATH="$(brew --prefix coreutils)/libexec/gnubin:$(brew --prefix m4)/bin:$PATH" ./bootstrap --skip-po
    CPPFLAGS="-I$(brew --prefix gettext)/include -I$(brew --prefix readline)/include" LDFLAGS="-L$(brew --prefix gettext)/lib -L$(brew --prefix readline)/lib" ./configure
  2. Then make:

    make

Haiku

Building on Haiku works with some caveats. There is a small bug with RegEx that makes ./configure crash (see https://github.com/plptools/plptools/issues/23), which can be worked around with --with-included-regex.

  1. Install prerequisites:

    pkgman install libtool gnupg gettext readline_devel
  2. Bootstrap and configure:

    ./bootstrap --skip-po
    ./configure --with-included-regex
  3. Then make:

    make

Issues

FreeBSD

Packages

  • m4
  • libtool
  • gnupg
  • pkgconf
  • automake
  • autoconf
  • gettext
  • gmake (otherwise man files won't build)

Build

./bootstrap --skip-po
LDFLAGS="-L/usr/local/lib/" ./configure
gmake

NetBSD

Packages

  • m4
  • libtool-2.4.7
  • gnupg-1.4.23nb23
  • pkgconf
  • autoconf
  • automake
  • gettext-0.22.5
  • coreutils (for buiilding):
    • gnulib/gnulib-tool: 'join' program is buggy. Consider installing GNU coreutils.
  • gmake (otherwise man files won't build)

Build

./bootstrap --skip-po
LDFLAGS="-L/usr/pkg/lib -Wl,--rpath=/usr/pkg/lib" ./configure
gmake

OpenBSD

Warning

plptools on OpenBSD is not yet classed as stable.

Packages

  • m4
  • libtool
  • gnupg
  • autoconf
  • automake
  • gettext-tools
  • readline
  • gmake (otherwise man files won't build)

Build

./bootstrap --skip-po
CPPFLAGS="-I/usr/local/include/ereadline/" ./configure
gmake

Notes

On a fresh build, you need to set AUTOCONF_VERSION and AUTOMAKE_VERSION environment variable.

export AUTOCONF_VERSION="2.72"
export AUTOMAKE_VERSION="1.18"

Clone this wiki locally