• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

blad przy kompilacji ubuntiu 10.04

sir2101818

Banned User
Joined
Apr 2, 2010
Messages
19
Reaction score
0
Location
mielec
Witam mam problem przy kompilacji a oto on:


PHP:
mv -f .deps/vocation.Tpo .deps/vocation.Po
g++ -I/usr/include/libxml2  -I/usr/include/lua5.1    -D__USE_MYSQL__ -D__USE_SQL                                                                             ITE__    -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -g -O1                                                                                -o theforgottenserver account.o actions.o  allocator.o baseevents.o beds.o ch                                                                             at.o combat.o condition.o configmanager.o connection.o container.o creature.o cr                                                                             eatureevent.o cylinder.o database.o databasemanager.o databasemysql.o databasesq                                                                             lite.o   depot.o exception.o fileloader.o game.o  globalevent.o gui.o house.o ho                                                                             usetile.o inputbox.o ioban.o ioguild.o iologindata.o iomap.o iomapserialize.o it                                                                             em.o items.o luascript.o mailbox.o map.o md5.o monster.o monsters.o movement.o n                                                                             etworkmessage.o npc.o otserv.o outfit.o outputmessage.o party.o playerbox.o play                                                                             er.o position.o protocol.o protocolgame.o protocollogin.o protocolold.o quests.o                                                                              raids.o rsa.o scheduler.o scriptmanager.o server.o sha1.o spawn.o spells.o stat                                                                             us.o talkaction.o tasks.o teleport.o textlogger.o thing.o tile.o tools.o trashho                                                                             lder.o waitlist.o weapons.o vocation.o -llua5.1   -lsqlite3 -lmysqlclient -lboos                                                                             t_date_time-mt -lboost_system-mt -lboost_regex-mt -lgmp  -lxml2
connection.o: In function `__static_initialization_and_destruction_0':
/usr/local/include/boost/system/error_code.hpp:172: undefined reference to `boos                                                                             t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                                                             t::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 `boos                                                                             t::system::get_posix_category()'
/usr/local/include/boost/system/error_code.hpp:175: undefined reference to `boos                                                                             t::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 `boos                                                                             t::system::get_posix_category()'
otserv.o:/usr/local/include/boost/system/error_code.hpp:175: more undefined refe                                                                             rences to `boost::system::get_posix_category()' follow
collect2: ld returned 1 exit status
make[1]: *** [theforgottenserver] Błąd 1
make[1]: Opuszczenie katalogu `/home/desktop/tfs'
make: *** [all] Błąd 2

Co jest grane jakiś libbost nie jest wgrany??

dzięki
 

Attachments

Last edited:
może spróbuj to


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
 
Chodzi ci dokładnie o boost asio tak?? Jeśli tak to byłaby możliwość podrzucenia jakiegoś linku do nowszego i jak stary usunąć??
 
Chodzi ci dokładnie o boost asio tak?? Jeśli tak to byłaby możliwość podrzucenia jakiegoś linku do nowszego i jak stary usunąć??

chodzi o libboost, pobierz najnowsza wersje z repo squeeze i bedzie dzialac
 
a to repo squeeze to jest jakaś strona?? bo jak w google wyszukuje to nic dokładnego nie pokazuje..;/
Chyba że to rezystoria;P ale nie wiem za bardzo które trzeba dokładnie wkleić żeby były dobre.

a oto moje libboost niektóre odinstalowałem przed chwilą
p boost-build - cross-platform build system for C++ projects
p boostpythongenerator - Binding source code generator for Boost::Python
p boostpythongenerator-dbg - Debugging symbols for boostpythongenerator
p libboost-all-dev - Boost C++ Libraries development files (ALL, default
pB libboost-date-time-dev - date-time libraries based on generic programming (d
ipA libboost-date-time1.40-dev - set of date-time libraries based on generic program
ipA libboost-date-time1.40.0 - set of date-time libraries based on generic program
p libboost-dbg - Boost C++ Libraries with debug symbols
pB libboost-dev - Boost C++ Libraries development files (default vers
p libboost-doc - Boost C++ Libraries documentation (default version)
pB libboost-filesystem-dev - filesystem operations in C++ (default version)
ipA libboost-filesystem1.40-dev - filesystem operations (portable paths, iteration ov
i A libboost-filesystem1.40.0 - filesystem operations (portable paths, iteration ov
p libboost-graph-dev - generic graph components and algorithms in C++ (def
ipA libboost-graph1.40-dev - generic graph components and algorithms in C++
idA libboost-graph1.40.0 - generic graph components and algorithms in C++
p libboost-iostreams-dev - Boost.Iostreams Library development files (default
idA libboost-iostreams1.40-dev - Boost.Iostreams Library development files
idA libboost-iostreams1.40.0 - Boost.Iostreams Library
p libboost-math-dev - Boost.Math Library development files (default versi
idA libboost-math1.40-dev - Boost.Math Library development files
idA libboost-math1.40.0 - Boost.Math Library
p libboost-mpi-dev - C++ interface to the Message Passing Interface (MPI
p libboost-program-options-dev - program options library for C++ (default version)
idA libboost-program-options1.40-dev - program options library for C++
idA libboost-program-options1.40.0 - program options library for C++
p libboost-python-dev - Boost.Python Library development files (default ver
idA libboost-python1.40-dev - Boost.Python Library development files
idA libboost-python1.40.0 - Boost.Python Library
iB libboost-regex-dev - regular expression library for C++ (default version
ipA libboost-regex1.40-dev - regular expression library for C++
ip libboost-regex1.40.0 - regular expression library for C++
p libboost-serialization-dev - serialization library for C++ (default version)
iBA libboost-serialization1.40-dev - serialization library for C++
i A libboost-serialization1.40.0 - serialization library for C++
pi libboost-signals-dev - managed signals and slots library for C++ (default
iBA libboost-signals1.40-dev - managed signals and slots library for C++
i A libboost-signals1.40.0 - managed signals and slots library for C++
pi libboost-system-dev - Operating system (e.g. diagnostics support) library
iBA libboost-system1.40-dev - Operating system (e.g. diagnostics support) library
i A libboost-system1.40.0 - Operating system (e.g. diagnostics support) library
p libboost-test-dev - components for writing and executing test suites (d
idA libboost-test1.40-dev - components for writing and executing test suites
idA libboost-test1.40.0 - components for writing and executing test suites
pB libboost-thread-dev - portable C++ multi-threading (default version)
ipA libboost-thread1.40-dev - portable C++ multi-threading
ipA libboost-thread1.40.0 - portable C++ multi-threading
p libboost-wave-dev - C99/C++ preprocessor library (default version)
idA libboost-wave1.40-dev - C99/C++ preprocessor library
idA libboost-wave1.40.0 - C99/C++ preprocessor library
p libboost1.40-all-dev - Boost C++ Libraries development files (ALL)
p libboost1.40-dbg - Boost C++ Libraries with debug symbols
ip libboost1.40-dev - Boost C++ Libraries development files
p libboost1.40-doc - Boost.org libraries documentation

dobra sciągnałem boost_1_49_0 i teraz co dalej jaką komendę użyć żeby to zainstalować.
 
Last edited:
a to repo squeeze to jest jakaś strona?? bo jak w google wyszukuje to nic dokładnego nie pokazuje..;/
Chyba że to rezystoria;P ale nie wiem za bardzo które trzeba dokładnie wkleić żeby były dobre.

a oto moje libboost niektóre odinstalowałem przed chwilą


dobra sciągnałem boost_1_49_0 i teraz co dalej jaką komendę użyć żeby to zainstalować.

rozpakuj pliki, przeczytaj readme i je skompiluj
 
# Copyright Vladimir Prus 2002-2006.
# Copyright Dave Abrahams 2005-2006.
# Copyright Rene Rivera 2005-2007.
# Copyright Douglas Gregor 2005.
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

# Usage:
#
# bjam [options] [properties] [install|stage]
#
# Builds and installs Boost.
#
# Targets and Related Options:
#
# install Install headers and compiled library files to the
# ======= configured locations (below).
#
# --prefix=<PREFIX> Install architecture independent files here.
# Default; C:\Boost on Win32
# Default; /usr/local on Unix. Linux, etc.
#
# --exec-prefix=<EPREFIX> Install architecture dependent files here.
# Default; <PREFIX>
#
# --libdir=<DIR> Install library files here.
# Default; <EPREFIX>/lib
#
# --includedir=<HDRDIR> Install header files here.
# Default; <PREFIX>/include
#
# stage Build and install only compiled library files
# ===== to the stage directory.
#
# --stagedir=<STAGEDIR> Install library files here
# Default; ./stage
#
# Other Options:
#
# --build-type=<type> Build the specified pre-defined set of variations
# of the libraries. Note, that which variants get
# built depends on what each library supports.
#
# minimal (default) - Builds a minimal set of
# variants. On Windows, these are static
# multithreaded libraries in debug and release
# modes, using shared runtime. On Linux, these
# are static and shared multithreaded libraries
# in release mode.
#
# complete - Build all possible variations.
#
# --build-dir=DIR Build in this location instead of building
# within the distribution tree. Recommended!
#
# --show-libraries Displays the list of Boost libraries that require
# build and installation steps, then exit.
#
# --layout=<layout> Determines whether to choose library names
# and header locations such that multiple
# versions of Boost or multiple compilers can
# be used on the same system.
#
# versioned - Names of boost binaries
# include the Boost version number, name and
# version of the compiler and encoded build
# properties. Boost headers are installed in a
# subdirectory of <HDRDIR> whose name contains
# the Boost version number.
#
# tagged -- Names of boost binaries include the
# encoded build properties such as variant and
# threading, but do not including compiler name
# and version, or Boost version. This option is
# useful if you build several variants of Boost,
# using the same compiler.
#
# system - Binaries names do not include the
# Boost version number or the name and version
# number of the compiler. Boost headers are
# installed directly into <HDRDIR>. This option
# is intended for system integrators who are
# building distribution packages.
#
# The default value is 'versioned' on Windows, and
# 'system' on Unix.
#
# --buildid=ID Adds the specified ID to the name of built
# libraries. The default is to not add anything.
#
# --python-buildid=ID Adds the specified ID to the name of built
# libraries that depend on Python. The default
# is to not add anything. This ID is added in
# addition to --buildid.
#
#
# --help This message.
#
# --with-<library> Build and install the specified <library>
# If this option is used, only libraries
# specified using this option will be built.
#
# --without-<library> Do not build, stage, or install the specified
# <library>. By default, all libraries are built.
#
# Properties:
#
# toolset=toolset Indicates the toolset to build with.
#
# variant=debug|release Select the build variant
#
# link=static|shared Whether to build static or shared libraries
#
# threading=single|multi Whether to build single or multithreaded binaries
#
# runtime-link=static|shared
# Whether to link to static or shared C and C++ runtime.
#

# TODO:
# - handle boost version
# - handle python options such as pydebug

import boostcpp ;
import package ;

import sequence ;
import xsltproc ;
import set ;
import path ;

path-constant BOOST_ROOT : . ;
constant BOOST_VERSION : 1.49.0 ;
constant BOOST_JAMROOT_MODULE : $(__name__) ;

boostcpp.set-version $(BOOST_VERSION) ;

project boost
: requirements <include>.
# Disable auto-linking for all targets here, primarily because it caused
# troubles with V2.
<define>BOOST_ALL_NO_LIB=1
# Used to encode variant in target name. See the 'tag' rule below.
<tag>@$(__name__).tag
<conditional>@handle-static-runtime
# The standard library Sun compilers use by default has no chance
# of working with Boost. Override it.
<toolset>sun:<stdlib>sun-stlport
# Comeau does not support shared lib
<toolset>como:<link>static
<toolset>como-linux:<define>_GNU_SOURCE=1
# When building docs within Boost, we want the standard Boost style
<xsl:param>boost.defaults=Boost
: usage-requirements <include>.
: build-dir bin.v2
;

# This rule is called by Boost.Build to determine the name of target. We use it
# to encode the build variant, compiler name and boost version in the target
# name.
#
rule tag ( name : type ? : property-set )
{
return [ boostcpp.tag $(name) : $(type) : $(property-set) ] ;
}

rule handle-static-runtime ( properties * )
{
# Using static runtime with shared libraries is impossible on Linux,
# and dangerous on Windows. Therefore, we disallow it. This might
# be drastic, but it was disabled for a while with nobody complaining.

# For CW, static runtime is needed so that std::locale works.
if <link>shared in $(properties) && <runtime-link>static in $(properties) &&
! ( <toolset>cw in $(properties) )
{
ECHO "error: link=shared together with runtime-link=static is not allowed" ;
ECHO "error: such property combination is either impossible " ;
ECHO "error: or too dangerious to be of any use" ;
EXIT ;
}
}

all-libraries = [ MATCH .*libs/(.*)/build/.* : [ glob libs/*/build/Jamfile.v2 ]
[ glob libs/*/build/Jamfile ] ]
;

all-libraries = [ sequence.unique $(all-libraries) ] ;
# The function_types library has a Jamfile, but it's used for maintenance
# purposes, there's no library to build and install.
all-libraries = [ set.difference $(all-libraries) : function_types ] ;

# Setup convenient aliases for all libraries.

local rule explicit-alias ( id : targets + )
{
alias $(id) : $(targets) ;
explicit $(id) ;
}

# First, the complicated libraries: where the target name in Jamfile is
# different from its directory name.
explicit-alias prg_exec_monitor : libs/test/build//boost_prg_exec_monitor ;
explicit-alias test_exec_monitor : libs/test/build//boost_test_exec_monitor ;
explicit-alias unit_test_framework : libs/test/build//boost_unit_test_framework ;
explicit-alias bgl-vis : libs/graps/build//bgl-vis ;
explicit-alias serialization : libs/serialization/build//boost_serialization ;
explicit-alias wserialization : libs/serialization/build//boost_wserialization ;
for local l in $(all-libraries)
{
if ! $(l) in test graph serialization
{
explicit-alias $(l) : libs/$(l)/build//boost_$(l) ;
}
}

alias headers : : : : <include>. ;
explicit headers ;

# Make project ids of all libraries known.
for local l in $(all-libraries)
{
use-project /boost/$(l) : libs/$(l)/build ;
}

# This rule should be called from libraries' Jamfiles and will create two
# targets, "install" and "stage", that will install or stage that library. The
# --prefix option is respected, but --with and --without options, naturally, are
# ignored.
#
# - libraries -- list of library targets to install.
#
rule boost-install ( libraries * )
{
package.install install
: <dependency>/boost//install-proper-headers $(install-requirements)
: # No binaries
: $(libraries)
: # No headers, it is handled by the dependency.
;

install stage : $(libraries) : <location>$(BOOST_STAGE_LOCATE) ;

module [ CALLER_MODULE ]
{
explicit stage ;
explicit install ;
}
}

headers =
# The .SUNWCCh files are present in tr1 include directory and have to be installed,
# see Boost mailing page: Re: [boost] [boost 1.34 beta][function][pool][signals][test][tr1] Missing headers files on install!! (was: MSVC 8 installation issue)
[ path.glob-tree $(BOOST_ROOT)/boost : *.hpp *.ipp *.h *.inc *.SUNWCCh : CVS .svn ]
[ path.glob-tree $(BOOST_ROOT)/boost/compatibility/cpp_c_headers : c* : CVS .svn ]
[ path.glob boost/tr1/tr1 : * : bcc32 sun CVS .svn ]
;

# Declare special top-level targets that build and install the desired variants
# of the libraries.
boostcpp.declare-targets $(all-libraries) : $(headers) ;
'
ale nie wiem mam do wrzucić do /usr/local używając np. komendy "cp -ar boost_asio_1_0_0/boost/* /usr/include/boost/" nie mam pojęcia jak to zrobić jakbyś mógł coś poradzić lub odrazu pełne komendy które powinienem wpisać..
Tak poza tym i tak wielkie dzięki za dotychczasową pomoc.
 
'
ale nie wiem mam do wrzucić do /usr/local używając np. komendy "cp -ar boost_asio_1_0_0/boost/* /usr/include/boost/" nie mam pojęcia jak to zrobić jakbyś mógł coś poradzić lub odrazu pełne komendy które powinienem wpisać..
Tak poza tym i tak wielkie dzięki za dotychczasową pomoc.

nie musisz instalowac zadnego boost asio tylko libboosty
 
no wiem to był tylko przykład.
Chodzi mi oto że mam te boost_1_49_0 no i jak zrobie np tak: cp -ar boost1.49.0/boost/* /usr/local/~~ no i takie coś bo chyba trzeba gdzieś w tym kiedrunnku iść i gdzie to wrzucić do którego folderu bo jest w usr//local/ pare.
 
dobra mniej więcej już wiem jak zainstalować, ale jest problem w jednym nie mogę zainstalować ponieważ jest już zainstalowana starsza wersja i jak ją usunąć aby wgrać nową??
 
to jest serwer dedykowany z kimsufi i da się to zrobić?? jeśli tak to jak to zrobić.. bo w sumie to by się przydało bo trochę napewno namieszane jest
 
jak coś to sprawdź to
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

i mówię: nie ma problemu!
 
Back
Top