-
Notifications
You must be signed in to change notification settings - Fork 890
Quick Start Guide
Corey edited this page Jan 7, 2021
·
68 revisions
Windows 10
- Install Git for Windows, accept defaults, change default text editor if desired.
- Install Visual Studio 2019, check Desktop development with C++.
- Install MariaDB, use defaults, set a root password.
- Install Python 3, check to add to PATH.
- Open a PowerShell window and navigate to your chosen install directory.
- Type:
git clone --recursive https://github.com/topaz-next/topaz.git cp topaz/conf/default/* conf/ - Edit the new
login.conf,map.conf, andsearch_server.conffiles intopaz/conf/and changemysql_passwordto the password set during MariaDB setup. - Back in your PowerShell window, type:
cd topaz/tools py -3 -m pip install -r requirements.txt py -3 dbtool.py - Follow the on-screen instructions.
- Open the topaz root folder in VS2019.
- Build the solution in VS2019.
- Open a PowerShell window and navigate to your
topazdirectory. - Type:
git stash git pull git stash pop cd tools py -3 dbtool.py update - Build the solution in VS2019.
Linux
-
Use your package manager to install the following packages or their equivalent:
Debian/Ubuntu:
sudo apt install g++-8 cmake mariadb-server libmariadbclient-dev libluajit-5.1-dev libzmq3-dev libssl-dev python3 python3-pip git -
Type:
sudo mysql_secure_installation -
Follow the instructions for setting up the DB.
-
Type (changing 'password' to your password of choice):
sudo mysql -u root -p -e "CREATE USER 'topaz'@'localhost' IDENTIFIED BY 'password';CREATE DATABASE tpzdb;USE tpzdb;GRANT ALL PRIVILEGES ON tpzdb.* TO 'topaz'@'localhost';" git clone --recursive https://github.com/topaz-next/topaz.git cd topaz cp conf/default/* conf/ -
Edit the new
login.conf,map.conf, andsearch_server.conffiles intopaz/conf/and changemysql_loginandmysql_passwordto the login/password set during MariaDB setup. -
In the
topazdirectory, type:mkdir build cd build cmake .. make -j $(nproc) cd ../tools pip3 install -r requirements.txt python3 dbtool.py -
Select 'Reset DB' and follow the instructions to "reset" the database.
- Open the
topazdirectory in a terminal. - Type:
git stash git pull git stash pop cd build cmake .. make -j $(nproc) cd ../tools python3 dbtool.py update