Aokromes

how to compile trinitycore 3.3.5a on debian 10

Feb 25th, 2021 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. #######################
  2. TRINITYCORE SETUP GUIDE
  3. #######################
  4.  
  5. #####################################################
  6. Debian based linux VERSION 11.0 OR HIGHER RECOMMENDED.
  7. #####################################################
  8.  
  9. #################################################################
  10. #################################################################
  11.  
  12. login with root user of your debian installation
  13. REMEMBER YOUR MySQL root password, you will need it on the future
  14.  
  15. #################################################################
  16. #################################################################
  17.  
  18. ######################
  19. Software requirements:
  20. ######################
  21.  
  22. apt-get update
  23. apt-get install git clang cmake make gcc g++ libmariadbclient-dev-compat libssl-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev mariadb-server p7zip default-libmysqlclient-dev
  24. update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
  25. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang 100
  26. adduser trinitycore
  27.  
  28. ###########################
  29. ###########################
  30.  
  31. login with trinitycore user
  32.  
  33. ###########################
  34. ###########################
  35.  
  36. #############################
  37. Download source and database:
  38. #############################
  39.  
  40. git clone -b 3.3.5 http://github.com/TrinityCore/TrinityCore
  41. wget https://github.com/TrinityCore/TrinityCore/releases/download/TDB335.21101/TDB_full_world_335.21101_2021_10_15.7z
  42. 7z e TDB_full_world_335.21101_2021_10_15.7z
  43. #############################
  44. installation and compilation:
  45. #############################
  46.  
  47. cd TrinityCore
  48. mkdir build
  49. cd build
  50. cmake ../ -DCMAKE_INSTALL_PREFIX=/home/trinitycore/bin/server335 -DCMAKE_BUILD_TYPE=Debug
  51. time make -j5
  52. make install
  53.  
  54. ################################################
  55. Automatic database installation pre-requirements
  56. ################################################
  57.  
  58. mysql -u root -p < sql/create/create_mysql.sql
  59. cp ../TDB_full_world_335.21101_2021_10_15.sql /home/trinitycore/bin/server335/bin
  60.  
  61. ###################################
  62. End automatic database installation
  63. ###################################
  64.  
  65. ####################
  66. Starting Trinitycore
  67. ####################
  68.  
  69. cd ~/bin/server
  70. screen -A -m -d -S trinity_world335 ./worldserver -c ../etc/worldserver.conf
  71. screen -A -m -d -S trinity_auth335 ./authserver
  72.  
  73. ########################
  74. End starting Trinitycore
  75. ########################
  76.  
  77. If this guide helped you plz donate me at mmendezserra at hotmail.com with paypal.
Add Comment
Please, Sign In to add comment