nethack下载地址  http://www.nethack.org/v360/download-src.html

安装参考教程 https://tieba.baidu.com/p/4183207534?red_tag=0200787513

http://www.bkjia.com/Linuxjc/1090400.html#comment

http://blog.csdn.net/hao119119/article/details/49123049

游戏操作教程  https://iakwings.github.io/test/posts/nethack-slashem/

https://tieba.baidu.com/p/1438247556?red_tag=2714749698

具体操作:1 准备工作 安装flex   yacc(用bison代替)   libncurses5-dev

sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install libncurses5-dev

2  修改配置文件  编辑include/unixconf.h文件。将这行代码:

/* #define LINUX */
修改为这样的形式:

#define LINUX

3  安装

cd /home/leon/APP/nethack/nethack-3.6.0/sys/unix
sh setup.sh hints/linux    #不知道啥意思

cd /home/leon/APP/nethack/nethack-3.6.0  #由上一个目录可以直接cd ../..
make all
su root
make install

安装完成 没有报错  发现不会进入游戏  什么情况

leon@leon-Lenovo-TianYi-100-14IBD:~$ nethack
程序 'nethack' 已包含在下列软件包中:* nethack-console* nethack-x11
请尝试:sudo apt install <选定的软件包>

根据提示安装就可以了

sudo apt instal nethack-console

把编译过程复制在这里  可能有一天会看得懂~

leon@leon-Lenovo-TianYi-100-14IBD:~/APP/nethack/nethack-3.6.0$ make all
( cd src ; make )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/nethackdir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/nethackdir\" -c ../sys/share/unixtty.c
../sys/share/unixtty.c: In function ‘linux_mapon’:
../sys/share/unixtty.c:412:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]write(1, "\033(B", 3);^
../sys/share/unixtty.c: In function ‘linux_mapoff’:
../sys/share/unixtty.c:422:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]write(1, "\033(U", 3);^
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/nethackdir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/nethackdir\" -c ../sys/unix/unixunix.c
../sys/unix/unixunix.c: In function ‘child’:
../sys/unix/unixunix.c:295:9: warning: ignoring return value of ‘setgid’, declared with attribute warn_unused_result [-Wunused-result](void) setgid(getgid());^
../sys/unix/unixunix.c:296:9: warning: ignoring return value of ‘setuid’, declared with attribute warn_unused_result [-Wunused-result](void) setuid(getuid());^
../sys/unix/unixunix.c:298:9: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result](void) chdir(getenv("HOME"));^
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/nethackdir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/nethackdir\" -c ../sys/unix/unixres.c
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/nethackdir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/nethackdir\" -c ../win/tty/getline.c
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/nethackdir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/nethackdir\" -c ../win/tty/termcap.c
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/nethackdir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/nethackdir\" -c ../win/tty/topl.c
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/nethackdir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/nethackdir\" -c ../win/tty/wintty.c
../util/makedefs -v
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/nethackdir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/nethackdir\"   -c -o version.o version.c
Loading ...
cc -rdynamic -o nethack monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o monstr.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o  ioctl.o unixmain.o unixtty.o unixunix.o unixres.o getline.o termcap.o topl.o wintty.o  version.o -lcurses
nethack is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
( cd util ; make recover )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/util'
make[2]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[2]: '../include/date.h' is up to date.
make[2]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/dir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/dir\"   -c -o recover.o recover.c
recover.c: In function ‘main’:
recover.c:119:9: warning: ignoring return value of ‘setgid’, declared with attribute warn_unused_result [-Wunused-result](void) setgid(getgid());^
recover.c:120:9: warning: ignoring return value of ‘setuid’, declared with attribute warn_unused_result [-Wunused-result](void) setuid(getuid());^
recover.c: In function ‘restore_savefile’:
recover.c:355:17: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]write(sfd, (genericptr_t) &levc, sizeof(levc));^
cc -rdynamic -o recover recover.o
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/util'
( cd doc ; make Guidebook )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/doc'
cat Guidebook.mn | ../util/makedefs --grep --input - --output - | tbl tmac.n - | nroff | col -bx > Guidebook
warning: file `<standard input>', around line 257:
  table wider than line width
warning: file `<standard input>', around line 2932:
  table wider than line width
