Jump to content

How to compile MaNGOS on Linux ( Using GIT )


Recommended Posts

  • Replies 288
  • Created
  • Last Reply

Top Posters In This Topic

I exerience an error with make install:

/usr/bin/install -c -m 644 '../../../sql/updates/2008_11_18_01_mangos_creature_movement.sql' '/opt/mangos/mangos/sql/updates/2008_11_18_01_mangos_creature_movement.sql'
/usr/bin/install: `../../../sql/updates/2008_11_18_01_mangos_creature_movement.sql' and `/opt/mangos/mangos/sql/updates/2008_11_18_01_mangos_creature_movement.sql' are the same file
/usr/bin/install -c -m 644 '../../../sql/updates/2008_11_18_02_mangos_mangos_string.sql' '/opt/mangos/mangos/sql/updates/2008_11_18_02_mangos_mangos_string.sql'
/usr/bin/install: `../../../sql/updates/2008_11_18_02_mangos_mangos_string.sql' and `/opt/mangos/mangos/sql/updates/2008_11_18_02_mangos_mangos_string.sql' are the same file
/usr/bin/install -c -m 644 '../../../sql/updates/README' '/opt/mangos/mangos/sql/updates/README'
/usr/bin/install: `../../../sql/updates/README' and `/opt/mangos/mangos/sql/updates/README' are the same file
make[3]: *** [install-pkgdataDATA] Error 1
make[3]: Leaving directory `/opt/mangos/mangos/objdir/sql/updates'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/opt/mangos/mangos/objdir/sql/updates'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/mangos/mangos/objdir/sql'
make: *** [install-recursive] Error 1

Cya

Link to comment
Share on other sites

checking whether to build ACE... yes

configure: creating ./config.status

.infig.status: error: cannot find input file:

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

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

i have this error when i compile with ubuntu 8.10 64bit .. i've read prev posts but i didn't understand how i can solve it. Could someone explain me?

Link to comment
Share on other sites

checking whether to build ACE... yes

configure: creating ./config.status

.infig.status: error: cannot find input file:

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

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

i have this error when i compile with ubuntu 8.10 64bit .. i've read prev posts but i didn't understand how i can solve it. Could someone explain me?

no one can help me?

Link to comment
Share on other sites

no one can help me?

i resolved it:

from google

The fact that you see this ".in" at the beginning of the line

(overwriting the beginning of "config.status") implies that there was a

stray \\r in a value somewhere, and that this is a line-ending issue.

This might happen if you were using DOS-delimited files on a binary-mode

mount. If you used a native windows SVN client then that would probably

be why. Either use Cygwin's SVN or set your mount modes to properly

reflect the line endings of the files.

but now i've this error:

config.status: creating dep/src/Makefile

config.status: error: cannot find input file: dep/src/g3dlite/Makefile.in

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

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

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Thanks mimi133 for this tutorial.

Do you have the address of your french tutorial you mentionned on the first post, I could use that one :)

A few things for Ubuntu users (I'm on Intrepid x64) if you compile from a fresh install.

cogito does not exist. But apt-get will tell you what package to install instead. So install those packages.

No need then to do update-alternatives because you will have only one git (from a fresh install).

libmysql++-dev is not called like that. It's something like libmysql++-dev3.0

You'll find it easily with synaptic.

You'll also want to install through synaptic the libtool utility as it's not on the core install.

Enjoy !

Link to comment
Share on other sites

  • 2 weeks later...

pls i cannot compile mangos using GIT

mangos@illidan ~/sourcegit $ cd objdir/
mangos@illidan ~/sourcegit/objdir $ ../configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: error: source directory already configured; run "make distclean" there first
mangos@illidan ~/sourcegit/objdir $ make
mangos@illidan ~/sourcegit/objdir $ cd ../
mangos@illidan ~/sourcegit/ $ make
make: *** No targets specified and no makefile found.  Stop.
Making all in ACE_wrappers
make[3]: Entering directory `/home/mangos/sourcegit/dep/ACE_wrappers'
make[3]: *** No rule to make target `all'.  Stop.
make[3]: Leaving directory `/home/mangos/sourcegit/dep/ACE_wrappers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mangos/sourcegit/dep'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mangos/sourcegit'
make: *** [all] Error 2

Link to comment
Share on other sites

Works for BSD too

pls tell me advance how i compile new rev using GIT

this not work >

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
make install
make clean
cd ..
rm -r objdir 

my history

 507  autoreconf --install --force
 508  aclocal
 509  autoheader
 510  autoconf
 511  automake --add-missing
 512  automake src/bindings/ScriptDev2/Makefile
 513  cd objdir
 514  vim ~/.bashrc
 515  ../configure --prefix=/home/mangos/mangos_new/ --sysconfdir=/home/mangos/mangos_new/etc --with-python --enable-cli --enable-ra --datadir=/home/mangos/mangos_new/ --enable-maintainer-mode=yes
 516  make

OUTPUT >

