• 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:
root@centrala:~/ots/0.3.2$ sh autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
/usr/bin/m4: unrecognized option '--gnu'
Try `/usr/bin/m4 --help' for more information.
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
root@centrala:~/ots/0.3.2$ ./configure --enable-mysql --enable-sqlite --enable-remote-control --enable-server-diag
bash: ./configure: Nie ma takiego pliku ani katalogu
root@centrala:~/ots/0.3.2$

My problem.
 
I had problem:

********:~# ln /usr/lib/libboost_regex-mt.so /usr/lib/libboost_regex.so
ln: dostęp do `/usr/lib/libboost_regex-mt.so': Nie ma takiego pliku ani katalogu
 
hiho, wheen im try use autogen.sh (svn version 0.3.5pl1) im have this error:
******:/home/ots/Serwer 0.3.5/source# ./autogen.sh
./autogen.sh: line 1: autoreconf: command not found

anybody can help me??

Debian 5.0 Lenny
 
Last edited:
how fix ?

gbr3:/home/tfs/trunk.r2629# ./autogen.sh
autoreconf2.50: Entering directory `.'
autoreconf2.50: configure.ac: not using Gettext
autoreconf2.50: running: aclocal --force
autoreconf2.50: configure.ac: tracing
autoreconf2.50: configure.ac: not using Libtool
autoreconf2.50: running: /usr/bin/autoconf --force
autoreconf2.50: running: /usr/bin/autoheader --force
autoreconf2.50: running: automake --add-missing --copy --force-missing
configure.ac:3: require Automake 1.10, but have 1.9.6
autoreconf2.50: automake failed with exit status: 1
 
hiho, wheen im try use autogen.sh (svn version 0.3.5pl1) im have this error:


anybody can help me??

Debian 5.0 Lenny



try
apt-get install autoconf







----
new error.

checking for main in -lboost_regex-gcc-mt... no
checking for main in -lboost_regex-mt... no
checking for main in -lboost_regex... yes
checking for main in -lboost_system-gcc-mt... no
checking for main in -lboost_system-mt... no
checking for main in -lboost_system... yes
checking for main in -lboost_date_time-gcc-mt... no
checking for main in -lboost_date_time-mt... no
checking for main in -lboost_date_time... yes
checking for main in -lboost_filesystem-gcc-mt... no
checking for main in -lboost_filesystem-mt... no
checking for main in -lboost_filesystem... no
configure: error: "Linking against boost::filesystem library failed."
 
Last edited:
vincity thx for help, and im have next problem
mis:~# cd "/home/ots/Serwer 0.3.5/source"
e --enable-remote-control --enable-server-diaggure --enable-mysql --enable-sqlit
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/sh: /home/ots/Serwer: No such file or directory
configure: WARNING: `missing' script is too old or missing
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.7.3)
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... no
checking for main in -lboost_system... 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... no
checking for main in -lboost_filesystem... no
configure: error: "Linking against boost::filesystem library failed."
 
3. Ok, you have installed everything required to compile- easy, huh? Now you may do 'the job'.
Here's an compilation example for TFS 0.3.1pl2:


