魔兽世界 - AzerothCore + Debian 11 + MySQL 8.0.33 编译安装
作者: reistlin
来源: http://www.reistlin.com/blog/439
更新时间: 2023.07
版权声明: 原创文章.转载请保留作者信息和原文完整.谢绝任何方式的摘要
AzerothCore 主页:https://www.azerothcore.org
AzerothCore Wiki 文档:https://www.azerothcore.org/wiki/home
Eluna Lua Engine 主页:https://github.com/azerothcore/mod-eluna
Eluna Lua Engine API 文档:https://www.azerothcore.org/pages/eluna/index.html
一,安装 MySQL 8.0.33
wget https://dev.mysql.com/get/mysql-apt-config_0.8.24-1_all.deb -O /tmp/mysql-apt-config_all.deb DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/mysql-apt-config_all.deb apt-get update
二,安装编译环境
apt-get install git clang cmake make gcc g++ libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev mysql-server p7zip
三,通过 alternatives 设置 clang 版本
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100 update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang 100
四,通过 git clone 下载 AzerothCore,同时安装 mod-ah-bot 和 mod-eluna
cd /home/reistlin mkdir AzerothCore git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch AzerothCore --depth 1 cd AzerothCore/modules git clone https://github.com/azerothcore/mod-ah-bot.git git clone https://github.com/azerothcore/mod-eluna.git
五,编译安装
cd /home/reistlin/AzerothCore mkdir build cd build cmake ../ -DCMAKE_INSTALL_PREFIX=/home/reistlin/azerothcore/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS_BUILD=all -DSCRIPTS=static -DMODULES=static make -j 8 make install