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

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
Hello, i'm done with everything and also uploaded my server.

But when i try to compile the TFS, im getting error with that libboost... im using Debian 4.0 from serverloft.


Here is my error:

Code:
E: Couldn't find package libboost1.35-dev


and also elf said in his thread if not work make that svn c or something..

it says
Code:
-bash: svn: command not found
 
To 1st problem, try maybe this ones in this order:
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
 
Aff sry forgot these :D Just execute them before but stay in same folder:

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:
 g++ -shared -Wl,-soname,libboost_system.so.1 -o libboost_system.so.1.0.1 error_code.cpp -lc -fPIC
In file included from error_code.cpp:25:
/usr/local/include/boost/system/config.hpp:13:28: error: boost/config.hpp: No such file or directory
In file included from error_code.cpp:26:
/usr/local/include/boost/system/error_code.hpp:15:29: error: boost/cstdint.hpp: No such file or directory
/usr/local/include/boost/system/error_code.hpp:16:28: error: boost/assert.hpp: No such file or directory
/usr/local/include/boost/system/error_code.hpp:17:31: error: boost/operators.hpp: No such file or directory
/usr/local/include/boost/system/error_code.hpp:18:33: error: boost/noncopyable.hpp: No such file or directory
/usr/local/include/boost/system/error_code.hpp:19:39: error: boost/utility/enable_if.hpp: No such file or directory
/usr/local/include/boost/system/error_code.hpp:32:68: error: boost/config/abi_prefix.hpp: No such file or directory
/usr/local/include/boost/system/error_code.hpp:684:70: error: boost/config/abi_suffix.hpp: No such file or directory
/usr/local/include/boost/system/error_code.hpp:149: error: expected class-name before â{â token
/usr/local/include/boost/system/error_code.hpp:192: error: âenable_ifâ in namespace âboostâ does not name a type
/usr/local/include/boost/system/error_code.hpp:192: error: expected â,â or â...â before â<â token
/usr/local/include/boost/system/error_code.hpp:206: error: âenable_ifâ in namespace âboostâ does not name a type
/usr/local/include/boost/system/error_code.hpp:206: error: expected unqualified-id before â<â token
/usr/local/include/boost/system/error_code.hpp:279: error: âenable_ifâ in namespace âboostâ does not name a type
/usr/local/include/boost/system/error_code.hpp:279: error: expected â,â or â...â before â<â token
/usr/local/include/boost/system/error_code.hpp:292: error: âenable_ifâ in namespace âboostâ does not name a type
/usr/local/include/boost/system/error_code.hpp:292: error: expected unqualified-id before â<â token

Also when making that command with g++
 
hmm maybe try again and do it in exactly this order and dont miss anything :S :


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

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
 
it doesnt matter where your server is. If you wanna have him in a different folder just use this command:
Code:
cp /ot/server /HERE NEW LOCATION
and when you wanna compile it i think you have to go through sources folder and execute this:
Code:
./autogen.sh && ./configure --enable-mysql --enable-server-diag && make
 
When i made the last command you said, i got this error
Code:
-bash: ./autogen.sh: No such file or directory

When compiling,

Code:
./autogen.sh: line 1: autoreconf: command not found

Also this is when i make ./autogen.sh
 
Last edited:
got all the libraries?
PHP:
sudo aptitude 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
 
Tried, nothing work.. it says Command not found ... not files.

ok, thanks to talaturen fixed.

Now i got like this.

Code:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'

Should it looks like it?
 
Last edited:
Tried, nothing work.. it says Command not found ... not files.

ok, thanks to talaturen fixed.

Now i got like this.

Code:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'

Should it looks like it?

yeah it's normal.
 
Back
Top