Skip to content

Instantly share code, notes, and snippets.

Last active May 21, 2023 16:46
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Quickly compiling Heirloom Doctools

Each time I re-install a fresh Linux distribution, one of the first things I need to do is to compile the Heirloom Documentation Tools. However some adjustments have to be performed; I write them here in order to recall them later:

  • download the sources from

  • type: sudo apt-get install g++ libc-dev bison flex

  • uncompress the tarball

  • enter the heirloom-doctools directory

  • edit mk.config and change three lines:

    • replace INSTALL=/usr/ucb/install with INSTALL=/usr/bin/install
    • replace PREFIX=/usr with PREFIX=/opt/heirloom
    • replace SHELL=/sbin/sh with SHELL=/bin/sh
  • run make

  • run sudo make install

This will perform a clean install into /opt/heirloom and you have to fix your PATH accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment