Jump to content

How to compile MaNGOS on Linux ( Using GIT )


Recommended Posts

  • 2 weeks later...
  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

For Fedora system I made before compiliing:

yum install openssl cpp gpp gcc gcc-c++ openssl-devel libgcrypt-devel zlib-devel make libtool subversion automake autoconf git mysql-devel mysql-server mysql mysql-libs

Fedora 10. Compiled without errors.

P.S. Thanks. Tutorial is very helpfull.

Hmm, no need gpp (gnome picture printing) ;)

Option -j2 can be used for one core processor too. For more cores use -jNUM_PROC_CORES+1

Works fine for newest mangos. Great!

v.

Link to comment
Share on other sites

Hi there!

Great forum at first.

And for second, sorry for my bad english.

I have a question.

I do all this steps and everything was ok. Thanks for that.

Now i have a question.

The Q is that when i start mangos-realmd i get this for a version MaNGOS/0.13.0 (* * Revision 7145 - *) for Unix (little-endian) [realm-daemon].

Now what client version i must have to extract the maps, dbc, and vmaps, to get my server up and running.

Thanks!

Link to comment
Share on other sites

on configure:

checking if generated ACE configuration is usable... no
configure: error:
The generated configuration appears to be unusable.  Please verify
that your system path and environment variables are correct.  If they
appear to be correct then please send the maintainer of this configure
script [email][email protected][/email] the *COMPRESSED* 'config.log' file
and the following information:

 ACE 'configure' Script Information
 ==================================
 RCS Id: configure.ac 82832 2008-09-25 17:38:39Z jtc


 ACE Version:        5.6.6
 C++ Compiler:       g++
 C++ Preprocessor:   g++ -E
 C++ Flags:           -W -Wall -Wpointer-arith  -g -O2 -pthread -pipe -O3
 Preprocessor Flags:   
 Linker:             /usr/bin/ld
 Linker Flags:        
 Libraries:          -lrt -ldl 
 System type information:
   Build: i686-pc-linux-gnu  Host: i686-pc-linux-gnu

In the meantime, please use the stock ACE build procedure detailed in
the file 'ACE-INSTALL.html'.

configure: error: ../../../dep/ACE_wrappers/configure failed for dep/ACE_wrappers

on make:

g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.1.2/crtbeginS.o  .libs/AtomicCount.o .libs/Condition.o .libs/ConcurrentExecutor.o .libs/CountingSemaphore.o .libs/FastMutex.o .libs/FastRecursiveMutex.o .libs/Mutex.o .libs/RecursiveMutexImpl.o .libs/RecursiveMutex.o .libs/Monitor.o .libs/PoolExecutor.o .libs/PriorityCondition.o .libs/PriorityInheritanceMutex.o .libs/PriorityMutex.o .libs/PrioritySemaphore.o .libs/Semaphore.o .libs/SynchronousExecutor.o .libs/Thread.o .libs/ThreadedExecutor.o .libs/ThreadImpl.o .libs/ThreadLocalImpl.o .libs/ThreadQueue.o .libs/Time.o .libs/ThreadOps.o  -lpthread -L/usr/lib/gcc/i486-linux-gnu/4.1.2 -L/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crtn.o  -Wl,-soname -Wl,libZThread.so.0 -o .libs/libZThread.so.0.2.3
(cd .libs && rm -f libZThread.so.0 && ln -s libZThread.so.0.2.3 libZThread.so.0)
(cd .libs && rm -f libZThread.so && ln -s libZThread.so.0.2.3 libZThread.so)
creating libZThread.la
(cd .libs && rm -f libZThread.la && ln -s ../libZThread.la libZThread.la)
make[4]: Leaving directory `/home/wow-src/mangos/objdir/dep/src/zthread'
make[4]: Entering directory `/home/wow-src/mangos/objdir/dep/src'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/wow-src/mangos/objdir/dep/src'
make[3]: Leaving directory `/home/wow-src/mangos/objdir/dep/src'
Making all in ACE_wrappers
make[3]: Entering directory `/home/wow-src/mangos/objdir/dep/ACE_wrappers'
make[3]: *** No rule to make target `all'.  Stop.
make[3]: Leaving directory `/home/wow-src/mangos/objdir/dep/ACE_wrappers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/wow-src/mangos/objdir/dep'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wow-src/mangos/objdir'
make: *** [all] Error 2

whats wrong?

Link to comment
Share on other sites

Hi there!

Great forum at first.

And for second, sorry for my bad english.

I have a question.

I do all this steps and everything was ok. Thanks for that.

Now i have a question.

The Q is that when i start mangos-realmd i get this for a version MaNGOS/0.13.0 (* * Revision 7145 - *) for Unix (little-endian) [realm-daemon].

Now what client version i must have to extract the maps, dbc, and vmaps, to get my server up and running.

Thanks!

3.0.3 and Anathema what rev and have you tried a fresh repo?

Link to comment
Share on other sites

Got this error... running an older version of mangos(should be 7032) + sd2 812 + AHBot...

It compiles fine on my ubuntu, but doesn't on my friends server...

He says that build-essentials etc. are all up to date..

Someone knows where the problem could be?

make[5]: Entering directory `/opt/mangos-src/objdir/dep/ACE_wrappers/ace'
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H   -I../../../../dep/ACE_wrappers -I.. -DACE_BUILD_DLL   -W -Wall -Wpointer-arith  -g -O2 -pthread -pipe -O3 -MT libACE_la-ACE.lo -MD -MP -MF .deps/libACE_la-ACE.Tpo -c -o libACE_la-ACE.lo `test -f 'ACE.cpp' || echo '../../../../dep/ACE_wrappers/ace/'`ACE.cpp
../libtool: line 813: X--tag=CXX: command not found
../libtool: line 846: libtool: ignoring unknown tag : command not found
../libtool: line 813: X--mode=compile: command not found
../libtool: line 979: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 980: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1123: Xg++: command not found
../libtool: line 1123: X-DHAVE_CONFIG_H: command not found
../libtool: line 1123: X-I../../../../dep/ACE_wrappers: No such file or directory
../libtool: line 1123: X-I..: command not found
../libtool: line 1123: X-DACE_BUILD_DLL: command not found
../libtool: line 1123: X-W: command not found
../libtool: line 1123: X-Wall: command not found
../libtool: line 1123: X-Wpointer-arith: command not found
../libtool: line 1123: X-g: command not found
../libtool: line 1123: X-O2: command not found
../libtool: line 1123: X-pthread: command not found
../libtool: line 1123: X-pipe: command not found
../libtool: line 1123: X-O3: command not found
../libtool: line 1123: X-MT: command not found
../libtool: line 1123: XlibACE_la-ACE.lo: command not found
../libtool: line 1123: X-MD: command not found
../libtool: line 1123: X-MP: command not found
../libtool: line 1123: X-MF: command not found
../libtool: line 1123: X.deps/libACE_la-ACE.Tpo: No such file or directory
../libtool: line 1123: X-c: command not found
../libtool: line 1174: XlibACE_la-ACE.lo: command not found
../libtool: line 1179: libtool: compile: cannot determine name of library object from `': command not found
make[5]: *** [libACE_la-ACE.lo] Error 1
make[5]: Leaving directory `/opt/mangos-src/objdir/dep/ACE_wrappers/ace'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/opt/mangos-src/objdir/dep/ACE_wrappers/ace'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/mangos-src/objdir/dep/ACE_wrappers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/mangos-src/objdir/dep'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/mangos-src/objdir'
make: *** [all] Error 2

Link to comment
Share on other sites

Regarding the libcrypt.m4 problem i mentioned above, I found an bugreport describing the problem:

https://bugs.launchpad.net/debian/+source/libmcrypt/+bug/253991

There is also explained how to overcome this error.

Regarding my other problem:

I did a clean "git clone" and followed the howto exactly. Not it works.

The source-folder I tried to compile first was a modified version which I got from a collegue. He compiled it without problems on his machine, so he gave it to me. It seems, that this first compile created some temporary files, which obviously had some sideeffects on the configure/build process on my machine.

best regards and thanks for reading,

Alex

Link to comment
Share on other sites

My system is Ubuntu 8.10 x86_64 and compiling the Mangos I have this error:

...
../../../src/realmd/../shared/Database/Field.h: In member function ‘uint64 Field::GetUInt64() const’:
../../../src/realmd/../shared/Database/Field.h:60: warning: format ‘%llu’ expects type ‘long long unsigned int*’, but argument 3 has type ‘uint64*’
mv -f .deps/AuthSocket.Tpo .deps/AuthSocket.Po
mv -f .deps/RealmList.Tpo .deps/RealmList.Po
/bin/bash ../../libtool --tag=CXX   --mode=link g++  -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -L../../dep/src/sockets -L../../dep/src/zthread -L/opt/mangos/lib -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient_r -lz  -lssl ../../dep/ACE_wrappers/ace/libACE.la   -o mangos-realmd AuthSocket.o Main.o RealmList.o ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/zthread/libZThread.la -lpthread
libtool: link: cannot find the library `' or unhandled argument `Mangos/mangos/obj/dep/src/sockets'
make[3]: ** [mangos-realmd] Erro 1
make[3]: Saindo do diretório `/media/Dados/Software/WoW Mangos/mangos/obj/src/realmd'
make[2]: ** [all-recursive] Erro 1
make[2]: Saindo do diretório `/media/Dados/Software/WoW Mangos/mangos/obj/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/media/Dados/Software/WoW Mangos/mangos/obj'
make: ** [all] Erro 2

Can anyone point me what is wrong?

Many thanks,

Sharky @ PTNet

Link to comment
Share on other sites

My system is Ubuntu 8.10 x86_64 and compiling the Mangos I have this error:

...
../../../src/realmd/../shared/Database/Field.h: In member function ‘uint64 Field::GetUInt64() const’:
../../../src/realmd/../shared/Database/Field.h:60: warning: format ‘%llu’ expects type ‘long long unsigned int*’, but argument 3 has type ‘uint64*’
mv -f .deps/AuthSocket.Tpo .deps/AuthSocket.Po
mv -f .deps/RealmList.Tpo .deps/RealmList.Po
/bin/bash ../../libtool --tag=CXX   --mode=link g++  -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -L../../dep/src/sockets -L../../dep/src/zthread -L/opt/mangos/lib -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient_r -lz  -lssl ../../dep/ACE_wrappers/ace/libACE.la   -o mangos-realmd AuthSocket.o Main.o RealmList.o ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/zthread/libZThread.la -lpthread
libtool: link: cannot find the library `' or unhandled argument `Mangos/mangos/obj/dep/src/sockets'
make[3]: ** [mangos-realmd] Erro 1
make[3]: Saindo do diretório `/media/Dados/Software/WoW Mangos/mangos/obj/src/realmd'
make[2]: ** [all-recursive] Erro 1
make[2]: Saindo do diretório `/media/Dados/Software/WoW Mangos/mangos/obj/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/media/Dados/Software/WoW Mangos/mangos/obj'
make: ** [all] Erro 2

Can anyone point me what is wrong?

Many thanks,

Sharky @ PTNet

My fault...

It seems that a directory with a space in the name give this error...

Link to comment
Share on other sites

Hi everybody,

I'm totally new here and I'm trying to setup a server.

I'm on Ubuntu Hardy x64, everything went fine and is compiled.

I've compiled ad on another machine (Intrepid x64) and used it over a copy of my current installation /Data folder.

Maps and DBC files extracted ok, but when I start the mangos-worldd, I face errors:

***

ThreadQueue created

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

...

World Database: localhost;3306;mangos;mangos;mangos

...

MySQL client library: 5.0.67

MySQL server ver: 5.0.67-0ubuntu6

...

Realm running as realm ID 1

Using UDB 0.11.0 (366) for MaNGOS 7069 with SD2 SQL for rev. 838

