• 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 Ubuntu Bug When Starts TFS (Libaries)

vvglex

New Member
Joined
Jan 2, 2015
Messages
162
Reaction score
2
Hey when i start my server i get this :( tfs 0.4

Code:
./tfs: error while loading shared libraries: libboost_filesystem.so.1.49.0: cannot open shared object file: No such file or directory

@Limos
@dominique120
 
Either recompile your server with the current libraries or install/compile boost version 1.49

Also use Debian 7, its way better.
 
Either recompile your server with the current libraries or install/compile boost version 1.49

Also use Debian 7, its way better.
i have a host that only have ubuntu :/ i am trying to recompile but get alot of errors ... so how do i compile boost version 1.49?
 
If you cant compile your own server then I really doubt you will be able to compile Boost on your own.

Best alternative now is to install boost 1.49, assuming it is still available in ubuntu repositories.
 
If you cant compile your own server then I really doubt you will be able to compile Boost on your own.

Best alternative now is to install boost 1.49, assuming it is still available in ubuntu repositories.
how do i install that?

If you cant compile your own server then I really doubt you will be able to compile Boost on your own.

Best alternative now is to install boost 1.49, assuming it is still available in ubuntu repositories.
does you know that? i can compile on my own but i get alot of errors this time :/
 
Last edited by a moderator:
Well a quick search revealed that ubuntu no longer has boost 1.49 in any of its repositories: http://pkgs.org/

Like I said before, re-compile your server instead of complicating yourself like this.
 
Well a quick search revealed that ubuntu no longer has boost 1.49 in any of its repositories: http://pkgs.org/

Like I said before, re-compile your server instead of complicating yourself like this.
getting this errors when itry to re-compile my sources
Code:
scriptmanager.cpp: In member function ‘bool ScriptManager::loadMods()’:
scriptmanager.cpp:131:23: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
   std::string s = it->leaf();
                       ^
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[1]: *** [luascript.o] Error 4
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scriptmanager.o] Error 1
make[1]: Leaving directory `/home/otsmanager/forgottenserver/sources'
make: *** [all] Error 2
root@176-31-82-125:/home/otsmanager/forgottenserver/sources# make -j `nproc`
make  all-am
make[1]: Entering directory `/home/otsmanager/forgottenserver/sources'
  CXX    luascript.o
  CXX    scriptmanager.o
  CXX    vocation.o
In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from scriptmanager.cpp:20:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 #   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
     ^
In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from luascript.cpp:21:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 #   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
     ^
scriptmanager.cpp: In member function ‘bool ScriptManager::loadMods()’:
scriptmanager.cpp:131:23: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
   std::string s = it->leaf();
                       ^
luascript.cpp: In member function ‘bool LuaInterface::loadDirectory(const string&, Npc*, bool)’:
luascript.cpp:742:23: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
   std::string s = it->leaf();
                       ^
luascript.cpp:745:59: error: no match for ‘operator+’ (operand types are ‘boost::filesystem::path’ and ‘const char [2]’)
    if(recursively && !loadDirectory(it->path().filename() + "/" + s, npc, recursively))
                                                           ^
