Jump to content

MaNGOS simple installer for Ubuntu/Debian


Guest Nickless_

Recommended Posts

Hi guys!

i dont know if this is needed in anyways but wanted to share it whit you guys.

i got pretty tired of typing all the command when doing a clean server install

so i created this small script in python to do a lazy mands work ;)

https://github.com/gimli/mangos_installer

I will try to keep it up-to-date but i work on alot of other stuff to,

so this is just in my spare time..

as i said a lazy script for install MaNGOS

Support:

MaNGOS:

* Cataclysm 4.3.4 (Tested and work!)

* Wotlk 3.3.5a (Tested and work!)

* TBC (Tested and work!)

* Classic (not tested)

ScriptDev2:

* Cataclysm (tested and works)

* Wotlk (Tested and work!)

* TBC (Tested and work!)

* Classic (not tested)

Custom:

* only Cataclysm (MangChat tested and works)

sure ill be happy to know about the bugs, but dont blame if anything goes wrong or u think this post is a fail, then just leave the topic.

anyways hope someone can use this script for something. :)

Enjoy!

Changelog and howto :)

I SWARE TO GOD I DONT UNDERSTEND A WORD OF WHAT U R SAYING HERE..

I UNDERSTAND U CREATED A SCRIPT USING PYHTON that will automate mangos instalation..but will u pls enlight me what should i do with the script itself? should i instal pyhton to execute him or what?how to execute that script..?

Man is like m trying to comunicate with aliens..

Yes i found out it's a shell script for phyton ..k i opened up

Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32

Type "copyright", "credits" or "license()" for more information.

>>> ================================ RESTART ================================

>>>

Welcome to my install script, yet another lazy mans work ;)

This has been tested and works whit the latest rev of MaNGOS and Ubuntu 12.04

Please dont blame me if anything goes wrong its just a help i will try to keep it updated but i still lifes irl to ;)

anyways sit back grab a beer and relaxe and let it work!

Enjoy! ;)

Syntax: Cataclysm / Wotlk / TBC / Classic / quit

Please enter your choise: tbc

Preparing MaNGOS tbc setup...

Installing necessary packages to compile and run MaNGOS? yes/no

Selection: yes

Preparing MaNGOS TBC..

Where to install TBC? syntax: /path/to/install

Select: d:/mango

Installing into: d:/mango

Install ScriptDev2?

Select: yes

Cpu info - nr. of cpu's?

Select: 4

kick back and relaxe, and enjoy!

Fecthing MaNGOS TBC...

Fetching ScriptDev2 (TBC)...

Cloning into /tmp/mangos/server/src/bindings/scripts

ScriptDev2 Succesfully downloaded!

Patching MaNGOS...

ScriptDev2 Failed to download!

Continue compile or Quit?

Select:

Link to comment
Share on other sites

Hi there!

EDIT : Seems that ace must be compiled allways, better remove the "apt-get libace*"

All goes ok, but the last part i have this errors installing TBC: (the DB's are not created)

Checking if databases already exists...

World db doesnt exists, Continuing!

Realm db doesnt exists, Continuing!

Character db doesnt exists, Continuing!

ScriptDev2 db doesnt exists, Continuing!
Traceback (most recent call last):
 File "MaNGOS.py", line 393, in <module>
   Menu()
 File "MaNGOS.py", line 383, in Menu
   MaNGOS_Install('custom','scripts','TBC')
 File "MaNGOS.py", line 162, in MaNGOS_Install
   MaNGOS_Database(host,user,password,work_dir,install_dir,'tbc')
 File "MaNGOS.py", line 299, in MaNGOS_Database
   if del_db=='yes' or del_db=='yes':
UnboundLocalError: local variable 'del_db' referenced before assignment

tnx your all this great job m8.

ye i just forgot push the last commit last night before i went to bed, my mistake ;)

Link to comment
Share on other sites

hi sin_extension.

Ill try look into build a dows installer to at some point, but right now is only for unix. sorry. (btw. Dows sucks big time! ;) )

