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

Compiling [Linux] Ultimate compile guide for Debian (Ubuntu included)

Just want to say that on Ubuntu, the versions are 1.35, not 1.38.

Tell me if I'm wrong, just a beginner on Ubuntu :p

Sincerely,
Schani
 
Just updating one thing for ubuntu users:

Since 1.38 does not exist i have updated the apt-get list with 1.37

Code:
apt-get install libboost1.37-dev libboost-system1.37-dev libboost-filesystem1.37-dev libboost-date-time1.37-dev libboost-regex1.37-dev libboost-thread1.37-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient15-dev mysql-client-5.0 mysql-server-5.0 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev

and heres is 1.35 if 1.37 does not work

Code:
apt-get install libboost1.35-dev libboost-system1.35-dev libboost-filesystem1.35-dev libboost-date-time1.35-dev libboost-regex1.35-dev libboost-thread1.35-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient15-dev mysql-client-5.0 mysql-server-5.0 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev

Note: tfs wouldn't compile for me with libboost1.37 but 1.35 worked :)
 
Hi, I using Linux Debian 5.03

it's my errors:
zrzutekranupf.png


Pls help me :/
 
could you make a tutorial about mysql, beause i have problems with it, please, such like how i can add database to lampp, or without lampp

mfg Melzon
 
the compiling is ok but i don't have the client 8.50 for linux ,in the page of tibiaclient is not avaible fpr 8.50 i need found the client! ty
 
Just updating one thing for ubuntu users:

Since 1.38 does not exist i have updated the apt-get list with 1.37

Code:
apt-get install libboost1.37-dev libboost-system1.37-dev libboost-filesystem1.37-dev libboost-date-time1.37-dev libboost-regex1.37-dev libboost-thread1.37-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient15-dev mysql-client-5.0 mysql-server-5.0 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev

and heres is 1.35 if 1.37 does not work

Code:
apt-get install libboost1.35-dev libboost-system1.35-dev libboost-filesystem1.35-dev libboost-date-time1.35-dev libboost-regex1.35-dev libboost-thread1.35-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient15-dev mysql-client-5.0 mysql-server-5.0 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev

Note: tfs wouldn't compile for me with libboost1.37 but 1.35 worked :)
exist in Karmic repos btw :p (and personally i Run Jaunty Jaguar, with Karmic GCC 4.4-release/libs, better binary code and from personal experience, no problems with it :D)
Code:
deb http://no.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://no.archive.ubuntu.com/ubuntu/ karmic main restricted

also "sudo su" should be "sudo -s" ("sudo su" will basically make "sudo" run the program "su", witch means some memory overhead compared to sudo -s :p)
.. also if for whatever reason the program "su" is not present, sudo -s wont break
 
Last edited:
Hi, I using Linux Debian 5.03

it's my errors:
zrzutekranupf.png


Pls help me :/
try: {
install libboost_system1.38.0
and change out "-llibboost_system" with "-llibboost_system-mt"
} catch(error){makeForumThread{support,error...}}
 
Last edited:
Code:
[B]root@poriqq-desktop:~/forgottenserver# mv data doc config.lua forgottenserver.s3db forgottenserver.sql schema.sqlite forgottenserver ..
mv: nie można wykonać stat na `data': No such file or directory
mv: nie można wykonać stat na `doc': No such file or directory
mv: nie można wykonać stat na `config.lua': No such file or directory
mv: nie można wykonać stat na `forgottenserver.s3db': No such file or directory
mv: nie można wykonać stat na `forgottenserver.sql': No such file or directory
mv: nie można wykonać stat na `schema.sqlite': No such file or directory
mv: nie można wykonać stat na `forgottenserver': No such file or directory[/B]

And i dont know what do now :/

(nie można wykonać stat means that you can't make stat(istics ?) on '...')
 
Last edited:
I have problem with phpmyadmin.
When going to http://IP/phpmyadmin/
Errors
Not Found

The requested URL /phpmyadmin/ was not found on this server.
Apache/2.2.14 (Debian) Server at IP Port 80

Srry for my english.

Please help ;x
that question deserves it's own thread, and has nothing to do with "compiling TFS on linux" >.< however...
My best guess would be you haven't added it,
i doubt there's a "phpmyadmin" folder in your /var/www folder. you can get it here


Code:
[B]root@poriqq-desktop:~/forgottenserver# mv data doc config.lua forgottenserver.s3db forgottenserver.sql schema.sqlite forgottenserver ..
mv: nie można wykonać stat na `data': No such file or directory
mv: nie można wykonać stat na `doc': No such file or directory
mv: nie można wykonać stat na `config.lua': No such file or directory
mv: nie można wykonać stat na `forgottenserver.s3db': No such file or directory
mv: nie można wykonać stat na `forgottenserver.sql': No such file or directory
mv: nie można wykonać stat na `schema.sqlite': No such file or directory
mv: nie można wykonać stat na `forgottenserver': No such file or directory[/B]

And i dont know what do now :/

(nie można wykonać stat means that you can't make stat(istics ?) on '...')
Dont f*in spam. however what about just trying
Code:
mv * ../
? also i don't get what this have to do with compiling >.<
 
Please delete this post...
 
Last edited:
I have problem:

and i don't know what is it...:confused:
Repeat tutorial six times and always i have this bug...
Please help me.
I go to step 2, and i can't install this:
libboost1.38-dev libboost-system1.38-dev libboost-filesystem1.38-dev libboost-date-time1.38-dev libboost-regex1.38-dev libboost-thread1.38-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient15-dev mysql-client-5.0 mysql-server-5.0 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev
I know, i must change sources.list but i don't know that i must copy link.
 
E: Nie udało się odnaleźć pakietu libboost1.38-dev
jak skasuje libboost1.38-dev z listy to następnego też nie może znaleść wtf?

E: Cannot find packet libboost1.38-dev
when i delete next one "libboost1.38-dev" and hit enter , it gives another error that cannot find another one...


---edit---
i had to delete few and now it works
apt-get install libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient15-dev mysql-client-5.0 mysql-server-5.0 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev

---edit2---
configure: error: "Linking against boost::regex library failed."
after did
./configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag
 
Last edited:
I have problem. after compiling a have errors:

Code:
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boost::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boost::system::get_posix_category()'
game.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boost::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boost::system::get_posix_category()'
otserv.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boost::system::get_posix_category()'
otserv.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined references to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Błąd 1
make[1]: Opuszczenie katalogu `/root/tfs'
make: *** [all] Błąd 2

This is line 172:

Code:
    static const error_category &  posix_category = get_posix_category();

This is line 175:

Code:
    static const error_category &  errno_ecat  = get_posix_category();

There is also this:

Code:
checking whether we are cross compiling... no

and next this:

Code:
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


Where is problem?
I use this source:
forgottenserver - Revision 73: /tags/0.3b3
 
Last edited:
Code:
root@twins-desktop:/home/twins/forgottenserver# ./autogen.sh
bash: ./autogen.sh: No such file or directory
root@twins-desktop:/home/twins/forgottenserver# ./configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag
bash: ./configure: No such file or directory
root@twins-desktop:/home/twins/forgottenserver# make
make: *** No targets specified and no makefile found.  Stop.

dunno why ;/ i've made every step
I'm using Ubuntu
 
Back
Top