If you receive a linker error saying something with 'libboost', try pasting the following commands to terminal and then move back to compiling again:
Code:
cd ~
Code:
wget http://garr.dl.sourceforge.net/sourceforge/asio/boost_asio_1_0_0.tar.gz
Code:
tar -xzf boost_asio_1_0_0.tar.gz
Code:
cp -ar boost_asio_1_0_0/boost/* /usr/include/boost/
Code:
g++ boost_asio_1_0_0/libs/system/src/error_code.cpp -c -o /usr/lib/libboost_system.a
Code:
ln /usr/lib/libboost_regex-mt.so /usr/lib/libboost_regex.so
Code:
ln /usr/lib/libboost_regex-mt.a /usr/lib/libboost_regex.a
Code:
ln /usr/lib/libboost_thread-mt.so /usr/lib/libboost_thread.so
Code:
ln /usr/lib/libboost_thread-mt.a /usr/lib/libboost_thread.a
Code:
ldconfig
Code:
cd ~
Code:
rm -rf boost_asio_1_0_0

what I made here and continue to write I can not compile ots
 
i get this error ;/
root@rxx35:/home/xxxxx# cd forgottenserver
root@rxxx35:/home/xxxxx/forgottenserver# ./autogen.sh
bash: ./autogen.sh: No such file or directory
root@rxxx35:/home/xxxx/forgottenserver#
 
r27235:~# cd forgottenserver
r27235:~/forgottenserver# ./autogen.sh
-bash: ./autogen.sh: Nie ma takiego pliku ani katalogu
r27235:~/forgottenserver#

!!!!!!!!!!!!!!!!!!!!!!!!!
 
how to compile tfs 0.2.5?

i type 'make' and later i get an error

/usr/bin/ld: cannot find -llua5.1-sql-sqlite
collect2: ld returned 1 exit status
make: *** [forgottenserver] Błąd 1
: (
 
@up
same, but I'm using tfs 0.2.2 :<

Please help us out with this, I've got the same error using 0.2.4, and tried it with your TFS and it had the same error aswell.

Any suggestionns?
 
A server developed by Elf, Talaturen, Lithium, Kiper, Kornholijo, Jonern & Nightmare.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)

> ERROR: Unable to load config.lua!

what now then? :S

edit: I deleted all and tried again now it says:

root@xxx-desktop:/home/xxx/forgottenserver/source# ./autogen.sh
bash: ./autogen.sh: No such file or directory

So I tried sh autogen.sh

root@xxx-desktop:/home/xxx/forgottenserver/source# sh autogen.sh
sh: Can't open autogen.sh

someone help me make 0.2.2 for linux? :(
 
Last edited:
Originally Posted by wraduanw
Hello,

First I would like to congratulate them for their work, the material is excellent!

Sorry for the English, because I'm from Brazil.

We go:
I downloaded the codes of the road: http://svn.otland.net/public/viewvc....tags/0.3.5pl1/, I made the compilation to mysql and there were problems, when running the server. / theforgottenserver to reach Loading the Groups presented the following error:
<CODE>
O / I warning: failed to load external entity "/ data / xml / groups.xml"
[Warning - groups: LoadFromXML] can not load file groups.
Info: failed to load external entity "/ data / xml / groups.xml"

ERROR Unable to loadgroups!
</CODE>
I even tried downloading other dist, more problem persists, I would like your help to solve this problem, can you help me?

Information
I use Debian 5.0 with packages: subversion autoconf automake make g + + libxml2 libxml2-dev libxml + +2.6-dev lua5.1 liblua5.1-0 liblua5.1-0-dev libboost-dev libboost-date-time-dev libboost - regex-dev libboost-thread-dev libmysql + +-dev libgmp3-dev liblua5.1-sql-mysql2 liblua5.1-sql-sqlite2 liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite-dev libsqlite3-dev mysql -common mysql-server

what's wrong???

Please help me!!!!
 
Code:
cory@cory-desktop:~/forgottenserver$ /home/cory/forgottenserver/theforgottenserver
The Forgotten Server, version 0.3.1 (Crying Damson)
A server developed by Elf, Talaturen, Lithium, Kiper, Kornholijo, Jonern & Nightmare.
Visit our forum for updates, support and resources: http://otland.net.

>> Loading config (config.lua)
> Using plaintext passwords
>> Loading RSA key
>> Starting SQL connection
>> Running Database Manager
sqlite3_step(): SQLITE ERROR: attempt to write a readonly database
sqlite3_step(): SQLITE ERROR: attempt to write a readonly database
> No tables were optimized.
>> Loading items
>> Loading vocations
>> Loading script systems
>> Loading outfits
>> Loading experience stages
>> Loading monsters
>> Loading map and spawns...
> Map size: 1000x1000.
> Map descriptions: 
Saved with Remere's Map Editor 1.1.4
SimOne MapEditor 0.5.0
> Map loading time: 1.358 seconds.
> Data loading time: 0.099 seconds.
> Unserialization time for houses: 0.003 seconds.
> Unserialization time for map: 0.18 seconds.
>> Loading administration protocol
>> Checking world type... PvP
>> Checking software version... outdated, please consider updating!
> Current version information - version: 0.3.1, patch: 2, build: 1231, timestamp: 1234289760.
> Latest version information - version: 0.3.5, patch: 1, build: 2576, timestamp: 1249584126.
>> All modules were loaded, server starting up...
sqlite3_step(): SQLITE ERROR: attempt to write a readonly database
sqlite3_step(): SQLITE ERROR: attempt to write a readonly database
sqlite3_step(): SQLITE ERROR: attempt to write a readonly database
> ERROR: Failed to save account: 1!
>> Forgotten server Online!

terminate called after throwing an instance of 'boost::system::system_error'
  what():  Address already in use
Aborted
cory@cory-desktop:~/forgottenserver$

might need to change permissions but

what is:
Code:
terminate called after throwing an instance of 'boost::system::system_error'
  what():  Address already in use
Aborted

and why is it perventing me from starting the server
 
Back
Top