Aokromes

How to compile TrinityCore for linux n00bs.

Nov 4th, 2014
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. ###################################
  2. HOW TO COMPILE TRINITYCORE ON LINUX
  3. ###################################
  4.  
  5. #################
  6. TRINITYCORELEGACY
  7. #################
  8.  
  9. #######################
  10. TRINITYCORE SETUP GUIDE
  11. #######################
  12.  
  13. #####################################################
  14. Debian based linux VERSION 9.0 OR HIGHER RECOMMENDED.
  15. #####################################################
  16.  
  17. #############
  18. requirements:
  19. #############
  20.  
  21. As root for 3.3.5a, 4.3.4 and master:
  22. apt-get install git clang cmake make gcc g++ libmariadbclient-dev libssl1.0-dev libbz2-dev libreadline-dev libncurses-dev libboost-all-dev mysql-server p7zip
  23. update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
  24. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang 100
  25.  
  26. for 4.3.4 branch you will need also
  27. apt-get install libzmq-dev
  28.  
  29. #######
  30. source:
  31. #######
  32.  
  33. As user
  34. for 3.3.5a tc:
  35. git clone -b 3.3.5 http://github.com/TrinityCore/TrinityCore
  36. for 4.3.4 tc:
  37. git clone http://gitlab.com/TrinityCore/TrinityCore_434.git
  38. for 7.3.5 tc:
  39. git clone http://github.com/TrinityCore/TrinityCore
  40.  
  41. ###################
  42. installation 3.3.5a
  43. ###################
  44. cd TrinityCore
  45.  
  46. #########
  47. Database:
  48. #########
  49. wget https://github.com/TrinityCore/TrinityCore/releases/download/TDB335.64/TDB_full_world_335.64_2018_02_19.7z
  50. 7z e TDB_full_world_335.64_2018_02_19.7z
  51.  
  52. ########
  53. Compile:
  54. ########
  55. mkdir build
  56. cd build
  57.  
  58. cmake ../ -DCMAKE_INSTALL_PREFIX=~/bin/server335 -DCMAKE_BUILD_TYPE=Debug
  59.  
  60. time make -j5
  61. make install
  62.  
  63.  
  64. ##################
  65. installation 4.3.4
  66. ##################
  67. cd TrinityCore_434
  68.  
  69. #########
  70. Database:
  71. #########
  72. wget https://github.com/TrinityCoreLegacy/TrinityCore/releases/download/TDB_4.3.4-34/TDB_full_world_434.34_2018_09_15.rar
  73. rar x TDB_full_world_434.29_2018_04_15.rar
  74.  
  75. ########
  76. Compile:
  77. ########
  78. mkdir build
  79. cd build
  80.  
  81. cmake ../ -DCMAKE_INSTALL_PREFIX=~/bin/server434 -DCMAKE_BUILD_TYPE=Debug
  82.  
  83. time make -j5
  84. make install
  85.  
  86. ######################################
  87. Automatic database installation 3.3.5a
  88. ######################################
  89. mysql -u root -p < sql/create/create_mysql.sql
  90. cp TDB_full_world_335.64_2018_02_19.sql ~/bin/server335/bin
  91. ###################################
  92. End automatic database installation
  93. ###################################
  94.  
  95. #####################################
  96. Automatic database installation 4.3.4
  97. #####################################
  98. mysql -u root -p < sql/create/create_mysql.sql
  99. cp TDB_full_world_434.34_2018_09_15.sql ~/bin/server434/bin
  100. ###################################
  101. End automatic database installation
  102. ###################################
  103.  
  104. ###########################################################
  105. Manual database installation 3.3.5a *** NOT RECOMMENDED ***
  106. ###########################################################
  107. mysql -u root -p < sql/create/create_mysql.sql
  108. mysql -u trinity -p characters < sql/base/characters_database.sql
  109. mysql -u trinity -p auth < sql/base/auth_database.sql
  110. mysql --default-character-set=utf8 --max_allowed_packet=10000000 -u trinity -p world < TDB_full_world_335.64_2018_02_19.sql
  111. cat sql/updates/world/*.sql > all335a.sql
  112. mysql -u trinity -p world < all335a.sql
  113.  
  114. cp ~/bin/server/worldserver.conf.dist worldserver.conf
  115. cp ~/bin/server/authserver.conf.dist authserver.conf
  116. nano / vi / pico / whatever you use ~/bin/server/worldserver.conf
  117. search for
  118. Updates.EnableDatabases = 7
  119. change to
  120. Updates.EnableDatabases = 0
  121. ################################
  122. End Manual database installation
  123. ################################
  124.  
  125. ##########################################################
  126. Manual database installation 4.3.4 *** NOT RECOMMENDED ***
  127. ##########################################################
  128. mysql -u root -p < sql/create/create_mysql.sql
  129. mysql -u trinity -p characters < sql/base/characters_database.sql
  130. mysql -u trinity -p auth < sql/base/auth_database.sql
  131. mysql --default-character-set=utf8 --max_allowed_packet=10000000 -u trinity -p world < TDB_full_world_434.34_2018_09_15.sql
  132. cat sql/updates/world/*.sql > all434.sql
  133. mysql -u trinity -p world < all434.sql
  134.  
  135. cp ~/bin/server434/worldserver.conf.dist worldserver.conf
  136. cp ~/bin/server434/authserver.conf.dist authserver.conf
  137. nano / vi / pico / whatever you use ~/bin/server/worldserver.conf
  138. search for
  139. Updates.EnableDatabases = 7
  140. change to
  141. Updates.EnableDatabases = 0
  142. ################################
  143. End Manual database installation
  144. ################################
  145.  
  146. ####################
  147. Starting core 3.3.5a
  148. ####################
  149. cd ~/bin/server
  150. screen -A -m -d -S trinity_world335 ./worldserver -c ../etc/worldserver.conf
  151. screen -A -m -d -S trinity_auth335 ./authserver
  152. ########################
  153. End starting core 3.3.5a
  154. ########################
  155.  
  156. ###################
  157. Starting core 4.3.4
  158. ###################
  159. cd ~/bin/server434
  160. screen -A -m -d -S trinity_world434 ./worldserver -c ../etc/worldserver.conf
  161. screen -A -m -d -S trinity_auth434 ./authserver
  162. #######################
  163. End starting core 4.3.4
  164. #######################
  165.  
  166. If this guide helped you plz donate me at mmendezserra at hotmail.com with paypal.
Advertisement
Add Comment
Please, Sign In to add comment