Here is how to set up a ManaServ server on a Linux/Unix system.
Be sure to get all the needed dependencies and corresponding headers1) before trying to compile.
Start with cloning ManaServ from the Git repository and compile it. We're using the cmake build system:
$ git clone git://gitorious.org/mana/manaserv.git manaserv $ cd manaserv $ cmake . $ make
N.B.: By default, Manaserv is compiled with Sqlite support, when willing to set it up with MySQL support, you'll have to replace the following command:
$ cmake .
with:
$ cmake -DWITH_MYSQL=1 .
Note: The PostGreSQL support is planned for later but cannot be compiled at the moment.
Once this step is successful, you'll have to configure the server, or use the Manaserv data given in the example/ folder
provided along with the source code.
The accountserver.exe should now start, but complain about a database problem. Proceed to the “Configuration” section below to set up your database. After you created your database you can start Manaserv by starting both the account- and the gameserver.
Git Bash Heregit://gitorious.org/mana/manaserv.git manaservinclude & lib and paste them inside the manaserv folder created in step 5.manaserv directory, go into the include folder and copy the mysql.h file into the folder mysql.accountserver.cbp with Code::Blocks and in the Build menu, select the target Windows (MySQL Support).Project > Build Options… Then click on Windows (MySQL Support).Linker settings, Under Link libraries, press Add, click Browse… and navigate to the manaserv > lib folder and select libmysql.lib, press Open, then Yes, Ok and Ok.Build.Once this is done, you may consider configuring your new server.