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

Code:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Can anyone help me?

I could just see you in primary school now... Walking into a door. A talking door even. It would intone "Sorry, but you must open me first before walking through." But there you'd be. On your butt, wailing in tears. Till the teacher opens the door for you. My god.

dumbass@remoteserver > sudo dpkg --configure -a && sudo apt-get -f install


 
I could just see you in primary school now... Walking into a door. A talking door even. It would intone "Sorry, but you must open me first before walking through." But there you'd be. On your butt, wailing in tears. Till the teacher opens the door for you. My god.

Hahahaha, This. Win!
 
i tried it on fedora, but i got acess denied when try to execute autogen.sh and build.sh, what should i do? (i did su)
 
i tried it on fedora, but i got acess denied when try to execute autogen.sh and build.sh, what should i do? (i did su)

It doesn't matter if you are root if the file is not executable.
the autogen script is just a one liner anyways.
user@remote > sudo autoreconf -vfi

the build script is failwaste anyway. It too can be achieved with a one liner.
user@remote > sudo nice -n -10 make -j `grep processor /proc/cpuinfo | wc -l`
 
This problem no solution correcty ??

Code:
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1   -O2 -fomit-frame-pointer -D__USE_MYSQL__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe   -o theforgottenserver actions.o  allocator.o baseevents.o beds.o chat.o combat.o condition.o configmanager.o connection.o container.o creature.o creatureevent.o cylinder.o database.o databasemanager.o databasemysql.o   depot.o dispatcher.o exception.o fileloader.o game.o  globalevent.o group.o house.o housetile.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o item.o itemattributes.o items.o luascript.o mailbox.o manager.o map.o monster.o monsters.o movement.o networkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o player.o position.o protocol.o protocolgame.o protocolhttp.o protocollogin.o protocolold.o quests.o raids.o rsa.o scheduler.o scriptmanager.o server.o spawn.o spells.o status.o talkaction.o teleport.o textlogger.o thing.o tile.o tools.o trashholder.o waitlist.o weapons.o vocation.o -llua5.1   -lmysqlclient -lcryptopp -lboost_filesystem-mt -lboost_date_time-mt -lboost_system-mt -lboost_regex-mt -lboost_thread-mt -lz -lgmp  -lxml2
actions.o: In function `global constructors keyed to _ZN7ActionsC2Ev':
actions.cpp:(.text+0x47da): undefined reference to `boost::system::get_posix_category()'
actions.cpp:(.text+0x47e4): undefined reference to `boost::system::get_posix_category()'
baseevents.o: In function `global constructors keyed to _ZN10BaseEvents11loadFromXmlEv':
baseevents.cpp:(.text+0x2ba): undefined reference to `boost::system::get_posix_category()'
baseevents.cpp:(.text+0x2c4): undefined reference to `boost::system::get_posix_category()'
beds.o: In function `global constructors keyed to _ZN7BedItem8readAttrE11AttrTypes_tR10PropStream':
beds.cpp:(.text+0x167a): undefined reference to `boost::system::get_posix_category()'
beds.o:beds.cpp:(.text+0x1684): more undefined references to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: ** [theforgottenserver] Erro 1
make[1]: Saindo do diretório `/home/cxl/otserv/trunk.r3777'
make: ** [all] Erro 2
 
when i start the serv i got this

Code:
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:38: boost::condition_variable::~condition_variable(): Assertion `!pthread_cond_destroy(&cond)' failed.
Abortado

need help please
 
type killall -9 theforgottenserver
and try to open the server
 
# apt-get install libboost1.41-dev libboost-system1.41-dev libboost-filesystem1.41-dev libboost-date-time1.41-dev libboost-regex1.41-dev libboost-thread1.41-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 libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 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 zlib1g-dev zlib1g libcrypto++-dev libcrypto++8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libboost-date-time1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-filesystem1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-regex1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-system1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost-thread1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libboost1.41-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libboost1.41-dev' has no installation candidate
E: Package 'libboost-system1.41-dev' has no installation candidate
E: Package 'libboost-filesystem1.41-dev' has no installation candidate
E: Package 'libboost-date-time1.41-dev' has no installation candidate
E: Package 'libboost-regex1.41-dev' has no installation candidate
E: Package 'libboost-thread1.41-dev' has no installation candidate

What repository do i have to add?!?!?!!!?!
 
What repository do i have to add?!?!?!!!?!

For users who have packet errors when trying to install the dependencies try:

Code:
apt-get install libboost-dev libboost-system-dev libboost-filesystem-dev libboost-date-time-dev libboost-regex-dev libboost-thread-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 libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 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 zlib1g-dev zlib1g libcrypto++-dev libcrypto++8
 
my problem is:

Code:
 ...
   CXX fileloader.o
   CXX game.o
   CXX globalevent.o
   CXX group.o
cc1plus: warnings being Treated as errors
Game.cpp: In member function 'bool Game:: loadStatuslist ()':
Game.cpp: 6176:12: error: unused variable 'doc'
make [1]: *** [game.o] Error 1
make [1]: *** Waiting for unfinished jobs ....
make [1]: Leaving directory `/ home/acodin/otserv/0.4 '
make: *** [all] Error 2
acodin @ Acodin: ~ / $ otserv/0.4

???
 
my problem is:

Code:
 ...
   CXX fileloader.o
   CXX game.o
   CXX globalevent.o
   CXX group.o
cc1plus: warnings being Treated as errors
Game.cpp: In member function 'bool Game:: loadStatuslist ()':
Game.cpp: 6176:12: error: unused variable 'doc'
make [1]: *** [game.o] Error 1
make [1]: *** Waiting for unfinished jobs ....
make [1]: Leaving directory `/ home/acodin/otserv/0.4 '
make: *** [all] Error 2
acodin @ Acodin: ~ / $ otserv/0.4

???

It's error in source code, there is nothing wrong with ur boosts or compiler.
 
This works great.

Anyone using Debian 6:
Skip step 1. Not needed.

On step 2:
Change all the 1.41 files into 1.42 files.
(sample: libboost1.41-dev should be: libboost1.42-dev).

And compilation should work fine by downloading latest sources, enter source dir, and do the commands autogen.sh, ./configure --enable-mysql, and make.
 
Hey guys, been reading through this thread trying to sort out my problem. So I thought i'd ask here.

After I type make I get
make all-am
make[1]: Entering directory `/raid/Shared/Tibia Server/0.3.6.r96'
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 baseevents.h:20:0,
from actions.h:20,
from actions.cpp:20:
otsystem.h:79:11: error: missing binary operator before token "_MSC_VER"
make[1]: *** [actions.o] Error 1
make[1]: Leaving directory `/raid/Shared/Tibia Server/0.3.6.r96'
make: *** [all] Error 2

This is error in the source code yeah? Does everything work alright then?

I get this earlier up when I do the configuration, are these 'no' supposed to be 'yes'? That means my packaged aren't installed correctly?
I'm using ubuntu 11.04 if it helps.

checking for __gmpz_init2 in -lgmp... 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

Also, why is the svn down on otland? Also i'm a little confused, once i've compiled and everything, how do i start it, which file do i use? I assume it would be ./TFSfile after i configure the .cfg ofc.

Sorry about my bad english guys, I'm from Australia, we speak Kangaroo.

Impulss.
 
Back
Top