看板 mud 關於我們 聯絡資訊
※ 引述《dsnsid (大顆壽司)》之銘言: : 我爬了一些文,也google過,但找不到問題的解答。 : 因此上來請問各位,希望能幫助我解決這個問題。 : 我在github 下載了ES2的mudlib。 : https://github.com/taedlar/es2_mudlib : 然後使用他推薦的neolith作為我的LPmud drivers。 : https://github.com/taedlar/neolith : 我照著檔案內install的指引。 : 在我新安裝的ubuntu 版本22.04.3 LTS 裡面 : $ sudo apt install build-essential : $ sudo apt install libtool : $ sudo apt install gettext : $ sudo apt install bison : 到這邊都沒有問題。 : 接下來,在build的時候,一樣跟著說明操作。 : $ ./bootstrap : $ ./configure : $ make : 但沒有在他所說的資料夾內(src)找到 名為neolith的執行檔。 : 於是我試著把它建立在別的資料夾,照著他的指示。 : $ ./configure --prefix=/home/mud/local --disable-shared : $ make install : 雖然看到執行檔,但是沒有辦法執行。 : 直接key入neolith 也說沒有這個指令。 : 真的找不到解答,所以上來請益,希望可以幫幫我解決這個問題。 : 謝謝看到這裡的各位。 這是我手邊之前在 Ubuntu 20.04 (LTS) x64 架設mud的筆記 雖然我使用的是 fluffos v2017 不是 neolith 有點跑題 但總之就分享一下 或許有人用得到 ---- === How To Build Fluffos2017 on Ubuntu === Source code: https://github.com/fluffos/fluffos/releases Document: https://www.fluffos.info/build_v2017.html#gsc.tab=0 建立環境(Environment) DigitalOcean VPS: Ubuntu 20.04 (LTS) x64 $ cd / $ mkdir psmud $ cd psmud 相關工具(Installing Dependencies) $ sudo apt update $ sudo apt upgrade $ sudo apt install build-essential bison libevent-dev libmysqlclient-dev libpcre3-dev libpq-dev \ libsqlite3-dev libssl-dev libz-dev libjemalloc-dev libicu-dev $ sudo apt install cmake $ sudo apt-get install python 編譯(Building) $ sudo apt install autoconf automake $ git clone https://github.com/fluffos/fluffos.git $ cd fluffos $ git checkout v2017 (or any specfic release tag) $ cd src $ ./build.FluffOS $ make Build完的binary檔案產生於 /psmud/fluffos/src/driver 檔案佈署(Deploy) $ apt-get install unzip 把mudlib專案壓縮, 上傳至 /psmud $ cd psmud $ unzip mudlib.zip -d ./ $ mkdir fluffos-bin $ cp /psmud/fluffos/src/driver /psmud/fluffos-bin/ 上傳 fluffos 目錄中的 config-fluffos.cfg 檔到 /psmud/fluffos-bin $ /psmud/fluffos-bin/driver /psmud/fluffos-bin/config-fluffos.cfg #測試是否 可啟動, 若有任何問題, 研究一下error message 時區(Time Zone) $ timedatectl set-timezone Asia/Taipei 設置系統服務(Service) 新開一支 psmud.service 檔案,內容如下 [Unit] Description=A Primitive Story [Service] Type=simple WorkingDirectory=/usr/local/ ExecStart=/psmud/fluffos-bin/driver /psmud/fluffos-bin/config-fluffos.cfg Restart=always [Install] WantedBy=multi-user.target 上傳 psmud.service 檔到 /etc/systemd/system $ apt-get install systemd-sysv $ sudo systemctl daemon-reload $ service psmud start service啟用後就會保持背景執行, 開機啟動 如果crash, reboot, shutdown了也會自己重開 重啟mud: $ service psmud restart 關閉mud: $ service psmud stop -- 以上分享 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.248.95.103 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/mud/M.1702129169.A.8E4.html ※ 編輯: dontpkme (111.248.95.103 臺灣), 12/09/2023 21:40:54
tsetsethatha: 感謝d大 12/10 07:08
dsnsid : 感謝大大分享,我改用fluffos來架站試一下 12/11 08:55
dsnsid : 補推 12/11 10:52
※ 編輯: dontpkme (111.248.95.103 臺灣), 12/11/2023 17:33:25
dontpkme : 補上service檔案的內容 :) 12/11 17:33