LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2003, 12:23 PM   #1
msymms
LQ Newbie
 
Registered: Oct 2003
Location: Houston
Distribution: Red Hat 7.3
Posts: 11

Rep: Reputation: 0
Launching Nethack


Hi All,
I have complied Nethack 3.4.2 to work on my RH 7.3 box. Everything went fine and the make install seemed to place everything correctly, but I can't run the game. Typing 'nethack' doesn't work, even in the game dir where the executable sits.

The s bit is set in the file mask the owner is games and group is bin....what do I do?
-mark
 
Old 10-31-2003, 12:27 PM   #2
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
Try ./nethack in the directory
 
Old 10-31-2003, 12:27 PM   #3
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
how about entering in the directory where the executable resides
./nethack

Linux typically only looks in your path for executables
and the games directory isn't usually in the path
 
Old 10-31-2003, 12:33 PM   #4
msymms
LQ Newbie
 
Registered: Oct 2003
Location: Houston
Distribution: Red Hat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
That works! How can I add it to my path then?
 
Old 10-31-2003, 01:04 PM   #5
msymms
LQ Newbie
 
Registered: Oct 2003
Location: Houston
Distribution: Red Hat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
Okay the folder is in my path, but I can't launch it except in the folder where the executable resides...am I just this stupid or what am I doing wrong?
 
Old 11-03-2003, 10:59 AM   #6
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
did you put ./ in your path?

./ is only an abbreviation for your current directory
and usually isn't put into your path b/c it's a security risk
instead put the absolute path (all the directories starting from /)
so it will look something like /usr/games instead of ./
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nethack and tile's jaakkop Linux - Games 0 11-28-2004 01:18 PM
Nethack brimbleshoes General 14 11-26-2004 06:06 AM
how do I play nethack????? bigjohn Linux - Software 17 06-03-2004 01:40 AM
Nethack MOD!! tcaptain General 3 05-07-2004 02:44 AM
nethack paco486 Linux - Software 2 08-31-2003 10:48 PM


All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration