作者gasbomb (胖丁)
看板mud
标题Re: [心得] ubuntu 10.04架设mud的一些心得
时间Thu Nov 18 16:11:02 2010
※ 引述《curist (好问题..)》之铭言:
: 前文恕删
: 如果不是非 LP啊 Merc之类不可的话,mud codebase还满多的,
: google一下就可以找到不少。
: 最近找了一下,应该会选 NakedMud来玩吧,
: (网址:http://homepages.uc.edu/~hollisgf/nakedmud.html )
: 它是基於纯 c写的 socketmud的延伸,跟LP、merc之类的差别在於,
: socketmud跟 NakedMud很精简... 举凡属性、种族、物品等,通通没有... :D
: 它帮你写好的只有低阶的连线处理、mccp、基本档案处理、彩色字…等。
: 那为什麽要选 NakedMud呢... 原因也满简单的,
: 因为该作者把 python加上去了... 原本麻烦的中文处理也就不是问题。
: 再加上写 python很有趣、作者网站上说明文件完整;
: 原始码数量少,真的要看要改也不是不行...。
: ubuntu下要装的话,建议sudo apt-get install scons,
: 然後在 src目录下面下 scons即可。
感谢推荐 XD
不过真的是快要崩溃了
连naked mud也不给人跑阿...Python我确定有装就是了
现在唯一一个跑得起来的lima lib是没有说明文件
找到说明文件的lib都不能跑
对了,还有上面提到的coffeemud
不过coffeemud不支援中文
我已经不知道该怎麽办了...:(
gasbomb@Purin:~/nakedmudv3.8.1/src$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o socket.o -c -Wall -g -ggdb -O2 -I/usr/include/python2.6 socket.c
In file included from socket.c:25:
scripts/scripts.h:25:20: error: Python.h: No such file or directory
scripts/scripts.h:26:26: error: structmember.h: No such file or directory
In file included from socket.c:25:
scripts/scripts.h:73: error: expected declaration specifiers or '...' before
'PyObject'
scripts/scripts.h:88: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/scripts.h:89: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/scripts.h:90: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/scripts.h:91: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/scripts.h:92: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/scripts.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/scripts.h:98: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/scripts.h:99: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/scripts.h:100: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
scripts/scripts.h:101: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
scripts/scripts.h:108: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
scripts/scripts.h:112: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
scripts/scripts.h:143: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
scripts/scripts.h:144: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
scripts/scripts.h:150: error: expected ')' before '*' token
scripts/scripts.h:155: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
scripts/scripts.h:162: error: expected ')' before '*' token
scripts/scripts.h:167: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
scripts/scripts.h:184: error: expected declaration specifiers or '...' before
'PyObject'
scripts/scripts.h:189: error: expected declaration specifiers or '...' before
'PyObject'
scripts/scripts.h:195: error: expected declaration specifiers or '...' before
'PyObject'
In file included from socket.c:26:
scripts/pyplugs.h:32: error: expected ')' before '*' token
scripts/pyplugs.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
scripts/pyplugs.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
socket.c: In function 'deleteInputHandler':
socket.c:113: warning: implicit declaration of function 'Py_XDECREF'
socket.c:113: error: 'PyObject' undeclared (first use in this function)
socket.c:113: error: (Each undeclared identifier is reported only once
socket.c:113: error: for each function it appears in.)
socket.c:113: error: expected expression before ')' token
socket.c:114: error: expected expression before ')' token
socket.c: In function 'copyover_recover':
socket.c:757: warning: ignoring return value of 'fscanf', declared with
attribute warn_unused_result
socket.c: In function 'input_handler':
socket.c:871: error: 'PyObject' undeclared (first use in this function)
socket.c:871: error: 'arglist' undeclared (first use in this function)
socket.c:871: warning: implicit declaration of function 'Py_BuildValue'
socket.c:871: warning: implicit declaration of function
'socketGetPyFormBorrowed'
socket.c:873: error: 'retval' undeclared (first use in this function)
socket.c:873: warning: implicit declaration of function 'PyEval_CallObject'
socket.c: In function 'socketPushPyInputHandler':
socket.c:1137: warning: implicit declaration of function 'Py_XINCREF'
socket.c:1137: error: 'PyObject' undeclared (first use in this function)
socket.c:1137: error: expected expression before ')' token
socket.c:1138: error: expected expression before ')' token
socket.c: In function 'socketShowPrompt':
socket.c:1194: error: 'PyObject' undeclared (first use in this function)
socket.c:1194: error: 'arglist' undeclared (first use in this function)
socket.c:1195: error: 'retval' undeclared (first use in this function)
scons: *** [socket.o] Error 1
scons: building terminated because of errors.
gasbomb@Purin:~/nakedmudv3.8.1/src$
--
╔═◢ ◣═╦╦═════╦═════╗
║
◤◤◤ ◥ ╠╣
飞鸟ももこ╠═╗ ║
║ ▇ ▇ ║╚═════╝ ╚═╦═╣
║ ▌ ● ● ▌ ║╔══════╗╔═╩═╣
║
◤ ◥
︺█◤
◥╠╣
Momoko Asuka╠╝ ║
╚◣◢ ▄▂▄ ◣◢╩╩══════╩════╝
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.224.9.129
1F:推 curist:试试看sudo apt-get install python2.6-dev 11/18 16:21
2F:→ gasbomb:喔喔喔compile好了!!感谢 <(_ _)> 11/18 16:26
3F:推 wolfbear:可能是 Python 版本的问题 QQ 所以照一楼说得补完 2.6 11/19 12:19
4F:→ jazon:看到Python.h: No such file or directory应该就是没装好 11/20 07:05
6F:→ frid:有些地方要改一下..改完就好了 11/20 22:06