Jump to content

How to compile MaNGOS on Linux ( Using GIT )


Recommended Posts

in centos 5 x32

MaNGOS/0.13.0 (* * Revision 7571 - *) for Unix (little-endian) [world-daemon]

[**************************************************] 100%

>> Loaded 977 gameobject in pools

[**************************************************] 100%

>> Loaded 0 pools in pools

Loading Game Event Data...

woltk.sh: line 11: 31414 Violación de segmento ./mangos-worldd -c /var/www/vhosts/eivitux.es/private/mangos_redeye/config_woltk/mangosd.conf

ThreadQueue created

:(

Link to comment
Share on other sites

  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

For some reason i get these errors at the end of "make install":

make[3]: *** [install-pkgdataDATA] Error 1
make[3]: Leaving directory `/mangos/mangos/objdir/sql/updates'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/mangos/mangos/objdir/sql/updates'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/mangos/mangos/objdir/sql'
make: *** [install-recursive] Error 1

I've searched around and i found nothing similar to this. So i guess it's only me who's doing something wrong :S

Link to comment
Share on other sites

Please Help me, I cant start server in UBUNTU 8.04

got error "Segmentation fault"

http://help.ubuntu.com/

root@mail:~# mc

root@mail:/opt/mangos/bin# ./mangos-worldd

ThreadQueue created

MaNGOS/0.13.0 (* * Revision 7559 - *) for Unix (little-endian) [world-daemon]

<Ctrl-C> to stop.

MM MM MM MM MMMMM MMMM MMMMM

MM MM MM MM MMM MMM MM MM MMM MMM

MMM MMM MMM MM MMM MMM MM MM MMM

MM M MM MMMM MM MMM MM MM MMM

MM M MM MMMMM MM MMMM MMM MM MM MMM

MM M MM M MMM MM MMM MMMMMMM MM MM MMM

MM MM MMM MM MM MM MMM MM MM MMM

MM MM MMMMMMM MM MM MMM MMM MM MM MMM MMM

MM MM MM MMM MM MM MMMMMM MMMM MMMMM

MM MMM http://getmangos.eu

MMMMMM

Using configuration file /opt/mangos/etc/mangosd.conf.

World Database: 127.0.0.1;3306;root;1912968;Mangos

User thread created.

Reference thread created.

1 reference-thread added.

pollPendingThreads()

1 user-thread added.

Thread starting...

Connected to MySQL database at 127.0.0.1

MySQL client library: 5.0.51a

MySQL server ver: 5.0.51a-3ubuntu5.4

AUTOCOMMIT SUCCESSFULLY SET TO 1

Character Database: 127.0.0.1;3306;root;1912968;Characters

User thread created.

pollPendingThreads()

1 user-thread added.

Thread starting...

Connected to MySQL database at 127.0.0.1

MySQL client library: 5.0.51a

MySQL server ver: 5.0.51a-3ubuntu5.4

AUTOCOMMIT SUCCESSFULLY SET TO 1

Login Database: 127.0.0.1;3306;root;1912968;Realmd

User thread created.

pollPendingThreads()

1 user-thread added.

Thread starting...

Connected to MySQL database at 127.0.0.1

MySQL client library: 5.0.51a

MySQL server ver: 5.0.51a-3ubuntu5.4

AUTOCOMMIT SUCCESSFULLY SET TO 1

Realm running as realm ID 1

Using YTDB_098_R479_rev7483

Using DataDir /opt/mangos/data/

WORLD: VMap support included. LineOfSight:0, getHeight:0

WORLD: VMap data directory is: /opt/mangos/data/vmaps

WORLD: VMap config keys are: vmap.enableLOS, vmap.enableHeight, vmap.ignoreMapIds, vmap.ignoreSpellIds

Loading MaNGOS strings...

[**************************************************] 100%

>> Loaded 756 MaNGOS strings from table mangos_string

Initialize data stores...

[**************************************************] 100%

>> Initialized 75 data stores

Using enUS DBC Locale as default. All available DBC locales: enUS

Loading Script Names...

[**************************************************] 100%

>> Loaded 679 Script Names

Loading InstanceTemplate...

[**************************************************] 100%

>> Loaded 119 Instance Template definitions

Loading SkillLineAbilityMultiMap Data...

[**************************************************] 100%

>> Loaded 9843 SkillLineAbility MultiMap Data

Cleaning up instances...

[**************************************************] 100%

>> Initialized 0 instances

Packing instances...

[>> Instance numbers remapped, next instance id is 1 100%

Loading Localization strings...

[**************************************************] 100%

>> Loaded 0 creature locale strings. DB table `locales_creature` is empty.

[**************************************************] 100%

>> Loaded 0 gameobject locale strings. DB table `locales_gameobject` is empty.

[**************************************************] 100%

>> Loaded 0 Item locale strings. DB table `locales_item` is empty.

[**************************************************] 100%

>> Loaded 0 Quest locale strings. DB table `locales_quest` is empty.

[**************************************************] 100%

>> Loaded 0 Quest locale strings. DB table `locales_npc_text` is empty.

[**************************************************] 100%

>> Loaded 0 PageText locale strings. DB table `locales_page_text` is empty.

[**************************************************] 100%

>> Loaded 0 npc_option locale strings. DB table `locales_npc_option` is empty.

[**************************************************] 100%

>> Loaded 0 points_of_interest locale strings. DB table `locales_points_of_interest` is empty.

>>> Localization strings loaded

Loading Page Texts...

[**************************************************] 100%

>> Loaded 1783 page texts

Loading Game Object Templates...

[**************************************************] 100%

>> Loaded 18500 game object templates

Loading Spell Chain Data...

[**************************************************] 100%

>> Loaded 2334 spell chain records

Loading Spell Elixir types...

[**************************************************] 100%

>> Loaded 99 spell elixir definitions

Loading Spell Learn Skills...

[**************************************************] 100%

>> Loaded 97 Spell Learn Skills from DBC

Loading Spell Learn Spells...

[**************************************************] 100%

>> Loaded 35 spell learn spells + 545 found in DBC

Loading Spell Proc Event conditions...

[**************************************************] 100%

>> Loaded 847 extra spell proc event conditions +12 custom

Loading Spell Bonus Data...

[**************************************************] 100%

>> Loaded 0 extra spell bonus data

Loading Aggro Spells Definitions...

[**************************************************] 100%

>> Loaded 97 aggro generating spells

Loading NPC Texts...

[**************************************************] 100%

>> Loaded 5245 npc texts

Loading Item Random Enchantments Table...

[**************************************************] 100%

>> Loaded 28635 Item Enchantment definitions

Loading Items...

[**************************************************] 100%

>> Loaded 31984 item prototypes

Loading Item Texts...

[**************************************************] 100%

>> Loaded 0 item pages

Loading Creature Model Based Info Data...

[**************************************************] 100%

>> Loaded 22712 creature model based info

Loading Equipment templates...

[**************************************************] 100%

>> Loaded 3773 equipment template

Loading Creature templates...

[**************************************************] 100%

>> Loaded 26532 creature definitions

Loading SpellsScriptTarget...

[**************************************************] 100%

>> Loaded 894 Spell Script Targets

Loading Creature Reputation OnKill Data...

[**************************************************] 100%

>> Loaded 1675 creature award reputation definitions

Loading Points Of Interest Data...

[**************************************************] 100%

>> Loaded 125 Points of Interest definitions

Loading Pet Create Spells...

[**************************************************] 100%

>> Loaded 742 pet create spells

Loading Creature Data...

[**************************************************] 100%

>> Loaded 128585 creatures

Loading Creature Addon Data...

[**************************************************] 100%

>> Loaded 7719 creature template addons

[**************************************************] 100%

>> Loaded 27966 creature addons

>>> Creature Addon Data loaded

Loading Creature Respawn Data...

[**************************************************] 100%

>> Loaded 0 creature respawn time.

Loading Gameobject Data...

[**************************************************] 100%

>> Loaded 75313 gameobjects

Loading Gameobject Respawn Data...

[**************************************************] 100%

>> Loaded 0 gameobject respawn time.

Loading Objects Pooling Data...

>> Table pool_template is empty:

Loading Game Event Data...

Segmentation fault

root@mail:/opt/mangos/bin#

I have same problem.

Solution: Try Update ubuntu

sudo aptitude upgrade
sudo aptitude dist-upgrade

And recompile your mangos.

(sory, mi english is too bad :D)

Link to comment
Share on other sites

  • 2 weeks later...

Hi all,

Decided to try and setup a server yesterday on debian , followed this thread for guide, all looks good and make happily runs for about 5mins then spews up the error pasted at the bottom of my post, I've also posted the commands issues on server.

COMMANDS (without output):

apt-get install build-essential binutils gcc g++ cpp automake autoconf make libmysql++-dev libtool libssl-dev subversion patch zlibc libc6 git-core

git clone git://github.com/mangos/mangos.git

svn co https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/ src/bindings/ScriptDev2

git am src/bindings/ScriptDev2/patches/MaNGOS-7356-ScriptDev2.patch

autoreconf --install --force

aclocal

autoheader

autoconf

automake --add-missing

automake src/bindings/ScriptDev2/Makefile

mkdir objdir

cd objdir/

../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos

make

-------------------

ERROR:

make[7]: Entering directory `/root/mangos/objdir/src/bindings/ScriptDev2/sql/Updates'

make[7]: *** No rule to make target `r993_mangos.sql', needed by `all-am'. Stop.

make[7]: Leaving directory `/root/mangos/objdir/src/bindings/ScriptDev2/sql/Updates'

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

make[6]: Leaving directory `/root/mangos/objdir/src/bindings/ScriptDev2/sql'

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

make[5]: Leaving directory `/root/mangos/objdir/src/bindings/ScriptDev2'

make[4]: *** [all] Error 2

make[4]: Leaving directory `/root/mangos/objdir/src/bindings/ScriptDev2'

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

make[3]: Leaving directory `/root/mangos/objdir/src/bindings'

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

make[2]: Leaving directory `/root/mangos/objdir/src'

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

make[1]: Leaving directory `/root/mangos/objdir'

make: *** [all] Error 2

Any help would be greatly appreciated.

Thanks,

Smokez.

Link to comment
Share on other sites

Hi Smokez,

I got the same Problem with my 32-Bit Ubuntu mashine. I think there is an error in the newest ScriptDev2 Revision (try to compile it with an older revision) or the Patch "MaNGOS-7356-ScriptDev2.patch" is some kind of outdated and doesn't fit in the latest MaNGOS Version.

However, when you ignore the specific ScriptDev2 installation steps and make and compile it without SD2, you won't get this error and everything works fine (except SD2 :lol: ).

Link to comment
Share on other sites

Cool, I'll try a clean install from start, happy easter :)

After installation, I setup db by following this link http://udbforums.org/index.php?topic=12331.0

Would greatly appreciate if someone could point me in direction of updated instructions for next steps, ie: transfer of maps and client setup, I've not seen anything stating where to obtain current version of ad.exe and other files.

Sorry if these are dumb questions this is all very new to me, I have no devel background only unix sysadm.

Cheers,

Smokez.

Link to comment
Share on other sites

Hi again,

Found the .exe's in contrib, although still not clear on how and which ones to use.

I'm gonna wipe all and start from scratch as I've been using various installation guides that likley conflict. I was using the UDB and scriptdev2 from svn not the one provided with mangos.

When I get it working I'll post exact steps I took.

Cheers,

Smokez.

Link to comment
Share on other sites

For some reason i get these errors at the end of "make install":

make[3]: *** [install-pkgdataDATA] Error 1
make[3]: Leaving directory `/mangos/mangos/objdir/sql/updates'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/mangos/mangos/objdir/sql/updates'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/mangos/mangos/objdir/sql'
make: *** [install-recursive] Error 1

I've searched around and i found nothing similar to this. So i guess it's only me who's doing something wrong :S

same error under Fedora 10

this error commes after command - make install

(sorry for my english)

help plz...

Solved after joining as root

commands:

su

[root Password]

make install

Link to comment
Share on other sites

  • 2 weeks later...

Hi, i did all steps on my own, and server is working only on locahost, people can't conect to my server they only can see the realm choise but can't join to world, any idea about why?

I serach on this forums and google, but not clue.

I open my ports on my router and y did the followings changes on conf:

RealmID = 1

DataDir = "."

LogsDir = ""

LoginDatabaseInfo = "127.0.0.1;3306;user;pass;realmd"

WorldDatabaseInfo = "127.0.0.1;3306;user;pass;mangos"

CharacterDatabaseInfo = "127.0.0.1;3306;user;pass;characters" (of course i got my user & pass from mysql on this lines)

MaxPingTime = 30

WorldServerPort = 8085

BindIP = "0.0.0.0"

also i try it : BindIP = "127.0.0.1" and "192.168.1.128" (my internal ip and i open my NAT ports with my internal IP)

Also i did the sames changes with realmd.conf but no way.

Also i open my ports on FW (firewall of Ubuntu) and i did the changes on Host:

127.0.0.1 np-ip.adress.here

Also i did the changes on realmd (on Mysql with my No-ip adress) and No-Ip is working.

But all these changes allways send my the same error people can't join to world (but i can on local).

Any idea?

Tyvm and sorry for my but english

Link to comment
Share on other sites

In revision 1078 can not apply the patch scriptdev2 and therefore can not compile on linux if scriptdev2 is installation / compilation of 0

Sorry English!:mellow:

-desktop:~/core/testmangos/mangos# git apply src/bindings/ScriptDev2/patches/MaNGOS-7356-ScriptDev2.patch

error: patch failed: src/mangosd/Makefile.am:33

error: src/mangosd/Makefile.am: patch does not apply

-desktop:~/core/testmangos/mangos#

Link to comment
Share on other sites

In revision 1078 can not apply the patch scriptdev2 and therefore can not compile on linux if scriptdev2 is installation / compilation of 0

Sorry English!:mellow:

Latest ScriptDev2 rev moved to 1079, but still the same problem. Guess we gotta wait. :)

