LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Launching Nethack (https://www.linuxquestions.org/questions/linux-newbie-8/launching-nethack-110830/)

msymms 10-31-2003 11:23 AM

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

crashmeister 10-31-2003 11:27 AM

Try ./nethack in the directory

LogicG8 10-31-2003 11:27 AM

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

msymms 10-31-2003 11:33 AM

That works! How can I add it to my path then?

msymms 10-31-2003 12:04 PM

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?

LogicG8 11-03-2003 09:59 AM

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 ./


All times are GMT -5. The time now is 05:01 PM.