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

Linux Problem with compile TFS 0.3.4 on Debian Lenny

Dzanar2

New Member
Joined
Mar 14, 2008
Messages
78
Reaction score
1
Location
/dev/null
Hello.
I have problem with compiling server and i don't know how can i slove it ;/
Code:
ots@r23561:~/serwer$ ./configure --enable-sqlite --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 for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 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.6.32)
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init2 in -lgmp... 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 asio.hpp usability... no
checking asio.hpp presence... no
checking for asio.hpp... no
configure: error: "boost::asio header not found."
Any ideas?
 
Code:
cd ~

Code:
wget http://kent.dl.sourceforge.net/sourceforge/asio/boost_asio_0_3_8.tar.gz

Code:
wget http://switch.dl.sourceforge.net/sourceforge/boost/boost_1_34_1.tar.gz

Code:
tar -zxvf boost_asio_0_3_8.tar.gz

Code:
tar -zxvf boost_1_34_1.tar.gz

Code:
cp boost_asio_0_3_8/boost /usr/local/include -r

Code:
cp boost_asio_0_3_8/libs boost_1_34_1 -r

Code:
cd boost_1_34_1/libs/system/src/

Code:
g++ -shared -Wl,-soname,libboost_system.so.1 -o libboost_system.so.1.0.1 error_code.cpp -lc -fPIC

Code:
cp libboost_system.so.1.0.1 /usr/local/lib

Code:
ln -s /usr/local/lib/libboost_system.so.1.0.1 /usr/lib/libboost_system.so.1

Code:
ldconfig

Code:
cd ~

Code:
rm -rf boost_asio_0_3_8 boost_1_34_1
 
I've already done this yet, but i still have problem. Sorry for my english.
Code:
o.1 -o libboost_system.so.1.0.1 error_code.cpp -lc -fPIC
r23561:~/boost_1_34_1/libs/system/src# cp libboost_system.so.1.0.1 /usr/local/lib
r23561:~/boost_1_34_1/libs/system/src# ln -s /usr/local/lib/libboost_system.so.1.0.1 /usr/lib/libboost_system.so.1
ln: tworzenie dowiązania symbolicznego `/usr/lib/libboost_system.so.1': Plik istnieje
r23561:~/boost_1_34_1/libs/system/src# ldconfig
r23561:~/boost_1_34_1/libs/system/src# rm -rf boost_asio_0_3_8 boost_1_34_1
r23561:~/boost_1_34_1/libs/system/src#

Code:
checking for __gmpz_init2 in -lgmp... 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... no
checking for main in -lboost_system... no
configure: WARNING: "Linking against boost::system library failed."
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... yes
checking asio.hpp usability... no
checking asio.hpp presence... no
checking for asio.hpp... no
configure: error: "boost::asio header not found."
 
Code:
apt-get update && apt-get upgrade
Code:
apt-get install libboost-date-time-dev libboost-dev libboost-regex-dev libboost-signals-dev libboost-thread-dev libxml2 liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 libsqlite0 libsqlite0-dev libsqlite3-0 libsqlite3-dev sqlite3 lua5.1 libmysql++-dev libgmp3-dev subversion make g++ libxml2-dev libxml++2.6-dev liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite-dev liblua5.1-sql-sqlite2 libmysqlclient15-dev mysql-client-5.0 mysql-common mysql-server-5.0 gcc cpp
then try again
 
Code:
Odczyt informacji o stanie... Gotowe
libboost-date-time-dev jest już w najnowszej wersji.
libboost-date-time-dev zaznaczony jako zainstalowany ręcznie.
libboost-dev jest już w najnowszej wersji.
libboost-regex-dev jest już w najnowszej wersji.
libboost-regex-dev zaznaczony jako zainstalowany ręcznie.
libboost-signals-dev jest już w najnowszej wersji.
libboost-signals-dev zaznaczony jako zainstalowany ręcznie.
libboost-thread-dev jest już w najnowszej wersji.
libboost-thread-dev zaznaczony jako zainstalowany ręcznie.
libxml2 jest już w najnowszej wersji.
liblua5.1-0 jest już w najnowszej wersji.
liblua5.1-0-dev jest już w najnowszej wersji.
liblua50 jest już w najnowszej wersji.
liblua50-dev jest już w najnowszej wersji.
liblualib50 jest już w najnowszej wersji.
liblualib50-dev jest już w najnowszej wersji.
lua50 jest już w najnowszej wersji.
libsqlite0 jest już w najnowszej wersji.
libsqlite0-dev jest już w najnowszej wersji.
libsqlite3-0 jest już w najnowszej wersji.
libsqlite3-dev jest już w najnowszej wersji.
sqlite3 jest już w najnowszej wersji.
lua5.1 jest już w najnowszej wersji.
libmysql++-dev jest już w najnowszej wersji.
libgmp3-dev jest już w najnowszej wersji.
subversion jest już w najnowszej wersji.
make jest już w najnowszej wersji.
g++ jest już w najnowszej wersji.
libxml2-dev jest już w najnowszej wersji.
libxml++2.6-dev jest już w najnowszej wersji.
liblua5.1-sql-mysql-dev jest już w najnowszej wersji.
Uwaga, wybieranie liblua5.1-sql-sqlite3-dev zamiast liblua5.1-sql-sqlite-dev
liblua5.1-sql-sqlite3-dev jest już w najnowszej wersji.
Uwaga, wybieranie liblua5.1-sql-sqlite3-2 zamiast liblua5.1-sql-sqlite2
liblua5.1-sql-sqlite3-2 jest już w najnowszej wersji.
libmysqlclient15-dev jest już w najnowszej wersji.
mysql-client-5.0 jest już w najnowszej wersji.
mysql-common jest już w najnowszej wersji.
mysql-server-5.0 jest już w najnowszej wersji.
gcc jest już w najnowszej wersji.
cpp jest już w najnowszej wersji.
Następujące pakiety zostały zainstalowane automatycznie i nie są już więcej wymagane:
  python-elementtree libboost-system1.35.0 libboost-python1.35.0
  libboost-signals1.35.0 libboost-program-options1.35.0
  libboost-date-time1.35.0 libboost-test1.35.0 libboost-iostreams1.35.0
  libboost-wave1.35.0 libboost-graph1.35.0 python-celementtree
  libboost-thread1.35.0 gccxml libboost1.35-doc libboost-serialization1.35.0
  python-support libboost-regex1.35.0 libboost-filesystem1.35.0
Aby je usunąć należy użyć "apt-get autoremove".
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
r23561:~/boost_1_34_1/libs/system/src#
hmm? ;/ This system is 64 bit. Maybe it is a problem?
 
Back
Top