Link to comment
Share on other sites

Well, this it's NOT working on CentOS 5.2 ::: this GIT is no good, WERE is the old "" svn co "" Trunks ?

This whate i get :

[david@DesktopPC mangos]$ autoreconf --install --force

Putting files in AC_CONFIG_AUX_DIR, `aux_config'.

configure.ac:217: error: possibly undefined macro: AC_TYPE_UINT64_T

If this token and others are legitimate, please use m4_pattern_allow.

See the Autoconf documentation.

autoreconf: /usr/bin/autoconf failed with exit status: 1

Anyone here whats wrong here ?

Thanks.

Yeah, Thats because Centos 5.2 is using autoconf 2.5, two ways to fix:

Comment out that macro in configure.ac

OR

Manually upgrade your autoconf and m4 (This is hard way and not necessary).

I am still having a problem with Centos 5.2 but mine is after compile with Sockets.

Once you comment that out it will compile if you have your libraries sorted out.

Link to comment
Share on other sites

FTP the two files from ftp.gnu.org

autoconf-2.61.tar.gz

m4.1.4.11.tar.gz

First make sure you got the files (autoconf and M4)

1: FTP files needed

2: rpm -e autoconf --nodeps

3: tar zxf autoconf-2.61.tar.gz

4: cd to its dir (autoconf-2.61)

5: configure / make / make install autoconf

6: tar zxf m4-1.4.11.tar.gz

7: configure / make M4

8: rpm -e m4 --nodeps (You need M4 up until this point, so can be uninstalled now)

10: make install (M4)

(IF you didnt change the location configure sets for the finall install of autoconf and M4)

You either ADD the normal /usr/local/bin dir to everybodys Path OR create symbolic links to

said files now installed (autoconf and M4) which by default goto /usr/local/bin

Centos Def Path for M4/Autoconf (rpm version) is /usr/bin

All done...

Link to comment
Share on other sites

  • 4 weeks later...

Hi there, on this step:

git apply src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.patch 

I get this error:

eax@shodan[~/Build/mango/mangos] ~$ sudo git am src/bindings/ScriptDev2/patches/
MaNGOS-2008-12-22-ScriptDev2.patch
error: cannot stat src/bindings/ScriptDev2/patches/MaNGOS-2008-12-22-ScriptDev2.
patch (No such file or directory)

I'm very very new to both git and svn so I don't really have an idea on what is wrong :S

It seems like "MaNGOS-2008-12-22" is a little old or something?

What should I use instead?

THanks in advance : )

Link to comment
Share on other sites

Hi! I have a little problem, everything works fine, before I need to patch, but

when I try to patch, it always gives me an error.

I tried code:

 git am src/bindings/ScriptDev2/patches/MaNGOS-7842-ScriptDev2.patch

I get an error:

Patch does not have a valid e-mail address.

o.O I just dont know what to do with this kind of error..

Link to comment
Share on other sites

Hi! I have a little problem, everything works fine, before I need to patch, but

when I try to patch, it always gives me an error.

I tried code:

 git am src/bindings/ScriptDev2/patches/MaNGOS-7842-ScriptDev2.patch

I get an error:

Patch does not have a valid e-mail address.

o.O I just dont know what to do with this kind of error..

what you do is ask/search at scriptdev2.com

scriptdev errors are nothing to do with mangos, this has been asked and answered many times at the scriptdev forums.

Link to comment
Share on other sites

×
×
  • 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