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

srry but i cant isntall some libreries the compilation said



Code:
/tfs/build$ cmake ..
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test COMPILER_KNOWS_CXX11
-- Performing Test COMPILER_KNOWS_CXX11 - Success
-- Performing Test COMPILER_KNOWS_STDLIB
-- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/include/x86_64-linux-gnu 
-- MySQL Include dir: /usr/include/mysql  library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: mysqlclient
-- Could NOT find LuaJIT (missing:  LUA_LIBRARIES LUA_INCLUDE_DIR)
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so 
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   system
-- Configuring done
-- Generating done
-- Build files have been written to:



and i got this errors

- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/include/x86_64-linux-gnu
-- MySQL Include dir: /usr/include/mysql library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: mysqlclient
-- Could NOT find LuaJIT (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so

can anyone tellme how to install that libraries? tank u so much
 
srry but i cant isntall some libreries the compilation said

and i got this errors

- Performing Test COMPILER_KNOWS_STDLIB - Failed
-- Found GMP: /usr/include/x86_64-linux-gnu
-- MySQL Include dir: /usr/include/mysql library dir: /usr/lib/x86_64-linux-gnu
-- MySQL client libraries: mysqlclient
-- Could NOT find LuaJIT (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
-- Found Lua: /usr/lib/x86_64-linux-gnu/liblua5.2.so;/usr/lib/x86_64-linux-gnu/libm.so

can anyone tellme how to install that libraries? tank u so much

For tfs 1.0 you need another tutorial, follow this one: https://github.com/otland/forgottenserver/wiki/Compiling-on-Debian-GNU-Linux
 
When I use make:
root@SAIL:~/source# make
make all-am
make[1]: Entering directory `/root/source'
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 luascript .o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
In file included from /usr/include/boost/filesystem/v3/config.hpp:29:0,
from /usr/include/boost/filesystem.hpp:34,
from luascript.cpp:21:
/usr/include/boost/system/api_config.hpp:28:5: error: #error user defined BOOST_POSIX_API or BOOST_WINDOWS_AP I not supported
luascript.cpp: In member function 'bool LuaScriptInterface::loadDirectory(const string&, Npc*)':
luascript.cpp:719:23: error: 'class boost::filesystem3::directory_entry' has no member named 'leaf'
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/root/source'
make: *** [all] Error 2
 
Last edited:
root@localhost:/etc/apt# apt-get install libboost1.42-all-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
cpp is already the newest version.
cpp set to manually installed.
make is already the newest version.
make set to manually installed.
zlib1g is already the newest version.
gcc is already the newest version.
gcc set to manually installed.
subversion is already the newest version.
g++ is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
g++ : Depends: g++-4.9 (>= 4.6.4-1~) but it is not going to be installed
libboost1.42-all-dev : Depends: libboost1.42-dev but it is not going to be installed
Depends: libboost-date-time1.42-dev but it is not going to be installed
Depends: libboost-filesystem1.42-dev but it is not going to be installed
Depends: libboost-graph1.42-dev but it is not going to be installed
Depends: libboost-graph-parallel1.42-dev but it is not going to be installed
Depends: libboost-iostreams1.42-dev but it is not going to be installed
Depends: libboost-math1.42-dev but it is not going to be installed
Depends: libboost-mpi1.42-dev but it is not going to be installed
Depends: libboost-mpi-python1.42-dev but it is not going to be installed
Depends: libboost-program-options1.42-dev but it is not going to be installed
Depends: libboost-python1.42-dev but it is not going to be installed
Depends: libboost-regex1.42-dev but it is not going to be installed
Depends: libboost-serialization1.42-dev but it is not going to be installed
Depends: libboost-signals1.42-dev but it is not going to be installed
Depends: libboost-system1.42-dev but it is not going to be installed
Depends: libboost-test1.42-dev but it is not going to be installed
Depends: libboost-thread1.42-dev but it is not going to be installed
Depends: libboost-wave1.42-dev but it is not going to be installed
liblua5.1-0-dev : Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: libreadline-dev but it is not going to be installed
Recommends: libtool but it is not going to be installed
liblua50-dev : Depends: libc6-dev but it is not going to be installed or
libc-dev
liblualib50-dev : Depends: libc6-dev but it is not going to be installed or
libc-dev
libsqlite0-dev : Depends: libc6-dev but it is not going to be installed
libsqlite3-dev : Depends: libsqlite3-0 (= 3.7.3-1) but 3.8.7.1-1 is to be installed
Depends: libc6-dev but it is not going to be installed
libxml++2.6-dev : Depends: libglibmm-2.4-dev (>= 2.4.0) but it is not going to be installed
libxml2-dev : Depends: libxml2 (= 2.7.8.dfsg-2+squeeze8) but 2.9.1+dfsg1-4 is to be installed
mysql-client-5.1 : Depends: libdbi-perl but it is not going to be installed
Depends: libdbd-mysql-perl (>= 1.2202) but it is not going to be installed
mysql-server-5.1 : Depends: libdbi-perl but it is not going to be installed
zlib1g-dev : Depends: zlib1g (= 1:1.2.3.4.dfsg-3) but 1:1.2.8.dfsg-2+b1 is to be installed
Depends: libc6-dev but it is not going to be installed or
libc-dev
E: Unable to correct problems, you have held broken packages.
 
@dominique120



Can you tell me which debian i could use following your tutorial?

+

Getting error while trying to install packets


E: Unable to locate package libboost1.41-dev
E: Couldn't find any package by regex 'libboost1.41-dev'
E: Unable to locate package libboost-system1.41-dev
E: Couldn't find any package by regex 'libboost-system1.41-dev'
E: Unable to locate package libboost-filesystem1.41-dev
E: Couldn't find any package by regex 'libboost-filesystem1.41-dev'
E: Unable to locate package libboost-date-time1.41-dev
E: Couldn't find any package by regex 'libboost-date-time1.41-dev'
E: Unable to locate package libboost-regex1.41-dev
E: Couldn't find any package by regex 'libboost-regex1.41-dev'
E: Unable to locate package libboost-thread1.41-dev
E: Couldn't find any package by regex 'libboost-thread1.41-dev'
E: Package 'mysql-client-5.1' has no installation candidate
E: Package 'mysql-server-5.1' has no installation candidate
E: Unable to locate package libcrypto++8
E: Couldn't find any package by regex 'libcrypto++8'
 
Guys please i want source For aries 0.4.0 or 0.4.5 or anyone fixing the magebomb and party From the aries
 
Back
Top