but if you wanna try it, simply install virtual-box and setup a Ubuntu or Debian server.. :)

but for now its all about making the script work flawless and fix all current errors and make it compile all versions whit SD2 and thats my biggeste problem right now whit wotlk and zero (2.4.3), then ill start working on the windows installer..

ooh and i will rewrite the topic as you pointed out its abit weird ;)

Link to comment
Share on other sites

Something goes wrong with db's in TBC

I have observed this in db_version table (not working db):

UDB 0.12.2 (405) for MaNGOS 12111 with SD2 SQL for rev. 2712

This one in others pasts versions of the script (this working):

TBC-DB 1.0.0 for MaNGOSOne s1725 and ScriptDevOne s2628

Also you can download only 2.0.7 ACID's version because it's only applied this 2.0.7 version:

svn co [url]https://sd2-acid.svn.sourceforge.net/svnroot/sd2-acid/trunk/tbc/2.0.7/[/url]

This is error running mangosd with last script (UDB version not working):

Loading WorldTemplate...
[**************************************************] 100%
ObjectMgr::LoadWorldTemplate: bad mapid 571 for template!
>> Loaded 4 World Template definitions

Loading InstanceTemplate...
Error in instance_template table, probably sql file format was updated (there should be 7 fields in sql).

Thanks all

EDIT : if i do step by step this :

cd /opt/mangos_one/sql
mysql -u root -ppass < create_mysql.sql
mysql -u root -ppass characters < characters.sql
mysql -u root -ppass mangos < mangos.sql
mysql -u root -ppass realmd < realmd.sql
mysql -u root -ppass < /opt/mangos_one/src/bindings/scripts/sql/scriptdev2_create_database.sql
mysql -u root -ppass scriptdev2 < /opt/mangos_one/src/bindings/scripts/sql/scriptdev2_create_structure_mysql.sql
mysql -u root -ppass scriptdev2 < /opt/mangos_one/src/bindings/scripts/sql/scriptdev2_script_full.sql
cd database/
./make_full_db.sh
mysql -u root -ppass mangos < full_db.sql
mysql -u root -ppass mangos < /opt/acid/2.0.7/2.0.7_acid.sql
mysql -u root -ppass mangos < /opt/mangos_one/src/bindings/scripts/sql/mangos_scriptname_full.sql

i finally obtain in mangos db db_version table:

TBC-DB 1.0.0 for MaNGOSOne s1725 and ScriptDevOne s2628

And can run mangosd without errors. only FYI.

Thanks again

Link to comment
Share on other sites

  • 2 weeks later...

hi again.

The Script have been rewritten completely, so far Cataclysm, Wotlk, TBC is compiling and setting up a DB automaticly.

i added afew new features along whit core/predefines.py to allow to to skip the hole question part.

anyways im currently downloading need files DBC/Maps/Vmaps for all client to make sure everything is working okay,

i still need the Classic part but should be easy to make. but current state is that cata, wotlk & tbc is working (Working: compile, DB setup) i still need to test out the startup function but as said i need DBC/Maps/Vmaps for all the clients..

Nick

Link to comment
Share on other sites

Current DB setup leaves you whit.

Cataclysm:

*DB Version: UDB 0.12.2 (405) for MaNGOS 12111 with SD2 SQL for rev. 2712

*Acid Version: ACID 4.0.0 ALPHA DEVELOPMENT - Full Release for MaNGOS (4.3.4 Client)

Wrath of the lich king:

*DB Version: YTDB_0.14.6_R630_MaNGOS_R12214_SD2_R2737_ACID_R310_RuDB_R56

*Acid Version: ACID 3.1.0 'Another Wild Adventure' - Full Release for CMaNGOS (3.3.5a Client)

The Burning Crusaders:

*DB Version: TBC-DB 1.0.0 for MaNGOSOne s1725 and ScriptDevOne s2628

*Acid Version: ACID 2.0.7 'Another Wild Adventure' - Full Release for MaNGOS (2.4.3 Client)

