Skip to content

Install script for CentOS 7

Mercury233 edited this page Jun 29, 2021 · 22 revisions

Deprecated. Using CentOS is not recommended.. You have to compile Lua 5.3 and GCC 5 or later from source.

Building lua in C++:

cd lua-5.3.6
make clean
make linux CC="g++"
make install
ln -s /usr/local/lib/liblua.a /usr/local/lib/liblua5.3-c++.a
#!/bin/bash

export PROCESS_COUNT=$(grep -c "processor" /proc/cpuinfo)

sudo yum install epel-release yum-utils curl -y
sudo rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
curl https://download.mono-project.com/repo/centos7-stable.repo | sudo tee /etc/yum.repos.d/mono-centos7-stable.repo
curl --silent --location https://rpm.nodesource.com/setup_12.x | sudo bash -
sudo yum install -y wget nodejs git gcc gcc-c++ sqlite-devel readline-devel openssl-devel libevent-devel mono-complete redis p7zip p7zip-plugins
sudo npm install pm2 npm n -g
sudo n 12

git clone https://github.com/moecube/ygopro --branch=server --recursive
cd ygopro/
git submodule foreach git checkout master
wget -O - https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-linux.tar.gz | tar zfx -
./premake5 gmake
cd build/
make config=release -j$PROCESS_COUNT
cd ..
ln -s bin/release/ygopro ./
strip ygopro
cd ..

git clone https://github.com/moecube/windbot
cd windbot
xbuild /property:Configuration=Release /property:TargetFrameworkVersion="v4.5"
ln -s bin/Release/WindBot.exe .
ln -s ../ygopro/cards.cdb .
cd ..

git clone https://github.com/moecube/srvpro ygopro-server
cd ygopro-server
npm ci
ln -s ../ygopro .
ln -s ../windbot .
mkdir config
cp data/default_config.json config/config.json
cd ..

Clone this wiki locally