Wikihack
Advertisement

I tried to download MinGW, and WinRAR said that w32api-3.9.tar within the .tar.gr file under the current section is corrupt. Am I donwloading the wrong file? --71.225.64.232 14:44, 29 April 2007 (UTC)

.tar.gz is not a rar-file. WinZip (at least) knows how to open .tar.gz files. --Paxed 15:15, 29 April 2007 (UTC)
Also, you don't need to download any .tar.gz files; there's a MinGW-5.1.3.exe that you want. --Paxed 15:20, 29 April 2007 (UTC)
Oh, guess I was grabbing the wrong file. Thanks a ton. --71.225.64.232 21:36, 29 April 2007 (UTC)

How do I open Makefile.gcc so I can get NetHack on graphical mode? 69.109.231.64 22:48, 20 May 2007 (UTC)

Makefile.gcc is a plain ASCII text file, you can open it with notepad or any editor of your choice. But you have to make sure your editor uses real tabs (not spaces expanded to tab widths) as makefiles need real tabs. - Progo 05:27, 21 May 2007 (UTC)

OS X[]

This is my first time ever compiling anything more complicated than "Hello World", and I've never touched the command line outside of Windows before, so I'm sure I'm missing plenty, but the instructions didn't work for me and this is how I fixed it: I spent several hours working out that two lines of

E int FDECL(srandom, (unsigned int));

need to be commented out in system.h to get it to compile.

Also, the given permissions didn't work so I just set all to 777 and they did (...again, noob; correct me if you know better, and the given instructions didn't work on any of these counts). And don't forget to add /usr/games to your $PATH and bash profile. Currently trying to use these instructions to compile SlashEM, too.

-adamlouis[at]gmail.com

PS: Ah! http://nethack.wikia.com/wiki/Pkgsrc

Could someone update the Windows section?[]

MinGW is now at version 5.1.6; the article needs to be updated to reflect this, since the current instructions don't work for 5.1.4 (the earliest still-available version). Dr. 8-Bit 01:28, April 19, 2010 (UTC)

Never mind; it seems I merely forgot to install the make component. Dr. 8-Bit 16:34, May 6, 2010 (UTC)
A workaround to avoid "makedefs.exe has stopped working" error while compiling Nethack 3.4.3 http://kusarikake01.blog.fc2.com/blog-entry-2.html Kahczi01 17:23, May 5, 2014

Windows[]

I keep getting an error when compiling with tty graphics:

process_begin: CreateProcess(NULL, windres -oo/console.o --include-dir ../sys/winnt -i ../sys/winnt/console.rc, ...) failed
make (e=2): The system cannot find the file specified.
ming32-make: *** [o/console.o] Error 2

Does anyone know what I can do to fix the problem? -Thanks, JDGKruse 04:21, June 1, 2010 (UTC)

Advertisement