LPC手把手教你玩转ldmud系列之(一)编译环境配置

file

先奉上lpc的mud进化树,mudos fluffos ldmud全部是从LPMud 3.1.2进化而来,属于近亲,今天我来写个一些列教程包括如何从0开始配置编译环境,到如何移植fluffos的lib到ldmud。 闲话少说 直接上代码 ubuntu 环境下

sudo apt update
sudo apt-get install build-essential git libpcre3 libpcre3-dev openssl libssl-dev 
sqlite3 libsqlite3-dev libgcrypt-dev autoconf automake libtool libjson-c-dev libz-dev libc-dev

cygwin 环境下有点多不是都需要的 可以根据编译提示自己安装,我这个环境是带python环境的支持ldmud联合python编写mud

$ cygcheck -c -d
Cygwin Package Information
Package                    Version
autoconf                   15-1
autoconf2.1                2.13-12
autoconf2.5                2.69-5
autoconf2.7                2.71-2
automake                   11-1
automake1.10               1.10.3-3
automake1.11               1.11.6-3
automake1.12               1.12.6-3
automake1.13               1.13.4-2
automake1.14               1.14.1-3
automake1.15               1.15.1-2
automake1.16               1.16.5-1
automake1.9                1.9.6-11
binutils                   2.38-1
bison                      3.8.2-1
gcc-core                   11.3.0-1
gcc-g++                    11.3.0-1
libcrypt-devel             4.4.20-1
libgcc1                    11.3.0-1
libgcrypt-devel            1.10.1-1
libgcrypt20                1.10.1-1
libgmp-devel               6.2.1-2
libgmp10                   6.2.1-2
libgnutls-dane0            3.6.9-1
libgnutls-devel            3.6.9-1
libgnutls30                3.6.9-1
libgnutlsxx28              3.6.9-1
libguile2.2_1              2.2.7-1
libiconv                   1.17-1
libiconv-devel             1.17-1
libiconv2                  1.17-1
libmariadb-devel           3.0.9-1
libmariadb3                3.0.9-1
libpcre-devel              8.45-1
libpkgconf3                1.8.0-1
libsqlite3-devel           3.34.0-1
libsqlite3_0               3.34.0-1
libssh2_1                  1.10.0-1
libssl-devel               1.1.1q-1
libssl1.0                  1.0.2u+za-1
libssl1.1                  1.1.1q-1
libxml2                    2.9.12-2
libxml2-devel              2.9.12-2
m4                         1.4.19-1
make                       4.3-1
man-db                     2.10.2-1
mariadb-common             3.0.9-1
openssh                    9.0p1-1
openssl                    1.1.1q-1
pkg-config                 1.8.0-1
pkgconf                    1.8.0-1
python3                    3.9.10-1
python3-devel              3.9.10-1
python39                   3.9.10-1
python39-devel             3.9.10-1
python39-pip               21.3.1-3
python39-pkgconfig         1.5.5-1
python39-setuptools        59.5.0-1
zlib-devel                 1.2.12-1

装好上述程序安装包后,我们在/home目录下

git clone https://github.com/ldmud/ldmud.git
cd /home/ldmud/src/
./autogen.sh
./settings/native
make all && make install-all

根据安装提示我们就编译好了一份能用的ldmud driver了

京ICP备13031296号-4