• 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 Compile libboost error

Mert22

New Member
Joined
Oct 6, 2009
Messages
12
Reaction score
0
When I try to compile my engine I have following error.


Code:
Configure complete, now you may type 'make'.
ks306559:~/abc# make
make  all-am
make[1]: Wejście do katalogu `/root/abc'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__REMOTE_CONTROL__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
In file included from actions.cpp:37:
house.h:23:39: error: boost/tr1/unordered_set.hpp: Nie ma takiego pliku ani katalogu
In file included from actions.cpp:37:
house.h:76: error: 'std::tr1' has not been declared
house.h:76: error: ISO C++ forbids declaration of 'unordered_set' with no type
house.h:76: error: typedef name may not be a nested-name-specifier
house.h:76: error: expected ';' before '<' token
make[1]: *** [actions.o] Błąd 1
make[1]: Opuszczenie katalogu `/root/abc'
make: *** [all] Błąd 2
ks306559:~/abc# make[1]: Wejście do katalogu `/root/abc'
> g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__REMOTE_CONTROL__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
> In file included from actions.cpp:37:
> house.h:23:39: error: boost/tr1/unordered_set.hpp: Nie ma takiego pliku ani katalogu
> In file included from actions.cpp:37:
> house.h:76: error: 'std::tr1' has not been declared
> house.h:76: error: ISO C++ forbids declaration of 'unordered_set' with no type
> house.h:76: error: typedef name may not be a nested-name-specifier
> house.h:76: error: expected ';' before '<' token
> make[1]: *** [actions.o] Błąd 1
> make[1]: Opuszczenie katalogu `/root/abc'
> make: *** [all] Błąd 2
> ks306559:~/abc#
> make[1]: Wejście do katalogu `/root/abc'
g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__REMOTE_CONTROL__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
In file included from actions.cpp:37:
-bash: command substitution: line 9: unexpected EOF while looking for matching `''
-bash: command substitution: line 12: syntax error: unexpected end of file
-bash: make[1]:: command not found
ks306559:~/abc# g++ -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQLITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D__REMOTE_CONTROL__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1 -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
house.h:23:39: error: boost/tr1/unordered_set.hpp: Nie ma takiego pliku ani katalogu
In file included from actions.cpp:37:
house.h:76: error: 'std::tr1' has not been declared
house.h:76: error: ISO C++ forbids declaration of 'unordered_set' with no type
house.h:76: error: typedef name may not be a nested-name-specifier
house.h:76: error: expected ';' before '<' token
make[1]: *** [actions.o] Błąd 1
make[1]: Opuszczenie katalogu `/root/abc'
make: *** [all] Błąd 2
ks306559:~/abc#
In file included from actions.cpp:37:
house.h:23:39: error: boost/tr1/unordered_set.hpp: Nie ma takiego pliku ani katalogu


I know that I have to update my asio and libboost but I don't know how to. Plase paste the apt get install or upgrade commmand :p


I'll rep ++ :))
 
apt-get update <-- to update the packages list.
apt-get upgrade package<-- to update outdated packages installed on your system.
 
Last edited:
Code:
sudo -i

apt-get remove --purge boost*

apt-get autoremove

apt-get install libboost1.35-dev 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 libxml2-dev libxml++2.6-dev libmysqlclient15-dev mysql-client-5.0 mysql-common mysql-server-5.0 gcc cpp automake autoconf pkg-config liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev libboost-regex1.35-dev
(with standard Debian/Ubuntu repo's..)

reference: http://otland.net/f137/linux-ultimate-compile-guide-debian-ubuntu-included-2868/
 
Back
Top