This is a guide to building (or installing) Haunt from source on Fedora 40.
Packages
Some requirements for Haunt are already packaged in Fedora.
sudo dnf install guile guile-devel autoconf automake texinfo guile-reader guile-reader-devel
Guild
Guild is installed, but its path needs to be rectified for build processes to see it. Use GUILD=$(which guild)
with ./configure
to remedy this.
Commonmark
guile-commonmark
needs to be built from source.
git clone https://github.com/OrangeShark/guile-commonmark
cd guile-commonmark
./bootstrap
GUILD=$(which guild) ./configure
make
sudo make install
Haunt
Now, we can build Haunt.
Download latest Haunt release, extract it, and open it in a terminal.
Set variables in current shell.
GUILD=$(which guild)
GUILE_LOAD_PATH=/usr/local/share/guile/site/2.0/
Set variables in future shells.
cat <<END >> "$HOME/.bashrc"
GUILD=$(which guild)
GUILE_LOAD_PATH=/usr/local/share/guile/site/2.0/
END
The above does not work. Explicitly declare variables with each command. Build.
GUILD=$(which guild) GUILE_LOAD_PATH=/usr/local/share/guile/site/2.0/ ./configure
GUILD=$(which guild) GUILE_LOAD_PATH=/usr/local/share/guile/site/2.0/ make
GUILD=$(which guild) GUILE_LOAD_PATH=/usr/local/share/guile/site/2.0/ sudo make install
Success!