QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1491|回复: 2

[求助]本人想做一个围棋对弈的服务器,make时候出错

[复制链接]
发表于 2006-10-10 13:41:14 | 显示全部楼层 |阅读模式
围棋服务器程序是nngs
我在xp下用Cygwin


syy@daode /cygdrive/f/server/nngs-1.1.14
$ make
make  all-recursive
make[1]: Entering directory `/cygdrive/f/server/nngs-1.1.14'
Making all in nrat
make[2]: Entering directory `/cygdrive/f/server/nngs-1.1.14/nrat'
source='command.c' object='command.o' libtool=no \
        depfile='.deps/command.Po' tmpdepfile='.deps/command.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../mlrate/src    -g -O2 -Wal
l -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwri
te-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wp,-
lang-c89 -c `test -f 'command.c' || echo './'`command.c
cc1: error: unrecognized command line option "-lang-c89"
make[2]: *** [command.o] Error 1
make[2]: Leaving directory `/cygdrive/f/server/nngs-1.1.14/nrat'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/f/server/nngs-1.1.14'
make: *** [all] Error 2

syy@daode /cygdrive/f/server/nngs-1.1.14
这是nngs主程序的错误信息
还有个段位系统的



syy@daode /cygdrive/f/server/mlrate-1.1.0
$ make
make  all-recursive
make[1]: Entering directory `/cygdrive/f/server/mlrate-1.1.0'
Making all in src
make[2]: Entering directory `/cygdrive/f/server/mlrate-1.1.0/src'
source='mlr.c' object='mlr.o' libtool=no \
        depfile='.deps/mlr.Po' tmpdepfile='.deps/mlr.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'mlr.c' || echo
'./'`mlr.c
source='player.c' object='player.o' libtool=no \
        depfile='.deps/player.Po' tmpdepfile='.deps/player.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'player.c' || ec
ho './'`player.c
source='game.c' object='game.o' libtool=no \
        depfile='.deps/game.Po' tmpdepfile='.deps/game.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'game.c' || echo
'./'`game.c
source='rank.c' object='rank.o' libtool=no \
        depfile='.deps/rank.Po' tmpdepfile='.deps/rank.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'rank.c' || echo
'./'`rank.c
source='weight.c' object='weight.o' libtool=no \
        depfile='.deps/weight.Po' tmpdepfile='.deps/weight.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'weight.c' || ec
ho './'`weight.c
source='cmd.c' object='cmd.o' libtool=no \
        depfile='.deps/cmd.Po' tmpdepfile='.deps/cmd.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'cmd.c' || echo
'./'`cmd.c
source='error.c' object='error.o' libtool=no \
        depfile='.deps/error.Po' tmpdepfile='.deps/error.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'error.c' || ech
o './'`error.c
source='shash.c' object='shash.o' libtool=no \
        depfile='.deps/shash.Po' tmpdepfile='.deps/shash.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'shash.c' || ech
o './'`shash.c
source='list.c' object='list.o' libtool=no \
        depfile='.deps/list.Po' tmpdepfile='.deps/list.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'list.c' || echo
'./'`list.c
source='ilog2.c' object='ilog2.o' libtool=no \
        depfile='.deps/ilog2.Po' tmpdepfile='.deps/ilog2.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'ilog2.c' || ech
o './'`ilog2.c
source='rdbm.c' object='rdbm.o' libtool=no \
        depfile='.deps/rdbm.Po' tmpdepfile='.deps/rdbm.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'rdbm.c' || echo
'./'`rdbm.c
source='hdbm.c' object='hdbm.o' libtool=no \
        depfile='.deps/hdbm.Po' tmpdepfile='.deps/hdbm.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'hdbm.c' || echo
'./'`hdbm.c
source='result.c' object='result.o' libtool=no \
        depfile='.deps/result.Po' tmpdepfile='.deps/result.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'result.c' || ec
ho './'`result.c
source='oldresult.c' object='oldresult.o' libtool=no \
        depfile='.deps/oldresult.Po' tmpdepfile='.deps/oldresult.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'oldresult.c' ||
echo './'`oldresult.c
source='circular.c' object='circular.o' libtool=no \
        depfile='.deps/circular.Po' tmpdepfile='.deps/circular.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'circular.c' ||
echo './'`circular.c
rm -f libmlr.a
ar cru libmlr.a mlr.o player.o game.o rank.o weight.o cmd.o error.o shash.o list
.o ilog2.o rdbm.o hdbm.o result.o oldresult.o circular.o
ranlib libmlr.a
source='mlrate.c' object='mlrate.o' libtool=no \
        depfile='.deps/mlrate.Po' tmpdepfile='.deps/mlrate.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'mlrate.c' || ec
ho './'`mlrate.c
gcc  -g -O2   -o mlrate.exe  mlrate.o libmlr.a -lgdbm -lm
source='anchor.c' object='anchor.o' libtool=no \
        depfile='.deps/anchor.Po' tmpdepfile='.deps/anchor.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'anchor.c' || ec
ho './'`anchor.c
gcc  -g -O2   -o anchor.exe  anchor.o libmlr.a -lgdbm -lm
source='rdbmtool.c' object='rdbmtool.o' libtool=no \
        depfile='.deps/rdbmtool.Po' tmpdepfile='.deps/rdbmtool.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'rdbmtool.c' ||
echo './'`rdbmtool.c
gcc  -g -O2   -o rdbmtool.exe  rdbmtool.o libmlr.a -lgdbm -lm
source='rhistory.c' object='rhistory.o' libtool=no \
        depfile='.deps/rhistory.Po' tmpdepfile='.deps/rhistory.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'rhistory.c' ||
echo './'`rhistory.c
gcc  -g -O2   -o rhistory.exe  rhistory.o libmlr.a -lgdbm -lm
source='t2res.c' object='t2res.o' libtool=no \
        depfile='.deps/t2res.Po' tmpdepfile='.deps/t2res.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 't2res.c' || ech
o './'`t2res.c
gcc  -g -O2   -o t2res.exe  t2res.o libmlr.a -lgdbm -lm
source='old2newres.c' object='old2newres.o' libtool=no \
        depfile='.deps/old2newres.Po' tmpdepfile='.deps/old2newres.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'old2newres.c' |
| echo './'`old2newres.c
gcc  -g -O2   -o old2newres.exe  old2newres.o oldresult.o rank.o error.o  -lgdbm
-lm
source='itime.c' object='itime.o' libtool=no \
        depfile='.deps/itime.Po' tmpdepfile='.deps/itime.TPo' \
        depmode=gcc3 /bin/sh ../depcomp \
        gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c `test -f 'itime.c' || ech
o './'`itime.c
gcc  -g -O2   -o itime.exe  itime.o  -lgdbm -lm
make[2]: Leaving directory `/cygdrive/f/server/mlrate-1.1.0/src'
make[2]: Entering directory `/cygdrive/f/server/mlrate-1.1.0'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/cygdrive/f/server/mlrate-1.1.0'
make[1]: Leaving directory `/cygdrive/f/server/mlrate-1.1.0'

syy@daode /cygdrive/f/server/mlrate-1.1.0

我对linux不太了解,还请各位大虾帮个忙
发表于 2006-10-10 15:01:15 | 显示全部楼层
http://www.flygo.net/netgo/How_to_Install_NNGS_Server.htm
希望有用。
回复

使用道具 举报

 楼主| 发表于 2006-10-10 17:02:06 | 显示全部楼层
多谢楼上
我就是按照这个教程操作的
真郁闷
现在下虚拟机装linux
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 08:20 , Processed in 0.034690 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表