1、解壓文件
2、拷貝本機編譯過的driver、addr_driver、portbind到bin目錄下。
3、修改lima.config配置文件:
lib目錄
bin目錄
4、運行./addr_port 端口號
5、運行./driver lima.config
報錯:
**********************************************************
* You have incorrectly compiled the MudOS driver. This *
* driver is not compatible with the LIMA mudlib. Please *
* make the following changes to 'options.h' (or *
* 'local_options' if it exists) in the driver source, *
* and recompile. *
**********************************************************
#define NO_ADD_ACTION is required for LIMA libs.
#undef OLD_ED is required for LIMA libs.
#define PACKAGE_PARSER is required for LIMA libs.
**********************************************************
按照上面說的修改mudos源碼目錄下的options.h文件。
重新編譯mudos:
gmake clean all
6、復制新生成的文件到bin下,重新運行報錯:
/secure/simul_efun/misc.c line 734: Undefined function base_name before
用ctags -R *
生成tag list,然后vi -t tag
搜索base_name,在某個文件下找到base_name函數的定義,拷貝到misc.c文件即可解決。
7、運行成功,使用telnet連接,創建新用戶報錯:
******** FATAL ERROR: Segmentation fault
MudOS driver attempting to exit gracefully.
(current object was /secure/user#4)
--- trace ---
Object: /secure/user#4, Program: <function>
in <function>() at
Object: /secure/user#4, Program: /secure/user/inputsys.c
in dispatch_modal_input() at /secure/user/inputsys.c:311
arguments were ("12345")
locals were: CLASS( 6 elements
(: login_handle_logon, 3, 0 :),
"Please enter your password: ",
1,
0,
0,
0
)
Object: /secure/user#4, Program: <function>
in <function>() at
'login_handle_logon' in '/ secure/user/login.c' ('/ secure/user#4') /secure/user/login.c:386
arguments were (3,0,"12345")
locals were: 0
--- end trace ---
crash() in master called successfully. Aborting.
已放棄 (core dumped)
直接定位到源碼中,通過修改源碼解決。