mangos@illidan ~/sourcegit/objdir $ make
make: *** No targets specified and no makefile found.  Stop.

then i try use "make" in parent directory

 518  cd ..
 519  make distclean

AND output is >

Making all in ACE_wrappers
make[3]: Entering directory `/home/mangos/sourcegit/dep/ACE_wrappers'
make[3]: *** No rule to make target `all'.  Stop.
make[3]: Leaving directory `/home/mangos/sourcegit/dep/ACE_wrappers'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mangos/sourcegit/dep'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mangos/sourcegit'
make: *** [all] Error 2

:(

what i doing BAD ??

edit: this is my config log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by mangos configure 0.12.0, which was
generated by GNU Autoconf 2.63.  Invocation command line was

 $ ../configure --prefix=/home/mangos/mangos_new/ --sysconfdir=/home/mangos/mangos_new/etc --with-python --enable-cli --enable-ra --datadir=/home/mangos/mangos_new/ --enable-maintainer-mode=yes

## --------- ##
## Platform. ##
## --------- ##

hostname = illidan
uname -m = i686
uname -r = 2.6.24-gentoo-r2
uname -s = Linux
uname -v = #1 SMP Tue Feb 12 08:54:57 CET 2008

/usr/bin/uname -p = Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/4.3.2
PATH: /usr/lib/subversion/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2118: checking for a BSD-compatible install
configure:2186: result: /usr/bin/install -c
configure:2197: checking whether build environment is sane
configure:2240: result: yes
configure:2265: checking for a thread-safe mkdir -p
configure:2304: result: /bin/mkdir -p
configure:2317: checking for gawk
configure:2333: found /usr/bin/gawk
configure:2344: result: gawk
configure:2355: checking whether make sets $(MAKE)
configure:2377: result: yes
configure:2401: error: source directory already configured; run "make distclean" there first

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AR=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK='gawk'
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
DOXYGEN=''
DOXYGEN_ENABLED_FALSE=''
DOXYGEN_ENABLED_TRUE=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
MANGOSD_DEBUG_INFO=''
MANGOSD_ENABLE_CLI=''
MANGOSD_ENABLE_RA=''
MANGOS_BUILD_ACE_FALSE=''
MANGOS_BUILD_ACE_TRUE=''
MANGOS_INCLUDES=''
MANGOS_LIBS=''
MKDIR_P='/bin/mkdir -p'
MYSQL_CONFIG=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='mangos'
PACKAGE_STRING='mangos 0.12.0'
PACKAGE_TARNAME='mangos'
PACKAGE_VERSION='0.12.0'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='/home/mangos/mangos_new'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/mangos/mangos_new'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='/home/mangos/mangos_new/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "mangos"
#define PACKAGE_TARNAME "mangos"
#define PACKAGE_VERSION "0.12.0"
#define PACKAGE_STRING "mangos 0.12.0"
#define PACKAGE_BUGREPORT "[email protected]"

configure: exit 1

Link to comment
Share on other sites

thnx for tutorial, but i have problems when

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

..........................

checking if gcc supports -c -o file.o... (cached) yes

checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

checking for a BSD-compatible install... /usr/bin/install -c

checking for pthread_create in -lpthread... yes

checking for compress in -lz... no

configure: error: Missing zlib

missing the zlib but i have install this packcage
* GCC 4.1.X ( gcc / g++ / cpp / fort77 / g77 / gpp)

* automake

* autoconf

* glibc & glibc-dev(glibc headers) [ libc6 ]

* make

* mysql-server 4.1 ou mysql-server 5.0 && libmysql++-dev

* libtool

* OpenSSL (libssl-dev)

* subversion et patch

* git

* zlibc

i have download source today!!!

apt-get install zlib1g-dev this is helped

Link to comment
Share on other sites

nice work, but compile errors

who can help me plz

OS: Linux ( 32 bit, Suse )

then mv -f ".deps/Main.Tpo" ".deps/Main.Po"; else rm -f ".deps/Main.Tpo"; exit 1; fi

../../../src/realmd/Main.cpp: In function âint main(int, char**)â:

../../../src/realmd/Main.cpp:96: error: expected `)' before âdirâ

../../../src/realmd/Main.cpp:146: error: expected `)' before âdirâ

make[3]: *** [Main.o] error 1

make[3]: Leaving directory `/opt/emu/mangos_163/objdir/src/realmd'

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

make[2]: Leaving directory `/opt/emu/mangos_163/objdir/src'

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

make[1]: Leaving directory `/opt/emu/mangos_163/objdir'

make: *** [all] error 2

my steps

autoreconf --install

aclocal

autoheader

autoconf

automake --add-missing

automake src/bindings/ScriptDev2/Makefile

mkdir objdir

cd objdir

../configure --prefix=/opt/emu/mangos_163/ --sysconfdir=/opt/emu/mangos_163/etc --with-python --enable-cli --enable-ra --datadir=/opt/emu/mangos_163

make && make install

regards

Betaman

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