Link to comment
Share on other sites

  • 2 months later...

Hi !,

First, the only word that i can say is : "Awesome" !

But actually, I'm meeting a problem with the compilation of Mangos. Indeed it's seems that PREFIX var in the Cmake script is not correctly used...

I looked a bit at the file but I can't figure out what's happening ? any idea ?

Here is a log of my installation:

This script builds the MaNGOS server.

Options that can be used in order to configure the process:

CMAKE_INSTALL_PREFIX: Path where the server should be installed to

PCH: Use precompiled headers

DEBUG: Debug mode

To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.

For example: cmake .. -DDEBUG=1 -DCMAKE_INSTALL_PREFIX=/opt/mangos

CMake Error at CMakeLists.txt:124 (message):

The parameter PREFIX has been removed. Please re-run CMake and use

CMAKE_INSTALL_PREFIX instead to define your installation location!

-- Configuring incomplete, errors occurred!

make: *** No targets specified and no makefile found. Stop.

make: *** No rule to make target `install'. Stop.

Error: MaNGOS Failed to compile, Please check install.log

Versions:

GNU Make version 3.75

Ubuntu 12.04.2 LTS

Ps: I don't have world of warcraft on this computer, is it required to use the simple installer ?

Thanks in advance !

EDIT:

I changed -DCMAKE_INSTALL_PREFIX into the MaNGOS.py file and it pass :)

Let's go to the next step !

EDIT2:

Short Happiness now I have problem with ACE

Configuration of ACE 5.8.3 is now complete.

[ 2%] Performing build step for 'ACE_Project'

/bin/bash: -c: ligne 0: Erreur de syntaxe près du symbole inattendu « do »

/bin/bash: -c: ligne 0: `fail= failcom='exit 1'; forf in x $MAKEEFLAGS; do case f in *=* --[!kk]*);; *k*) failcomm='fail=yes';; '

make[3]: *** [all-recursive] Error 1

make[2]: *** [dep/ACE_wrappers/ACE_Project-prefix/src/ACE_Project-stamp/ACE_Project-build] Error 2

make[1]: *** [dep/ACE_wrappers/CMakeFiles/ACE_Project.dir/all] Error 2

make: *** [all] Error 2

[ 0%] Built target genrev

[ 0%] Built target revision.h

[ 1%] Built target TBB_Project

[ 1%] Performing build step for 'ACE_Project'

/bin/bash: -c: ligne 0: Erreur de syntaxe près du symbole inattendu « do »

/bin/bash: -c: ligne 0: `fail= failcom='exit 1'; forf in x $MAKEEFLAGS; do case f in *=* --[!kk]*);; *k*) failcomm='fail=yes';; '

make[3]: *** [all-recursive] Error 1

make[2]: *** [dep/ACE_wrappers/ACE_Project-prefix/src/ACE_Project-stamp/ACE_Project-build] Error 2

make[1]: *** [dep/ACE_wrappers/CMakeFiles/ACE_Project.dir/all] Error 2

make: *** [all] Error 2

Any further clues ? I'll check after meal

Link to comment
Share on other sites

i made the cmake change, i think u might be right about u have broken packages, cuz on my end it compiles fine except for some compile errors in the scriptdev2 part.. ill check it out abit later, and see if i can fix it. - btw. im running ubuntu 12.10 but it should work for 12.04 to...

Link to comment
Share on other sites

Hi, the script make me an error, saying bad argument...

I think the error come from line 285 in MaNGOS.py:

85: os.system('cd '+self.work_dir+'/mangos-tbc;mkdir '+self.work_dir+'/mangos-tbc/objdir;cd '+self.work_dir+'/mangos-tbc/objdir;cmake .. -DCMAKE_INSTALL_PREFIX'+str(self.install_dir)+';make -j'+str(self.q_cores)+';make install')

there is a missing = after PREFIX :)

Thank you for your script, it help us a lot :)

Link to comment
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use