Build Instructions for ASCII Version on Linux - hyvanmielenpelit/GnollHack GitHub Wiki
Ubuntu 20.04
- Make sure gcc, bison, flex, and libncurses are all installed and up to date:
sudo apt-get install build-essential
sudo apt-get install flex bison
sudo apt-get install libncurses5-dev libncursesw5-dev
- Create a directory for the GnollHack repository (
mkdir [directory path of your GnollHack repository]
).
- Go to your GnollHack repository with
cd [directory path of GnollHack repository]
.
- Download the sources from GitHub using
git clone https://github.com/hyvanmielenpelit/GnollHack.git
.
- Make setup.sh readable and executable with
sudo chmod a+rx ./sys/unix/setup.sh
.
- Run
setup.sh
to create a makefile in the main GnollHack directory:
- On GnollHack public servers (with a common xlogfile):
sudo ./sys/unix/setup.sh ./sys/unix/hints/linux-gnh-debug
- Otherwise:
sudo ./sys/unix/setup.sh ./sys/unix/hints/linux-debug
- Compile GnollHack with
sudo make install -B
. This compiles GnollHack into /gnh directory (under the root directory).
- Finally,
cd /gnh
and type sudo chmod -R a+rw *
to have all necessary read and write permissions.
- You should be now able to play GnollHack by typing
./gnollhack
.