Brew your own UnNetHack for OS X

UnNetHack is now included as a package in the Homebrew-Games tap in the OS X package manager Homebrew.

After installing Homebrew following these instructions and installing the Homebrew-Games tap following these instructions, you can simply compile the latest release of UnNetHack as TTY version by typing the following line into your terminal:

$ brew install unnethack

After a short period of time the compilation is finished and you can start the game:

$ unnethack

Advertisements

~ by bhaak on 21. February 2012.

11 Responses to “Brew your own UnNetHack for OS X”

  1. looks awesome. getting this error when trying to install via homebrew:

    /usr/bin/clang -DAUTOCONF -o recover recover.o
    ./lev_comp.l:9:10: fatal error: ‘lev_comp.h’ file not found
    #include “lev_comp.h”
    ^
    1 error generated.
    make[1]: *** [dgn_lex.o] Error 1
    make[1]: *** Waiting for unfinished jobs….
    make: *** [dungeon] Error 2
    make: *** Waiting for unfinished jobs….
    mv y.tab.c lev_yacc.c
    mv y.tab.h ../include/lev_comp.h
    make: *** [spec_levs] Error 2
    Error: #
    /usr/local/Library/Homebrew/formula.rb:424:in `system’
    /usr/local/Library/Formula/unnethack.rb:16:in `install’
    /usr/local/Library/Homebrew/build.rb:82:in `install’
    /usr/local/Library/Homebrew/formula.rb:192:in `brew’
    /usr/local/Library/Homebrew/formula.rb:499:in `stage’
    /usr/local/Library/Homebrew/extend/fileutils.rb:22:in `mktemp’
    /usr/local/Library/Homebrew/formula.rb:495:in `stage’
    /usr/local/Library/Homebrew/formula.rb:187:in `brew’
    /usr/local/Library/Homebrew/build.rb:61:in `install’
    /usr/local/Library/Homebrew/build.rb:30
    /usr/local/Library/Formula/unnethack.rb:12

    missing file?

  2. Got it working via terminal via make with some path and permission tweaks. Thanks guys! An evolved version of nethack is sooooo great!

  3. I think this worked at one point but not any more. I get Error: No available formula for unnethack

  4. Any chance of seeing a 5.0.0 formula?

  5. FYI, unnethack doesn’t seem to be installable via brew now.
    brew install homebrew/games/unnethack
    ==> Downloading https://netcologne.dl.sourceforge.net/project/unnethack/unnethack/5.1.0/unnethack-5.1.0-20131208.tar

    curl: (7) Failed to connect to 2001:4dd0:1234:6::5f: No route to host
    Error: Failed to download resource “unnethack”
    Download failed: https://netcologne.dl.sourceforge.net/project/unnethack/unnethack/5.1.0/unnethack-5.1.0-20131208.tar.gz

    I did enable IPv6 and tried again, still no joy. I also tried to snatch the tarfile directly via browser, and got a 404.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: