Jump to content

How to compile MaNGOS on Linux ( Using GIT )


Recommended Posts

  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

 Originally Posted by ckegg  View Post
the first thing you need to learn is search first.
check your \\contrib folder of mangos......

ok ok .. i enter in /contrib .. but how i make the map ?

I have the same question.... how do I extract the VMAPS under linux

Link to comment
Share on other sites

  • 1 month later...

Hi.

Today I try to update the core of my beta server an I find a problem.

I have problem with Scriptdev2 patches.

git clone git://github.com/mangos/mangos.git
Initialized empty Git repository in /home/mangos/mangos/.git/
remote: Counting objects: 33377, done.
remote: Compressing objects: 100% (6610/6610), done.
remote: Total 33377 (delta 26775), reused 33303 (delta 26714)
Receiving objects: 100% (33377/33377), 27.22 MiB | 1399 KiB/s, done.
Resolving deltas: 100% (26775/26775), done.

cd mangos/

mkdir src/bindings/ScriptDev2

svn co [url]https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/[/url] src/bindings/ScriptDev2
....................
Checked out revision 1274.

ls -l src/bindings/ScriptDev2/patches/
total 12
drwxr-xr-x 3 mangos mangos 4096 2009-07-29 14:16 custom
-rw-r--r-- 1 mangos mangos 2786 2009-07-29 14:16 MaNGOS-7842-ScriptDev2.patch
-rw-r--r-- 1 mangos mangos 2901 2009-07-29 14:16 MaNGOS-8095-ScriptDev2.patch

# here is the problem #

git apply src/bindings/ScriptDev2/patches/MaNGOS-8095-ScriptDev2.patch
MaNGOS-8095-ScriptDev2.patch
mangos$ git apply src/bindings/ScriptDev2/patches/MaNGOS-8095-ScriptDev2.patch
error: patch failed: src/mangosd/Makefile.am:33
error: src/mangosd/Makefile.am: patch does not apply

I try to compile without this patch, but server don't have SD2

Any one have the same problem?

Link to comment
Share on other sites

  • 3 weeks later...

Hi people,

I have a problem, i'm use "autoreconf --install --force"

# autoreconf --install --force
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see [url]http://sources.redhat.com/automake/automake.html#Extending-aclocal[/url]
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see [url]http://sources.redhat.com/automake/automake.html#Extending-aclocal[/url]
Putting files in AC_CONFIG_AUX_DIR, `aux_config'.
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see [url]http://sources.redhat.com/automake/automake.html#Extending-aclocal[/url]
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see [url]http://sources.redhat.com/automake/automake.html#Extending-aclocal[/url]
configure.ac:35: error: possibly undefined macro: AC_MSG_ERROR
     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

I go to next step:

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

this error :(

checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
../configure: line 20154: PKG_PROG_PKG_CONFIG: command not found
checking for pthread_create in -lpthread... yes
checking for compress in -lz... yes
checking for ftime in -lcompat... no
../configure: line 20478: syntax error near unexpected token `OPENSSL,'
../configure: line 20478: `PKG_CHECK_MODULES(OPENSSL, openssl, , AC_MSG_ERROR([Missing openssl]))'

Have autoconf cache ? PLs help... :(

Link to comment
Share on other sites

configure.ac:35: error: possibly undefined macro: AC_MSG_ERROR

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

See the Autoconf documentation.

Hello

The error message always comes with "autoreconf - install - force."

deni

Please excuse for the bad english

Link to comment
Share on other sites

Hmm tryed compiling and install autoconf and M4 still get this error though

configure.ac:35: error: possibly undefined macro: AC_MSG_ERROR

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

Any ideas? :/

Link to comment
Share on other sites

Hello,

../configure --prefix=/srv/mangos --sysconfdir=/srv/mangos/etc --enable-cli --enable-ra --datadir=/srv/mangos fails with the following error:

...

Configuration of MaNGOS 0.14.0 is now complete.

=== configuring in dep/ACE_wrappers (/root/src/mangos/objdir/dep/ACE_wrappers)

...

checking for asctime... yes
checking for asctime_r... yes
checking for alarm... yes
checking for bsearch... yes
../../../dep/ACE_wrappers/configure: line 35639: syntax error near unexpected token `fi'
../../../dep/ACE_wrappers/configure: line 35639: `fi'
configure: error: ../../../dep/ACE_wrappers/configure failed for dep/ACE_wrappers

I can't find out what the problem could be. I'm using arch linux, build-tools and ace is installed properly.

mangos/dep/ACE_wrappers/configure, line 35629-35639:

if ac_fn_cxx_try_compile "$LINENO"; then :

                 if test "$ace_user_enable_reentrant_funcs" = yes; then
                   $as_echo "#define ACE_HAS_POSIX_GETPWNAM_R 1" >>confdefs.h

                 fi

else


fi

Maybe you could help me. Thanks.

Link to comment
Share on other sites

Since my last system upgrade mangos stopped working here's the error code :

checking for OPENSSL... configure: error: Missing openssl

Now you can go shouting install libssl-dev but it's installed. So I think I might have a newer undetected version. Is there any way I can change some path or make it detect it ?

Thanks, Xeross

Link to comment
Share on other sites

  • 2 weeks later...

At attempt to configure on amd64 under freebsd the following message stands out

checking build system type... Invalid configuration `?': machine `?' not recognized
configure: error: /bin/sh ../config.sub ? failed

I use such configuration:

../configure \\? CFLAGS="-march=athlon64 -m64 -O2 -msse3 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict-aliasing -fno-strength-reduce -fno-delete-null-pointer-checks" \\? CXXFLAGS="-march=athlon64 -m64 -O2 -msse3 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict-aliasing -fno-strength-reduce -fno-delete-null-pointer-checks" \\? MAKEOPTS="-j3" \\? --prefix=/usr/local/customers/webs/alter/mangos8new --sysconfdir=/usr/local/customers/webs/alter/mangos8new/etc --enable-cli --with-gnu-ld

thx

ps sorry for my english :)

Link to comment
Share on other sites

At attempt to configure on amd64 under freebsd the following message stands out

checking build system type... Invalid configuration `?': machine `?' not recognized
configure: error: /bin/sh ../config.sub ? failed

I use such configuration:

../configure \\? CFLAGS="-march=athlon64 -m64 -O2 -msse3 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict-aliasing -fno-strength-reduce -fno-delete-null-pointer-checks" \\? CXXFLAGS="-march=athlon64 -m64 -O2 -msse3 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict-aliasing -fno-strength-reduce -fno-delete-null-pointer-checks" \\? MAKEOPTS="-j3" \\? --prefix=/usr/local/customers/webs/alter/mangos8new --sysconfdir=/usr/local/customers/webs/alter/mangos8new/etc --enable-cli --with-gnu-ld

thx

ps sorry for my english :)

Need to press Enter after each line.

For example:

[b]#../configure \\ [color="Red"]Enter[/color]
? CFLAGS="-march=athlon64 -m64 -O2 -msse3 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict-aliasing -fno-strength-reduce -fno-delete-null-pointer-checks" \\ [color="#ff0000"]Enter[/color]
? CXXFLAGS="-march=athlon64 -m64 -O2 -msse3 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -frename-registers -fno-strict-aliasing -fno-strength-reduce -fno-delete-null-pointer-checks" \\ [color="#ff0000"]Enter[/color]
? MAKEOPTS="-j3" \\ [color="#ff0000"]Enter[/color]
? --prefix=/usr/local/customers/webs/alter/mangos8new --sysconfdir=/usr/local/customers/webs/alter/mangos8new/etc --enable-cli --with-gnu-ld [color="#ff0000"]Enter[/color][/b]

Link to comment
Share on other sites

  • 2 weeks later...
Since my last system upgrade mangos stopped working here's the error code :

checking for OPENSSL... configure: error: Missing openssl

Now you can go shouting install libssl-dev but it's installed. So I think I might have a newer undetected version. Is there any way I can change some path or make it detect it ?

Thanks, Xeross

Same here. Openssl is installed, but configure still gives this error. I tried downgrading autoconf too, but I could only find revision 2.61, apt-get isn't willing to install any higher revision. I'm stuck, I can't compile Mangos any more. (it's a Debian Linux btw)

Link to comment
Share on other sites

Well, I got it fixed somehow, but I'm not even sure myself what was it that helped. :) But I definitely ran apt-get update and it had some problems which I fixed using google. After that, I removed these packages: pkg-config automake autoconf then I installed all these: pkg-config automake autoconf libace-dev libssl-dev openssl and restarted the whole compiling process from autoreconf and this time it didn't give any error messages. Unfortunately I didn't keep that config.log file, so I can't show it, but maybe xeross155 still has his config.log. Anyway, thanks for trying to help. :) It builds fine for me now too.

Link to comment
Share on other sites

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

I'm also having this error when doing make install. (as root)

test -z "/home/sentri/mangos/sql/updates" || /bin/mkdir -p "/home/sentri/mangos/sql/updates"
/usr/bin/install -c -m 644 '../../../sql/updates/README' '/home/sentri/mangos/sql/updates/README'
/usr/bin/install: "../../../sql/updates/README" and "/home/sentri/mangos/sql/updates/README" are the same file

#### several lines like above ####

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

(rough translation)

EDIT: Solved, just ran ./configure and make again and it worked.

Link to comment
Share on other sites

Hi.

Today I try to update my server but I saw some problem.

user@wow:~$ git clone git://github.com/mangos/mangos.git
Initialized empty Git repository in /home/user/mangos/.git/
[color=Red]remote: error[/color]: object directory /data/git/repositories/4/cc/9d/62/mangos/mangos.git/objects does not exist; check .git/objects/info/alternates.
remote: Counting objects: 37892, done.
remote: Compressing objects: 100% (7166/7166), done.
remote: Total 37892 (delta 30774), reused 37775 (delta 30672)
Receiving objects: 100% (37892/37892), 29.75 MiB | 250 KiB/s, done.
Resolving deltas: 100% (30774/30774), done.

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