forked from skyne/NeoCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.linux
66 lines (52 loc) · 2.65 KB
/
INSTALL.linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
= Neo Core -- Linux installation instructions =
Copyright (C) Neo Core (http://www.neocore.info)
Installing Neo Core is fairly simple on a Linux machine, assuming
you have all required applications
The most important ones are:
g++
gcc
make
cmake version 2.6.x or greater
libmysql++-dev
subversion (for checking out Trinity Database)
mercurial (for checking out the core)
openssl
libssl-dev
zlib1g-dev
libtool
libmysqlclient15-dev
patch
build-essential
mysql-client
Most of these are included on common Linux distros, others you may have to install by your self.
Please check your distro's repos.
Make a directory to build in, you can call it anything you want like build or bin etc, then go into
the directory and cmake and make. E.G. you created a dir named build ad want to have your final
compiled product installed in /home/neo/server, an example sequence of commands can be :
cmake ../ -DPREFIX=/home/neo/server
make
make install
Thats just about all thats needed. You can however tweak more settings than where to install using flags built into our cmake files. Just open up CMakeLists.txt in the main folder and take a look at some of the flags like
DACE_LIBRARY=<path/to/libace.so>
DACE_INCLUDE_DIR=<path/to/ace/include/dir>
DOPENSSL_LIBRARIES=<path/to/OpenSSL/library>
DOPENSSL_INCLUDE_DIR=<path/to/OpenSSL/includes/dir>
DO_MYSQL --mysql database support (enabled or disabled by a 1 or 0, enabled by default)
DO_SCRIPTS --enable or disable neo script (enabled or disabled by a 1 or 0, enabled by default)
DO_RA --remote administration (enabled or disabled by a 1 or 0)
DO_DEBUG --enable debugging (enabled or disabled by a 1 or 0)
DO_CLI --enable command line support (enabled or disabled by a 1 or 0, enabled by default)
DE_WARN --enable enable complie warnings (enabled or disabled by a 1 or 0, disabled by default)
LARGE_CELL --enable large cells (enabled or disabled by a 1 or 0, disabled by default, enabling can cause CPU spikes)
SHORT_SLEEP --changes sleep time from 100ms to 50ms
PREFIX --prefix directory for install (see example for use)
CONF_DIR --location for your neo config files
CMAKE_C_FLAGS --advanced users only
CMAKE_CXX_FLAGS --advanced users only
Of course, replace the paths in prefix, conf_dir with the directories you wish to install
Neo Core to. The datadir is where maps, DBCs, and SQLs are stored. The sysconfdir
is where configuration files are stored.
Once NeoCore is installed you will need to
apply database updates where necessary. Furthermore, you must
configure your installation by editing the config files in the
sysconfdir.