make[1]: *** [scriptmanager.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/home/otsmanager/forgottenserver/sources'
make: *** [all] Error 2
root@176-31-82-125:/home/otsmanager/forgottenserver/sources# make -j `nproc`
make  all-am
make[1]: Entering directory `/home/otsmanager/forgottenserver/sources'
  CXX    luascript.o
  CXX    scriptmanager.o
In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from scriptmanager.cpp:20:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 #   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
     ^
In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from luascript.cpp:21:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 #   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
     ^
scriptmanager.cpp: In member function ‘bool ScriptManager::loadMods()’:
scriptmanager.cpp:131:23: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
   std::string s = it->leaf();
                       ^
luascript.cpp: In member function ‘bool LuaInterface::loadDirectory(const string&, Npc*, bool)’:
luascript.cpp:742:23: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
   std::string s = it->leaf();
                       ^
luascript.cpp:745:59: error: no match for ‘operator+’ (operand types are ‘boost::filesystem::path’ and ‘const char [2]’)
    if(recursively && !loadDirectory(it->path().filename() + "/" + s, npc, recursively))
 
Where you see "has no member named leaf()" change "leaf()" with "path().filename().string()"

Also, just use "make" instead of "make -j `nproc`" because it looks like you are running out of memory
 
Where you see "has no member named leaf()" change "leaf()" with "path().filename().string()"

Also, just use "make" instead of "make -j `nproc`" because it looks like you are running out of memory
getting this here again :(
Code:
  CXX      luascript.o
In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from luascript.cpp:21:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 #   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
     ^
luascript.cpp: In member function ‘bool LuaInterface::loadDirectory(const string&, Npc*, bool)’:
luascript.cpp:742:23: error: ‘class boost::filesystem::directory_entry’ has no member named ‘leaf’
   std::string s = it->leaf();
                       ^
luascript.cpp:745:59: error: no match for ‘operator+’ (operand types are ‘boost::filesystem::path’ and ‘const char [2]’)
    if(recursively && !loadDirectory(it->path().filename() + "/" + s, npc, recursively))
                                                           ^
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/home/otsmanager/forgottenserver/sources'
make: *** [all] Error 2
root@176-31-82-125:/home/otsmanager/forgottenserver/sources#
 
luacript.cpp: line 745: Replace that whole line with this:

Code:
if(recursively && !loadDirectory((it->path() / s).native(), npc, recursively))

I already told you how to fix all other errors.
 
luacript.cpp: line 745: Replace that whole line with this:

Code:
if(recursively && !loadDirectory((it->path() / s).native(), npc, recursively))

I already told you how to fix all other errors.
i got this error now :( thanks that you trying to help.
Code:
make[1]: Entering directory `/home/otsmanager/forgottenserver/sources'
  CXX      luascript.o
In file included from /usr/include/boost/filesystem.hpp:15:0,
                 from luascript.cpp:21:
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
 #   error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
     ^
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/home/otsmanager/forgottenserver/sources'
make: *** [all] Error 2
 
Do the following:
1. execute: nano /usr/include/boost/filesystem.hpp
2. go to line 16 and change "!=3" to "!=2"
3. save
4. recompile
 
Do the following:
1. execute: nano /usr/include/boost/filesystem.hpp
2. go to line 16 and change "!=3" to "!=2"
3. save
4. recompile
dont have anything !3 there
Code:
//  boost/filesystem.hpp  -----------------------------------------------------$

//  Copyright Beman Dawes 2010

//  Distributed under the Boost Software License, Version 1.0.
//  See http://www.boost.org/LICENSE_1_0.txt

//  Library home page: http://www.boost.org/libs/filesystem

//-----------------------------------------------------------------------------$

#ifndef BOOST_FILESYSTEM_FILESYSTEM_HPP
#define BOOST_FILESYSTEM_FILESYSTEM_HPP

#  include <boost/filesystem/config.hpp>
#  include <boost/filesystem/path.hpp>
#  include <boost/filesystem/operations.hpp>
#  include <boost/filesystem/convenience.hpp>
 
Its "/usr/include/boost/filesystem/config.hpp".

I got confused. Its been some time since I last fixed bugs for these ancient and problematic revs.
 
Its "/usr/include/boost/filesystem/config.hpp".

I got confused. Its been some time since I last fixed bugs for these ancient and problematic revs.
thanks you are the best :)

Its "/usr/include/boost/filesystem/config.hpp".

I got confused. Its been some time since I last fixed bugs for these ancient and problematic revs.
but now i cant login to my server :/ error 10061

Its "/usr/include/boost/filesystem/config.hpp".

I got confused. Its been some time since I last fixed bugs for these ancient and problematic revs.
you know how to fix that?

Anyone can help?

@dominique120 you should be a god if you can help me with this .... i have tried everyting in so many hours i cant login to my server only geting 10061 :( please help me. you are my last hope

Please @dominique120 or @Limos you are the only people i know that maybe can help me :(
 
Last edited by a moderator:
I suggest you create a new thread so hat you get more attention.

Also, are your ports forwarded? What ip are you using in the IP changer? What IP are you using in config.lua?
 
I suggest you create a new thread so hat you get more attention.

Also, are your ports forwarded? What ip are you using in the IP changer? What IP are you using in config.lua?
thanks for your attention, both port 7171 and 7172 are open :) is use tibia multi ip changer by asprate (the homer changer :p ) i use this ip 176.31.82.125 you can access website with it
 
@dominique120

Code:
CXX      trashholder.o
  CXX      waitlist.o
  CXX      weapons.o
  CXX      vocation.o
  CXXLD    theforgottenserver
/usr/bin/ld: //usr/local/lib/liblua.a(loadlib.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:455: recipe for target 'theforgottenserver' failed
make[1]: *** [theforgottenserver] Error 1
make[1]: Leaving directory '/home/sources/sources'
Makefile:397: recipe for target 'all' failed
make: *** [all] Error 2
 
Back
Top