Lima安裝啟動

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)

直接定位到源碼中,通過修改源碼解決。

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容