warning: file `<standard input>', around line 3523:
  table wider than line width
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/doc'
( cd dat ; make bogusmon )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
../util/makedefs -s
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make data )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
../util/makedefs -d
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make engrave )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'engrave' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make epitaph )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'epitaph' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make oracles )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
../util/makedefs -h
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make options )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'options' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make quest.dat )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
../util/makedefs -q
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make rumors )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
../util/makedefs -r
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd util ; make dgn_comp )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/util'
yacc  -d dgn_comp.y
sed -e 's#"y.tab.c"#"dgn_yacc.c"#' -e 's#y.tab.c:#dgn_yacc.c:#' y.tab.c > dgn_yacc.c \&& rm y.tab.c
sed -e 's#"y.tab.h"#"dgn_comp.h"#' y.tab.h > ../include/dgn_comp.h \&& rm y.tab.h
make[2]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[2]: '../include/date.h' is up to date.
make[2]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/dir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/dir\"   -c -o dgn_yacc.o dgn_yacc.c
lex  dgn_comp.l
sed -e 's#"lex.yy.c"#"dgn_lex.c"#' -e 's#  *$##' lex.yy.c > dgn_lex.c \&& rm lex.yy.c
cc -c -g -O -I../include -DNOTPARMDECL -DCOMPRESS="/bin/gzip" -DCOMPRESS_EXTENSION=".gz" -DDLB -DSYSCF -DSYSCF_FILE="/home/leon/nh/install/games/lib/dir/sysconf" -DSECURE -DHACKDIR="/home/leon/nh/install/games/lib/dir" dgn_lex.c
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/dir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/dir\"   -c -o dgn_main.o dgn_main.c
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/dir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/dir\"   -c -o panic.o panic.c
cc -rdynamic -o dgn_comp dgn_yacc.o dgn_lex.o dgn_main.o ../src/alloc.o panic.o
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/util'
( cd dat ; make dungeon )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
../util/makedefs -e
../util/dgn_comp dungeon.pdf
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd util ; make lev_comp )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/util'
yacc  -d lev_comp.y
sed -e 's#"y.tab.c"#"lev_yacc.c"#' -e 's#y.tab.c:#lev_yacc.c:#' y.tab.c > lev_yacc.c \&& rm y.tab.c
sed -e 's#"y.tab.h"#"lev_comp.h"#' y.tab.h > ../include/lev_comp.h \&& rm y.tab.h
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/dir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/dir\"   -c -o lev_yacc.o lev_yacc.c
lex  lev_comp.l
sed -e 's#"lex.yy.c"#"lev_lex.c"#' -e 's#  *$##' lex.yy.c > lev_lex.c \&& rm lex.yy.c
cc -c -g -O -I../include -DNOTPARMDECL -DCOMPRESS="/bin/gzip" -DCOMPRESS_EXTENSION=".gz" -DDLB -DSYSCF -DSYSCF_FILE="/home/leon/nh/install/games/lib/dir/sysconf" -DSECURE -DHACKDIR="/home/leon/nh/install/games/lib/dir" lev_lex.c
make[2]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[2]: '../include/date.h' is up to date.
make[2]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/dir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/dir\"   -c -o lev_main.o lev_main.c
cc -rdynamic -o lev_comp lev_yacc.o lev_lex.o lev_main.o ../src/alloc.o panic.o ../src/drawing.o ../src/decl.o ../src/monst.o ../src/objects.o
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/util'
( cd dat ; make spec_levs )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
../util/lev_comp bigroom.des
../util/lev_comp castle.des
../util/lev_comp endgame.des
../util/lev_comp gehennom.des
../util/lev_comp knox.des
../util/lev_comp medusa.des
../util/lev_comp mines.des
../util/lev_comp oracle.des
../util/lev_comp sokoban.des
../util/lev_comp tower.des
../util/lev_comp yendor.des
touch spec_levs
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make quest_levs )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
../util/lev_comp Arch.des
../util/lev_comp Barb.des
../util/lev_comp Caveman.des
../util/lev_comp Healer.des
../util/lev_comp Knight.des
../util/lev_comp Monk.des
../util/lev_comp Priest.des
../util/lev_comp Ranger.des
../util/lev_comp Rogue.des
../util/lev_comp Samurai.des
../util/lev_comp Tourist.des
../util/lev_comp Valkyrie.des
../util/lev_comp Wizard.des
touch quest_levs
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'color, data file compression, data librarian, insurance files for
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0'
( cd util ; make dlb )
make[2]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/util'
make[3]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[3]: '../include/date.h' is up to date.
make[3]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
cc -g -O -I../include -DNOTPARMDECL -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DDLB -DSYSCF -DSYSCF_FILE=\"/home/leon/nh/install/games/lib/dir/sysconf\" -DSECURE -DHACKDIR=\"/home/leon/nh/install/games/lib/dir\" -c dlb_main.c
cc -rdynamic -o dlb dlb_main.o ../src/dlb.o ../src/alloc.o panic.o
make[2]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/util'
( cd dat ; ../util/dlb cf nhdat help hh cmdhelp history opthelp wizhelp dungeon tribute asmodeus.lev baalz.lev bigrm-*.lev castle.lev fakewiz?.lev juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev minetn-?.lev oracle.lev orcus.lev sanctum.lev soko?-?.lev tower?.lev valley.lev wizard?.lev astral.lev air.lev earth.lev fire.lev water.lev ???-goal.lev ???-fil?.lev ???-loca.lev ???-strt.lev bogusmon data engrave epitaph oracles options quest.dat rumors )
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0'
true;
Done.
leon@leon-Lenovo-TianYi-100-14IBD:~/APP/nethack/nethack-3.6.0$ su root
密码:
root@leon-Lenovo-TianYi-100-14IBD:/home/leon/APP/nethack/nethack-3.6.0# make install
( cd src ; make )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
nethack is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
( cd util ; make recover )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/util'
make[2]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[2]: '../include/date.h' is up to date.
make[2]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/util'
( cd dat ; make bogusmon )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'bogusmon' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make data )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'data' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make engrave )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'engrave' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make epitaph )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'epitaph' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make oracles )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'oracles' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make options )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'options' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make quest.dat )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'quest.dat' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make rumors )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'rumors' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd util ; make dgn_comp )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/util'
make[2]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[2]: '../include/date.h' is up to date.
make[2]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/util'
( cd dat ; make dungeon )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'dungeon' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd util ; make lev_comp )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/util'
make[2]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[2]: '../include/date.h' is up to date.
make[2]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/util'
( cd dat ; make spec_levs )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'spec_levs' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
( cd dat ; make quest_levs )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[1]: 'quest_levs' is up to date.
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
true;
if test -n '/root/nh/install/games'; then \mkdir -p /root/nh/install/games; fi
rm -rf /root/nh/install/games/lib/nethackdir /root/nh/install/games/lib/nethackdir
mkdir -p /root/nh/install/games/lib/nethackdir /root/nh/install/games/lib/nethackdir /root/nh/install/games/lib/nethackdir/save
if test -d ./-p; then rmdir ./-p; fi
true  /root/nh/install/games/lib/nethackdir /root/nh/install/games/lib/nethackdir /root/nh/install/games/lib/nethackdir/save
true  /root/nh/install/games/lib/nethackdir /root/nh/install/games/lib/nethackdir /root/nh/install/games/lib/nethackdir/save
chmod 0755 /root/nh/install/games/lib/nethackdir
chmod 0755 /root/nh/install/games/lib/nethackdir /root/nh/install/games/lib/nethackdir/save
( make dofiles )
make[1]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0'
target=`sed -n                    \-e '/librarian/{'             \-e    's/.*/dlb/p'             \-e    'q'                 \-e '}'                     \-e '$s/.*/nodlb/p' < dat/options` ;    \
make dofiles-${target-nodlb}
make[2]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0'
( cd src ; make )
make[3]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
nethack is up to date.
make[3]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
( cd dat ; make options )
make[3]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/dat'
make[3]: 'options' is up to date.
make[3]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/dat'color, data file compression, data librarian, insurance files for
make[3]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0'
( cd util ; make dlb )
make[4]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/util'
make[5]: Entering directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[5]: '../include/date.h' is up to date.
make[5]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/src'
make[4]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0/util'
( cd dat ; ../util/dlb cf nhdat help hh cmdhelp history opthelp wizhelp dungeon tribute asmodeus.lev baalz.lev bigrm-*.lev castle.lev fakewiz?.lev juiblex.lev knox.lev medusa-?.lev minend-?.lev minefill.lev minetn-?.lev oracle.lev orcus.lev sanctum.lev soko?-?.lev tower?.lev valley.lev wizard?.lev astral.lev air.lev earth.lev fire.lev water.lev ???-goal.lev ???-fil?.lev ???-loca.lev ???-strt.lev bogusmon data engrave epitaph oracles options quest.dat rumors )
make[3]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0'
( cd dat ; cp nhdat  license /root/nh/install/games/lib/nethackdir )
( cd /root/nh/install/games/lib/nethackdir ; true  nhdat  license ; \true  nhdat  license ; \chmod 0644 nhdat  license )
make[2]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0'
(cd dat ; cp symbols /root/nh/install/games/lib/nethackdir )
cp src/nethack /root/nh/install/games/lib/nethackdir
cp util/recover /root/nh/install/games/lib/nethackdir
if test -n '/root/nh/install/games'; then rm -f /root/nh/install/games/nethack; fi
if test -n '/root/nh/install/games'; then \sed -e 's;/usr/games/lib/nethackdir;/root/nh/install/games/lib/nethackdir;' \-e 's;HACKDIR/nethack;HACKDIR/nethack;' \< sys/unix/nethack.sh \> /root/nh/install/games/nethack ; fi
( cd /root/nh/install/games/lib/nethackdir ; true  nethack recover ; \true  nethack recover )
chmod 0755 /root/nh/install/games/lib/nethackdir/nethack
chmod 0755 /root/nh/install/games/lib/nethackdir/recover
if test -n '/root/nh/install/games'; then \true  /root/nh/install/games/nethack; fi
if test -n '/root/nh/install/games'; then \true  /root/nh/install/games/nethack; \chmod 0755 /root/nh/install/games/nethack; fi
( cd /root/nh/install/games/lib/nethackdir ; true  symbols ; \true  symbols ; \chmod 0644 symbols )
make[1]: Leaving directory '/home/leon/APP/nethack/nethack-3.6.0'
touch /root/nh/install/games/lib/nethackdir/perm /root/nh/install/games/lib/nethackdir/record /root/nh/install/games/lib/nethackdir/logfile /root/nh/install/games/lib/nethackdir/xlogfile
( cd /root/nh/install/games/lib/nethackdir ; true  perm record logfile xlogfile ; \true  perm record logfile xlogfile ; \chmod 0600 perm record logfile xlogfile )
true; cp -n sys/unix/sysconf /root/nh/install/games/lib/nethackdir/sysconf; true  /root/nh/install/games/lib/nethackdir/sysconf; true  /root/nh/install/games/lib/nethackdir/sysconf; chmod 0600 /root/nh/install/games/lib/nethackdir/sysconf;
You may also want to reinstall the man pages via the doc Makefile.

转载于:https://www.cnblogs.com/hsdchenliyang/p/8325591.html

想玩nethack 奈何不会安装相关推荐

  1. 2014年12月2日更新完英雄联盟一直显示无法连接服务器,【致想玩韩服LOL的Mac用户】macOS Sierra[10.12.4可用]下安装英雄联盟新客户端并连接到韩服服务器...

    本帖子致那些想玩韩服LOL的Mac用户 首先,之前我写过一篇帖子是针对Mac用户用旧客户端玩韩服的,不过Riot Games于2017年4月24日废弃旧客户端,在这段时间到2017年5月6日内,均可以 ...

  2. 64位计算机不能运行32位游戏,我想玩个游戏,仅支援64位系统,我家电脑win7 32位的,怎么办求解决方法...

    我想玩个游戏,仅支援64位系统,我家电脑win7 32位的,怎么办求解决方法以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧 ...

  3. android5.1.1能玩的大型游戏,单机游戏:高配手机玩游戏最值得玩的大型单机游戏推荐,第一个人人都想玩...

    原标题:单机游戏:高配手机玩游戏最值得玩的大型单机游戏推荐,第一个人人都想玩 今天给大家推荐几款高配手机大型单机游戏经典大作.就现在快来看我推荐吧,保证你很喜欢!第五款:蝙蝠侠 黑暗骑士崛起平台:安卓 ...

  4. 深度linux安装virtualbox,【玩转deepin】如何安装VirtualBox增强功能使得deepin系统全屏显示?...

    原标题:[玩转deepin]如何安装VirtualBox增强功能使得deepin系统全屏显示? 在Windows上通过Virtualbox安装deepin深度操作系统,安装完成后,为了让deepin可 ...

  5. win10想说爱你不容易——安装.net3.5也是一个坑(已有完美解决方法)

    win10想说爱你不容易--安装.net3.5也是一个坑(已有完美解决方法) 参考文章: (1)win10想说爱你不容易--安装.net3.5也是一个坑(已有完美解决方法) (2)https://ww ...

  6. 玩客云刷armbian安装php环境_【2020.1.28】玩客云刷Armbian的那些坑

    本帖最后由 三叶猫 于 2020-2-16 20:09 编辑 之前编辑帖子,Aria2和Aria-Ng目录混乱,重新编辑了一下. 开刷注意 天气太冷了,推荐用安卓JuiceSSH,应用商店可以下载,躺 ...

  7. c语言转fpga原理,要想玩转FPGA,就必须理解FPGA内部的工作原理-可编程逻辑-与非网...

    FPGA(Field-Program mable Gate Array),即现场可编程门阵列,它是在 PAL.GAL.CPLD 等可编程器件的基础上进一步发展的产物.它是作为专用集成电路(ASIC)领 ...

  8. CTFshow击剑杯osint——人家想玩嘛,人有点多超详细解法

    首先,在这里跟师傅们说一声抱歉,因为这次是自己第一次比较正式的出Osint题,可能有一些地方没有注意到,没有认真审核,给师傅们带来了麻烦,真的很抱歉!! 以下是人家想玩嘛.人有点多的详细解法及思路: ...

  9. 大数据-玩转数据-hive的安装

    大数据-玩转数据-hive的安装 一.说明: 本文以mysql安装hive为例,前提是已经部署好好JDK.hadoop.mysql.并且创建了hive元数据管理专用账户hive/Sunbo:123 1 ...

最新文章

  1. Mozilla公布WebVR API标准草案
  2. 【青少年编程】【二级】货运飞船
  3. python lambda_Python 匿名函数 lambda
  4. 暑假N天乐【比赛篇】 —— 2019杭电暑期多校训练营(第四场)
  5. java 8 stream 性能_java8中parallelStream性能测试及结果分析
  6. 使用fetch封装请求_关于如何使用Fetch API执行HTTP请求的实用ES6指南
  7. 星光 SaaS 伙伴甄云科技:如何构建更适合快成长企业的数字化采购管理平台?
  8. appSettings 配置mysql_app.config数据库配置字符串的三种取法
  9. [恩分到动归分类好了]取石子游戏
  10. 如何使用 淘宝 NPM 镜像
  11. android 设备标识
  12. svn diff和vimdiff的使用
  13. oracle的oem登录,如何启动Oracle的OEM管理工具?
  14. getBytes()详解
  15. (转)MySQL数据库InnoDB存储引擎的磁盘空间利用率分析
  16. 漂泊在汉语视界中的蒙古歌者
  17. 计算机工资管理软件是,计件工资管理软件
  18. 基于java的婚恋交友动态网站
  19. Python 之 Matplotlib xticks 的再次说明、图形样式和子图
  20. 原版XP合集,非BT下载

热门文章

  1. 何时建议使用复合索引
  2. ORACLE行转列和列转行
  3. ASP.NET实现页面跳转三种方式
  4. fashion时尚衣服
  5. (ObjectMapper)Json转化对象的基本原理
  6. 海边的曼彻斯特 bt天堂
  7. np.power()简要介绍
  8. 圣诞街头场景登场 《TOUCH》辣舞平安夜狂欢
  9. C#语言实例源码系列-伪装文件
  10. 字符串的分类统计的两种方法(C语言)