• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Kompilacja TFS na linux

widek95

Proggresssiver
Joined
Jun 13, 2009
Messages
10
Reaction score
0
Cześć!
Pierwszy raz kompiluję TFS na linuxie i mam problem.
Mój system: Ubuntu 11.04
Proszę o pomoc!

Błąd:
Code:
root@proggressiver-Linux:~/tfs# ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
configure.ac:143: warning: macro `AM_PATH_XML2' not found in library
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.ac:143: error: possibly undefined macro: AM_PATH_XML2
      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
Kiedyś coś czytałem że może to być przez libboost
mam wgrane te libboost:
Code:
wget http://kent.dl.sourceforge.net/sourceforge/asio/boost_asio_0_3_8.tar.gz
wget http://switch.dl.sourceforge.net/sourceforge/boost/boost_1_34_1.tar.gz
 
Mój system: Ubuntu 11.04

Debian 6.0 - gorąco polecam!
Jeżeli myślisz przyszłościowo...

A tutaj tutorial, bo nie chce mi się pisać po kolei...
Debian - kompilacja pod Linuxa - napisane przez amatora.
gv7b2NPtdQ.png


Debian - kompilacja pod Linuxa - napisane przez profesjonalistę, na moje oko w tej dziedzinie.
Dziękuję!
 
Last edited:
Hmm czyli będę musiał znowu się przesiadać, a dopiero co się przyzwyczaiłem do ubuntu na domowym serwerze.

Ok. Dzięki za pomoc
 
Hmm czyli będę musiał znowu się przesiadać, a dopiero co się przyzwyczaiłem do ubuntu na domowym serwerze.

Ok. Dzięki za pomoc

Nie mówię, że musisz się przesiadać, mówię tylko, że będzie Ci wygodniej. :thumbup:
 
Popieram Ethana w 110% Debian 6.0 jest najlepszym systemem jaki aktualnie jest na świecie :) Takie moje zdanie ^ ^
 
Zależy co uważasz za najlepszy. Jeśli masz na myśli gotowe rozwiązania na otlandzie to rzeczywiście najlepszy.

W sumie lepiej przejdz na debiana bo nie będziesz musiał często prosić o pomoc.
 
Już się przesiadłem :) Właśnie się biorę do kompilowania serwera :)
 
Linux to system a debian to dystrybucja... Jest tez dystrybucja debian jadra GNU Hurd, co prawda jeszcze nie alfa, ale jest. Swoja droga hurd to przyszlosc, a nie jakis tam linux :cool:
 
Wiem że temat miał iść do zamknięcia ale mam problem przy
Code:
./configure --enable-sqlite --enable-mysql --enable-server-diag
Oto błąd:
Code:
root@proggressiver-linux:/home/proggressiver/tfs# ./configure --enable-sqlite --enable-mysql --enable-server-diag
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ceil... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.7.8)
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lz... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking cryptopp/sha.h usability... no
checking cryptopp/sha.h presence... no
checking for cryptopp/sha.h... no
configure: error: "Required Crypto++ headers not found."
 
Wiem że temat miał iść do zamknięcia ale mam problem przy
Code:
./configure --enable-sqlite --enable-mysql --enable-server-diag
Oto błąd:
Code:
root@proggressiver-linux:/home/proggressiver/tfs# ./configure --enable-sqlite --enable-mysql --enable-server-diag
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for ptrdiff_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for ceil... yes
checking for floor... yes
checking for ftime... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for xml2-config... /usr/bin/xml2-config
checking for libxml - version >= 2.6.5... yes (version 2.7.8)
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lz... yes
checking for main in -lboost_thread-gcc-mt... no
checking for main in -lboost_thread-mt... yes
checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... yes
checking cryptopp/sha.h usability... no
checking cryptopp/sha.h presence... no
checking for cryptopp/sha.h... no
configure: error: "Required Crypto++ headers not found."

Nie masz odpowiednich pakietow a m.in niejakiego "Crypto++"
 
A skąd wziąść pakiet OpenSSL?
kiedy wpisuje
Code:
apt-get install OpenSSL
pisze że nie ma takiego pakietu, kiedy wpisuję
Code:
apt-get install openssl
pakiety ściągają się i instalują, ale error cały czas jest:
Code:
configure: error: "Required OpenSSL headers not found."
 
Code:
Pakiet libssl nie ma dostępnej wersji, ale odnosi się do niego inny pakiet.
Zazwyczaj oznacza to, że pakietu brakuje, został zastąpiony przez inny
pakiet lub nie jest dostępny przy pomocy obecnie ustawionych źródeł.

E: Package 'libssl' has no installation candidate
root@proggressiver-linux:/home/proggressiver/tfs#

Edit:
Poradziłem sobie.
Code:
apt-get install libssl-dev

Edit2:
A jednak nie poradziłem
Code:
  CXX    luascript.o
In file included from /usr/include/boost/filesystem/v3/config.hpp:29:0,
                 from /usr/include/boost/filesystem.hpp:34,
                 from luascript.cpp:21:
/usr/include/boost/system/api_config.hpp:28:5: error: #error user defined BOOST_POSIX_API or BOOST_WINDOWS_API not supported
  CXX    mailbox.o
luascript.cpp: In member function ‘bool LuaInterface::loadDirectory(const std::string&, Npc*, bool)’:
luascript.cpp:748:11: error: ‘class boost::filesystem3::directory_entry’ has no member named ‘leaf’
luascript.cpp:756:24: error: ‘class boost::filesystem3::directory_entry’ has no member named ‘leaf’
  CXX    manager.o
make[1]: *** [luascript.o] Błąd 1
make[1]: *** Oczekiwanie na niezakończone zadania....
make[1]: Opuszczenie katalogu `/home/proggressiver/.local/share/Trash/files/tfs'
make: *** [all] Błąd 2
 
Last edited:

Debian 6.0 - gorąco polecam!
Jeżeli myślisz przyszłościowo...


Ubuntu też może być, nie ma różnicy.
I bezsensowne linkowanie boostów, po co jak można z automatu to zrobić.


@widek95
po co konfigurujesz z --enable-sqlite ? Będziesz tego używał? Wątpie.
PHP:
./configure --enable-mysql --enable-server-diag

a co do paczek jeżeli masz problem z boostami, to wystarczy :
PHP:
libboost1.42-all-dev

jeżeli z crypto :
PHP:
libcrypto++-dev
 
Code:
admin.o: In function `global constructors keyed to g_adminConfig':
admin.cpp:(.text+0x6f5c): undefined reference to `boost::system::get_posix_category()'
admin.cpp:(.text+0x6f66): undefined reference to `boost::system::get_posix_category()'
commands.o: In function `global constructors keyed to _ZN8Commands16defined_commandsE':
commands.cpp:(.text+0xb0c9): undefined reference to `boost::system::get_posix_category()'
commands.cpp:(.text+0xb0d3): undefined reference to `boost::system::get_posix_category()'
connection.o: In function `global constructors keyed to _ZN10Connection10m_logErrorE':
connection.cpp:(.text+0x461): undefined reference to `boost::system::get_posix_category()'
connection.o:connection.cpp:(.text+0x46b): more undefined references to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make: *** [forgottenserver] Błąd 1
Boosta aktualizowałem tak jak napisał Kacpersky
 
Back
Top Bottom