diff options
| author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2021-04-15 12:04:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-15 12:04:34 +0200 |
| commit | 890792004063f3754be3a1ed0e36c6787f0c9351 (patch) | |
| tree | 4cf1bdd17aff16f86cd9474c0fcc4bd78279e41b /docs/linux-core-installation.md | |
| parent | d13a60f1aac8c132e781e6de8a620f251e0ac889 (diff) | |
| download | wiki-890792004063f3754be3a1ed0e36c6787f0c9351.tar.gz wiki-890792004063f3754be3a1ed0e36c6787f0c9351.tar.bz2 wiki-890792004063f3754be3a1ed0e36c6787f0c9351.zip | |
refactor(guide): Refactor installation guide (#427)
* Update Spell_system.md
* refactor(guide): Refactor installation guide
* Update Requirements.md
* Update Requirements.md
* da
* Update windows-requirements.md
* d
* test
* test
* windows
* windows
* help
* note to self: next windows
* core and server installation
* db
* finally
* Update client-setup.md
* Update final-server-steps.md
* Update windows-core-installation.md
* Update core-installation.md
* last
* Update database-installation.md
* Update database-installation.md
* Update server-setup.md
* Rename Requirements.md to requirements.md
* Y
* f
* ad
* Update windows-core-installation.md
* d
* Update installation-guide.md
* Update linux-requirements.md
Ubuntu installation with seperate MariaDB and Oracle MySQL
* Remove account
* Update installation-guide.md
* Update installation-guide.md
* Update installation-guide.md
Co-authored-by: Nolt <nolt@users.noreply.github.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Diffstat (limited to 'docs/linux-core-installation.md')
| -rw-r--r-- | docs/linux-core-installation.md | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/docs/linux-core-installation.md b/docs/linux-core-installation.md new file mode 100644 index 0000000..0c7100b --- /dev/null +++ b/docs/linux-core-installation.md @@ -0,0 +1,98 @@ +# Linux Core Installation + +| Installation Guide | | +| :- | :- | +| This article is a part of the Installation Guide. You can read it alone or click on the previous link to easily move between the steps. | +| [<< Step 1: Requirements](requirements.md) | [Step 3: Server Setup >>](server-setup.md) | + +## Required software + +See [Requirements](requirements.md) before you continue. + +## Getting the source code + +Choose **ONE** of the following method, run one of the below `git ...` commands in your terminal. + + +1. Clone only the master branch + full history (smaller size - recommended): + + ```sh + git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch azerothcore + ``` + +1. Clone only the master branch + no previous history (smallest size): + + ```sh + git clone https://github.com/azerothcore/azerothcore-wotlk.git --branch master --single-branch azerothcore --depth 1 + ``` + + Note: If you want to get the full history back, use `git fetch --unshallow`. + +1. Clone all branches and all history: + + ```sh + git clone https://github.com/azerothcore/azerothcore-wotlk.git azerothcore + ``` + +This will create an `azerothcore-wotlk` directory containing the AC source files. + +## Compiling the source code + +### Creating the build-directory + +To avoid issues with updates and colliding source builds, we create a specific build-directory, so we avoid any possible issues due to that (if any might occur) + +```sh +cd azerothcore +mkdir build +cd build +``` + +### Configuring for compiling + +Before running the CMake command, replace `$HOME/azeroth-server/` with the path of the server installation (where you want to place the compiled binaries). + +Parameter explanation for advanced users [CMake options](CMake-options.md). + +At this point, you must be in your "build/" directory. + +**Note**: in the following command the variable `$HOME` is the path of the **current user**, so if you are logged as root, $HOME will be "/root". You can check the state of the environment variable, as follows: + +```sh +echo $HOME +``` + +**Note**: in case you use a non-default package for `clang`, you need to replace it accordingly. For example, if you installed `clang-6.0` then you have to replace `clang` with `clang-6.0` and `clang++` with `clang++-6.0` + +```sh +cmake ../ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_WARNINGS=1 -DTOOLS=0 -DSCRIPTS=1 +``` + +To know the amount of cores available. +You can use the following command + +```sh +nproc --all +``` + +Then, replacing `6` with the number of threads that you want to execute, type: + +```sh +make -j 6 +make install +``` + +<br> + +## Help + +If you are still having problems, check: + +* [How to ask for help](How-to-ask-for-help.md) + +* [Join our Discord Server](https://discord.gg/gkt4y2x), but it is not a 24/7 support channel. A staff member will answer you whenever they have time. + +| Installation Guide | | +| :- | :- | +| This article is a part of the Installation Guide. You can read it alone or click on the previous link to easily move between the steps. | +| [<< Step 1: Requirements](requirements.md) | [Step 3: Server Setup >>](server-setup.md) | |