Using DataDir /opt/mangos/data/

...

Loading MaNGOS strings...

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

>> Loaded 611 MaNGOS strings from table mangos_string

Initialize data stores...

[***************************** ] 58%

Some required *.dbc files (30 from 70) not found or not compatible:

/opt/mangos/data/dbc/AreaTable.dbc (exist, but have 35 fields instead 36) Wrong client version DBC file?

/opt/mangos/data/dbc/Achievement.dbc

/opt/mangos/data/dbc/Achievement_Criteria.dbc

/opt/mangos/data/dbc/AreaGroup.dbc

/opt/mangos/data/dbc/BattlemasterList.dbc (exist, but have 33 fields instead 34) Wrong client version DBC file?

/opt/mangos/data/dbc/BarberShopStyle.dbc

/opt/mangos/data/dbc/CharStartOutfit.dbc (exist, but have 41 fields instead 77) Wrong client version DBC file?

***

and that continues.

What is wrong here ? Can it be caused by the use of the "FRfr" version ?

Or is my actual install out/post-dated (wow+burning crs. (2.4.3.8606)

Can someone give me a hint please ?

Cheers,

N.

Link to comment
Share on other sites

hey,

i run til now a wow 2.4.3 server but i want to upgrade them now. so i installed a new server like the tut here. now i have mangos rev 7239. but befor i upload all maps from 3.0.3 till 3.0.8 i want to ask wich maps from wich version i need. thx for help

ryje

Link to comment
Share on other sites

make[5]: Entering directory `/home/wow-src/mangos/objdir/src/shared/Database'
g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../../src/shared/Database  -I/usr/include/mysql -I../../../../dep/ACE_wrappers -I../../../dep/ACE_wrappers  -I../../../src/shared -I../../../../src/shared/Database -I../../../../src/shared/Database/../../../dep/include -I../../../../src/shared/Database/../../framework -I../../../../src/shared/Database/../../shared -I../../../../src/shared/Database/../../../dep/include/g3dlite   -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT DBCStores.o -MD -MP -MF .deps/DBCStores.Tpo -c -o DBCStores.o ../../../../src/shared/Database/DBCStores.cpp
virtual memory exhausted: Cannot allocate memory
make[5]: *** [DBCStores.o] Error 1
make[5]: Leaving directory `/home/wow-src/mangos/objdir/src/shared/Database'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/wow-src/mangos/objdir/src/shared'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/wow-src/mangos/objdir/src/shared'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/wow-src/mangos/objdir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wow-src/mangos/objdir'
make: *** [all] Error 2

whats wrong? :(

OS: Debian 4r5

MaNGOS rev: 7252

Link to comment
Share on other sites

make[5]: Entering directory `/home/wow-src/mangos/objdir/src/shared/Database'
g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../../src/shared/Database  -I/usr/include/mysql -I../../../../dep/ACE_wrappers -I../../../dep/ACE_wrappers  -I../../../src/shared -I../../../../src/shared/Database -I../../../../src/shared/Database/../../../dep/include -I../../../../src/shared/Database/../../framework -I../../../../src/shared/Database/../../shared -I../../../../src/shared/Database/../../../dep/include/g3dlite   -DENABLE_RA -DENABLE_CLI -DDO_MYSQL -g -O2 -MT DBCStores.o -MD -MP -MF .deps/DBCStores.Tpo -c -o DBCStores.o ../../../../src/shared/Database/DBCStores.cpp
virtual memory exhausted: Cannot allocate memory
make[5]: *** [DBCStores.o] Error 1
make[5]: Leaving directory `/home/wow-src/mangos/objdir/src/shared/Database'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/wow-src/mangos/objdir/src/shared'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/wow-src/mangos/objdir/src/shared'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/wow-src/mangos/objdir/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wow-src/mangos/objdir'
make: *** [all] Error 2

whats wrong? :(

OS: Debian 4r5

MaNGOS rev: 7252

virtual memory exhausted: Cannot allocate memory

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