Compiling (SLASH'EM)

From NetHackWiki
Jump to navigation Jump to search

This page contains help on compiling SLASH'EM from its source code.

Linux

In order to compile SLASH'EM on Linux, you need to make these general changes when following the instructions for compiling NetHack 3.4.3.

  • Download the stuff you'll need.
sudo apt-get install libncurses5-dev bison flex checkinstall make
  • From with in the source directory. Run the setup script.
sh ./sys/unix/setup.sh
  • You'll need to further edit 4 files.
gedit ./include/config.h

comment out lines 230, 231 with "/*" at the start of the line, and with "*/" at the end.

replace line 234 with "# define COMPRESS "/bin/gzip" /* FSF gzip compression */"

replace line 235 with "# define COMPRESS_EXTENSION ".gz" /* normal gzip extension */"

gedit ./src/Makefile

Comment out line 340. This "WINTTYLIB = -ltermlib", should become this "#WINTTYLIB = -ltermlib".

uncomment line 339. This"#WINTTYLIB = -lncurses", should become this "WINTTYLIB = -lncurses".

gedit ./util/Makefile

uncomment line 108. comment out line 105

gedit ./win/tty/termcap.c

line 839, Replace the entire line with:

extern char *tparm(NCURSES_CONST char *, ...);
  • Compile and install
make ; sudo checkinstall
  • Easy uninstall with your regular package manager.
This page is a SLASH'EM related stub. Should you wish to do so, you can contribute by expanding this page.