delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/02/07:20:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 2 Oct 2002 07:19:21 -0400
From: "Dean S. Austin" <beans AT theworld DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Nethack and Cygwin - Compils, Installs and doesn't work :)
Message-ID: <20021002111921.GB1040@FERMAT>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20021001003100 DOT 52676 DOT qmail AT web40205 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20021001003100.52676.qmail@web40205.mail.yahoo.com>
User-Agent: Mutt/1.4i

On Mon, Sep 30, 2002 at 05:31:00PM -0700, Brian Rowe wrote:
> I got past some challenges, but am a little confused
> on where to go next with Cygwin and debugging this.
> Nethack compiled, no errors.
> It installed in the /usr/games directory
> where it put nethack.exe
> I run nethack.exe and it just sits there, no error
> nothing.
> Any ideas, on what I could try or has anyone else
> tried this?

Assuming you've resolved your earlier STRNCMPI issue...

The nethack binary shouldn't be directly in your $PATH.  On a standard
installation it lives in the playground (by default
/usr/games/nethackdir).  What _should_ be at /usr/games/nethack is a
shell script that in turn runs the binary.  When I installed this a few
weeks ago, make install bailed out on an inability to find
/usr/games/lib/nethackdir/nethack (i.e., without the .exe tacked on); my
workaround (probably not the most elegant) was to make a symlink there
with the name it was looking for, comment out the rm -rf line in the
Makefile that cleans out the existing contents of the directory, and
rerun make install.  Runs fine now.

If you don't rerun make install some other critical things don't get
installed, IIRC, and nethack behaves pretty much the way you're
describing.  If you remember seeing chmod/chown errors during make
install (no such file...), and tried to remedy things by doing it 'by
hand', odds are this is your problem.

I seem to remember having to install the shell script by hand too
(problem with the sed command in the Makefile), but that might just have
been part of my blundering effort to fix things.  It may not be
necessary.

HTH.

-- 
Dean
"Everybody is stupid except for me."
   Homer J. Simpson

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019