You are not logged in.

#1 2008-07-22 23:32:51

vexxor
Member
Registered: 2008-07-17
Posts: 45

Install of btg

Hello,

I'm stuck with the installation of btg. I'm following the instructions from: http://btg.berlios.de/

this is the output of configure:


  $ ./configure --prefix=/usr --enable-session-saving --enable-cli --with-boost-date-time=mt --with-boost-filesystem=mt --with-boost-thread=mt --with-boost-regex=mt --with-rblibtorrent --with-boost-program-options=mt --enable-www --enable-gui


<snip>

configure:21040: result: no
configure:20981: checking for main in -lboost_date_time-mt
configure:21010: g++ -o conftest -g -O2 -pthread  -I/usr/include -I/usr/include  -L/usr/lib -L/usr/lib conftest.cpp -lboost_date_time-mt    >&5
configure:21017: $? = 0
configure:21040: result: yes
configure:21101: checking whether the Boost::Thread library is available
configure:21143: g++ -c -pthread -g -O2 -pthread  -I/usr/include -I/usr/include conftest.cpp >&5
configure:21150: $? = 0
configure:21173: result: yes
configure:21363: checking for exit in -lmt
configure:21428: result: no
configure:21363: checking for exit in -lboost_thread-mt
configure:21398: g++ -o conftest -g -O2 -pthread  -I/usr/include -I/usr/include  -L/usr/lib -L/usr/lib conftest.cpp -lboost_thread-mt    >&5
configure:21405: $? = 0
configure:21428: result: yes
configure:21495: checking whether the Boost::Program_Options library is available
configure:21529: g++ -c -g -O2 -pthread  -I/usr/include -pthread -I/usr/include conftest.cpp >&5
configure:21536: $? = 0
configure:21558: result: yes
configure:21729: checking for main in -lmt
configure:21788: result: no
configure:21729: checking for main in -lboost_program_options-mt
configure:21758: g++ -o conftest -g -O2 -pthread  -I/usr/include -pthread -I/usr/include  -L/usr/lib -L/usr/lib conftest.cpp -lboost_program_options-mt    >&5
configure:21765: $? = 0
configure:21788: result: yes
configure:21907: error: Cannot find Rasterbar Libtorrent headers

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_cxx_exceptions=yes
ac_cv_cxx_have_ios_base=yes
ac_cv_cxx_have_sstream=yes
ac_cv_cxx_have_std=yes
ac_cv_cxx_have_string_clear=yes
ac_cv_cxx_have_vector_at=no
ac_cv_cxx_namespaces=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_CYBERLINK_CFLAGS_set=
ac_cv_env_CYBERLINK_CFLAGS_value=
ac_cv_env_CYBERLINK_LIBS_set=
ac_cv_env_CYBERLINK_LIBS_value=
ac_cv_env_GTKMM_CFLAGS_set=
ac_cv_env_GTKMM_CFLAGS_value=
ac_cv_env_GTKMM_LIBS_set=
ac_cv_env_GTKMM_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBTORRENT_CFLAGS_set=
ac_cv_env_LIBTORRENT_CFLAGS_value=
ac_cv_env_LIBTORRENT_LIBS_set=
ac_cv_env_LIBTORRENT_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PLOTMM_CFLAGS_set=
ac_cv_env_PLOTMM_CFLAGS_value=
ac_cv_env_PLOTMM_LIBS_set=
ac_cv_env_PLOTMM_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_semop=yes
ac_cv_func_semtimedop=yes
ac_cv_header_dlfcn_h=yes
ac_cv_header_expat_h=yes
ac_cv_header_fstream=yes
ac_cv_header_fstream_h=no
ac_cv_header_inttypes_h=yes
ac_cv_header_ios_base=no
ac_cv_header_iostream=yes
ac_cv_header_iostream_h=no
ac_cv_header_memory_h=yes
ac_cv_header_ostream=yes
ac_cv_header_ostream_h=no
ac_cv_header_sstream=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_streambuf=yes
ac_cv_header_streambuf_h=no
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_lib_boost_date_time_mt___main=yes
ac_cv_lib_boost_filesystem_mt___exit=yes
ac_cv_lib_boost_iostreams_mt___exit=yes
ac_cv_lib_boost_program_options_mt___main=yes
ac_cv_lib_boost_thread_mt___exit=yes
ac_cv_lib_mt___exit=no
ac_cv_lib_mt___main=no
ac_cv_objext=o
ac_cv_path_BASH=/bin/sh
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_FGREP='/bin/grep -F'
ac_cv_path_GREP=/bin/grep
ac_cv_path_LIBGNUTLS_CONFIG=/usr/bin/libgnutls-config
ac_cv_path_SED=/bin/sed
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_gcc_c_o=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_verbose_terminate_handler=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_func_iconv=yes
am_cv_lib_iconv=no
am_cv_prog_cc_stdc=
am_cv_proto_iconv='extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);'
am_cv_proto_iconv_arg1=
ax_cv_boost_date_time=yes
ax_cv_boost_filesystem=yes
ax_cv_boost_iostreams=yes
ax_cv_boost_program_options=yes
ax_cv_boost_system=no
ax_cv_boost_thread=yes
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_LDCXX=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=no
lt_cv_prog_compiler_static_works=yes
lt_cv_prog_compiler_static_works_CXX=yes
lt_cv_prog_gnu_ld=yes
lt_cv_prog_gnu_ldcxx=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[     ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][     ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/  {"\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\) $/  {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/  {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/  {"lib\2", (void *) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_max_cmd_len=1572864

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/vexxor/builds/btg/btg-0.9.8/missing --run aclocal-1.10'
AGAR_CFLAGS=''
AGAR_CONFIG=''
AGAR_LIBS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/vexxor/builds/btg/btg-0.9.8/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /home/vexxor/builds/btg/btg-0.9.8/missing --run autoconf'
AUTOHEADER='${SHELL} /home/vexxor/builds/btg/btg-0.9.8/missing --run autoheader'
AUTOMAKE='${SHELL} /home/vexxor/builds/btg/btg-0.9.8/missing --run automake-1.10'
AWK='gawk'
BASH='/bin/sh'
BOOST_CPPFLAGS='-pthread -I/usr/include'
BOOST_DATE_TIME_LIB='-lboost_date_time-mt'
BOOST_FILESYSTEM_LIB='-lboost_filesystem-mt'
BOOST_IOSTREAMS_LIB='-lboost_iostreams-mt'
BOOST_PROGRAM_OPTIONS_LIB='-lboost_program_options-mt'
BOOST_SYSTEM_LIB=''
BOOST_THREAD_LIB='-lboost_thread-mt'
BTG_BUILD='0.9.8'
BTG_DEBUG=''
BTG_INTERNAL_XMLRPC='1'
BTG_OPTION_EVENTCALLBACK=''
BTG_OPTION_SAVESESSIONS=''
BTG_OPTION_UPNP=''
BTG_OPTION_URL=''
BTG_OPTION_USECYBERLINK=''
BTG_OPTION_USELTUPNP=''
BTG_REV='TRUNK'
BTG_UNITTEST_FALSE=''
BTG_UNITTEST_TRUE=''
BUILDCLI_FALSE=''
BUILDCLI_TRUE=''
BUILDCOMMANDLIST_FALSE=''
BUILDCOMMANDLIST_TRUE=''
BUILDCYBERLINK_FALSE=''
BUILDCYBERLINK_TRUE=''
BUILDEVENTCALLBACK_FALSE=''
BUILDEVENTCALLBACK_TRUE=''
BUILDGUI_FALSE=''
BUILDGUI_TRUE=''
BUILDINTERNALPLOTMM_FALSE=''
BUILDINTERNALPLOTMM_TRUE=''
BUILDINTERNALXMLRPC_FALSE='#'
BUILDINTERNALXMLRPC_TRUE=''
BUILDLTUPNP_FALSE=''
BUILDLTUPNP_TRUE=''
BUILDSESSIONSAVING_FALSE=''
BUILDSESSIONSAVING_TRUE=''
BUILDUPNP_FALSE=''
BUILDUPNP_TRUE=''
BUILDURL_FALSE=''
BUILDURL_TRUE=''
BUILDVIEWER_FALSE=''
BUILDVIEWER_TRUE=''
BUILDWWW_FALSE=''
BUILDWWW_TRUE=''
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-pthread -g -O2'
CPP='gcc -E'
CPPFLAGS='-pthread  -I/usr/include'
CPPUNIT_CFLAGS=''
CPPUNIT_CONFIG=''
CPPUNIT_LIBS=''
CURSES_LIB=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYBERLINK_CFLAGS=''
CYBERLINK_LIBS=''
CYGPATH_W='echo'
DEBUG_CFLAGS=''
DEBUG_CXXFLAGS=''
DEFS=''
DEPDIR='.deps'
DIALOG=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
FGREP='/bin/grep -F'
GENBTGCONFIG_FALSE=''
GENBTGCONFIG_TRUE=''
GREP='/bin/grep'
GTKMM_CFLAGS=''
GTKMM_LIBS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/usr/bin/ld'
LDFLAGS=' -L/usr/lib'
LIBCURL=''
LIBCURL_CPPFLAGS=''
LIBGNUTLS_CFLAGS='-I/usr/include -I/usr/include'
LIBGNUTLS_CONFIG='/usr/bin/libgnutls-config'
LIBGNUTLS_LIBS='-L/usr/lib -lgnutls -L/usr/lib -ltasn1 -lgcrypt -lgpg-error'
LIBICONV=''
LIBOBJS=''
LIBS=' '
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIBTORRENT_CFLAGS=''
LIBTORRENT_LIBS=''
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/vexxor/builds/btg/btg-0.9.8/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NM='/usr/bin/nm -B'
NMEDIT=''
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='btg'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PLOTMM_CFLAGS=''
PLOTMM_CXXFLAGS=''
PLOTMM_LDFLAGS=''
PLOTMM_LIBS=''
PTHREAD_CC='gcc'
PTHREAD_CFLAGS='-pthread'
PTHREAD_LIBS=''
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
SVNVERSION=''
VERSION='0.9.8'
XMLRPC_CFLAGS=''
XMLRPC_LDFLAGS=''
_libcurl_config=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_DUMPBIN=''
acx_pthread_config=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/vexxor/builds/btg/btg-0.9.8/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "btg"
#define VERSION "0.9.8"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define STDC_HEADERS 1
#define HAVE_SEMOP 1
#define HAVE_SEMTIMEDOP 1
#define HAVE_EXECINFO 1
#define HAVE_PTHREAD 1
#define HAVE_NAMESPACES /**/
#define HAVE_SSTREAM 1
#define HAVE_STD /**/
#define HAVE_VECTOR_AT 0
#define HAVE_STREAMBUF 1
#define HAVE_OSTREAM 1
#define HAVE_IOSTREAM 1
#define HAVE_FSTREAM 1
#define HAVE_SSTREAM 1
#define HAVE_EXPAT_H 1
#define HAVE_IOS_BASE 1
#define HAVE_STRING_CLEAR 1
#define HAVE_EXCEPTIONS /**/
#define HAVE_VERBOSE_TERMINATE_HANDLER /**/
#define HAVE_ICONV 1
#define ICONV_CONST 
#define GNUTLS_MAJOR_VER 2
#define GNUTLS_MINOR_VER 0
#define HAVE_BOOST_IOSTREAMS /**/
#define HAVE_BOOST_FILESYSTEM /**/
#define HAVE_BOOST_DATE_TIME /**/
#define HAVE_BOOST_THREAD /**/
#define HAVE_BOOST_PROGRAM_OPTIONS /**/

configure: exit 1

i installed rb_libtorrent with pacman

i'm n00bish at this, so i don't know if i'm missing fundamental knowledge or if it's something specific...
i have no idea how to force configure to look for those headers elsewhere, or even to find where it's looking for them so i can draw some conclusions.
i've been at this for a couple of hours and it's is killing me, someone please help

Offline

#2 2008-07-23 00:19:24

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Install of btg

Btg is in the AUR : http://aur.archlinux.org/packages.php?ID=8212
Install with the PKGBUILD and makepkg, or install yaourt and do

yaourt -S btg

Offline

#3 2008-07-23 05:44:55

vexxor
Member
Registered: 2008-07-17
Posts: 45

Re: Install of btg

Misfit138 wrote:

Btg is in the AUR : http://aur.archlinux.org/packages.php?ID=8212
Install with the PKGBUILD and makepkg, or install yaourt and do

yaourt -S btg

I did see that btg is in the aur, but i was going with the latest stable version (0.9.8) rather than the slightly outdated aur version (0.9.7). If there is no solution to the above posted question, i guess i will default to using the version from aur.

Offline

#4 2008-07-23 06:02:25

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Install of btg

You can change the version number in the PKGBUILD.

Offline

#5 2008-07-23 06:57:04

vexxor
Member
Registered: 2008-07-17
Posts: 45

Re: Install of btg

tigrmesh wrote:

You can change the version number in the PKGBUILD.

I did that. Also i had to change the source so used the new version i downloaded. This was the initial way i tried to install. I got to the same error from my first post (about the rb_libtorrent headers) so i figured i might get more info if i tried to compile manually

Offline

#6 2008-07-23 08:22:45

vexxor
Member
Registered: 2008-07-17
Posts: 45

Re: Install of btg

Building from aur, gets me one step further sad

this time:

checking whether Rasterbar Libtorrent headers can be used... yes
checking whether Rasterbar Libtorrent library can be used... no
configure: error: Cannot link with Rasterbar Libtorrent
==> ERROR: Build Failed.
    Aborting...

can anyone tell me how to see which locations for the rb_libtorrent files this process is looking for?

Offline

#7 2008-07-23 18:32:41

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Install of btg

I've had  trouble compiling btg even though it detected rb_libtorrent. Your problems are not over yet. You may want to have a look at bitflu or deluge v0.6

Offline

#8 2008-07-26 13:47:43

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Install of btg

After having a look at Frugalware's buildscript I've managed to tweak the old PKGBUILD to something that actually completes:

pkgname='btg'
pkgver='0.9.8'
pkgrel=1
pkgdesc='Linux bittorrent client implemented in C++ and using the rasterbar libtorrent library.'
url='http://btg.berlios.de/'
arch=('i686' 'x86_64')
license=('GPL')
depends=('rb_libtorrent' 'gnutls' 'dialog')
options=('!libtool' '!emptydirs')
source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('82af4ee05e76d6d6bec95740dbb79358')

build() {
  cd "${startdir}/src/${pkgname}-${pkgver}" || return 1

  sed -i 's|"-L$RBLIBTORRENT_ROOT/lib -ltorrent"|"-L$RBLIBTORRENT_ROOT/lib -ltorrent-rasterbar"|g' m4/btg_rblibtorrent_check.m4 || return 1

  sh autogen.sh || return 1

  ./configure --prefix=/usr \
    --enable-session-saving \
    --enable-btg-config \
    --enable-cli \
    --enable-www \
    --enable-event-callback \
    --with-boost-date-time=mt \
    --with-boost-filesystem=mt \
    --with-boost-thread=mt \
    --with-boost-regex=mt \
    --with-boost-program-options=mt \
    --with-rblibtorrent=/usr \
    || return 1

  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
}

Don't know if it is complete - I started btgdaemon, but had problems adding torrents and the web UI didn't show any info. Don't know if it's the package or my permissions causing this - probably my permissions - but I don't have time to test more at the moment. Please have a go at it smile

Offline

#9 2008-07-27 12:29:27

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Install of btg

Okay, it is working properly. The problem I had with adding torrents seems to have been PEBKAC-related, and the web UI problem was a typo in btg.js*, line 639 - it contains a "Â" which it shouldn't.

______________________________
* /usr/share/wwwbtg/htdocs/btg.js

Offline

#10 2008-07-29 09:14:14

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: Install of btg

Thank you so much Bebo! wink

Offline

#11 2008-07-29 16:43:16

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: Install of btg

I'm getting crazy... I can't manage to make the Web UI working! I'm using default Apache configuration + PHP5. I tried using symlink and adding an Alias to the Apache configuration but it tells me there is an internal server error (500). WTF, error_log doesn't show anything and access_log only tells me that the directory was requested by the user and the result is 500.

The only way I made it work was copying the /usr/share/wwwbtg/htdocs directory to /srv/http but it doesn't even work good (I can login but I can't create new sessions).

PLEASE HELP ME BEFORE I CRACK DOWN!

Last edited by axelgenus (2008-07-29 16:43:38)

Offline

#12 2008-07-29 18:53:43

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Install of btg

Do you have logging enabled in php.ini? Like "error_reporting  =  E_ALL" and "error_log = syslog" or wherever you want to log stuff. If it is enabled, and it is using syslog, then maybe you should look in daemon.log or everything.log (sorry, I don't remember the default setting for Arch's php).

Anyway, I've made it work with a virtual host; in /etc/httpd/conf/extra/httpd-vhosts.conf:

NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
    ServerName btg 

    DocumentRoot /usr/share/wwwbtg/htdocs

    # The open_basedir stuff demands some explanations. 
    # - The away-commented /etc/btg/ was set there since php complained that 
    #   the open_basedir restriction was in effect. /etc/btg/ was added to 
    #   get rid of that message, but then it was realized that it was 
    #   /usr/share/wwwbtg/htdocs/config.php that tried to read an optional 
    #   /etc/btg/config.php file. After away-commenting that reading, the
    #   directory could be removed from the open_basedir. 
    # - The /var/cache/btg/ directory is purely for "uploads" from the web UI.
    #   We need a "DMZ" where the web server can write AND the btgdaemon can 
    #   read. Best way seems to be to create a new directory with permissions
    #     drwxrwsr-x 2 http btg 48 2008-07-27 15:51 /var/cache/btg/

    #php_admin_value open_basedir /usr/share/wwwbtg/htdocs/:/etc/btg/
    php_admin_value open_basedir /usr/share/wwwbtg/htdocs/:/var/cache/btg/
    php_admin_value upload_tmp_dir /var/cache/btg/
    php_admin_flag short_open_tag On
    php_admin_flag file_uploads On

    <Directory "/usr/share/wwwbtg/htdocs">
        Options Indexes FollowSymLinks # This line is probably completely unnecessary
        AllowOverride None
        Order Allow,Deny
        Allow from 127.0.0.1
    </Directory>
</VirtualHost>

Ah, yes, see that short_open_tag setting? The web gui uses short-tags ("<?" instead of "<?php") so you have to enable that in php.ini or do it like this.

Since this defines a name-based virtual host you have to add btg to your localhost line in /etc/hosts:

127.0.0.1       localhost.localdomain   localhost       btg

Then just go to http://btg/ smile This can of course be done in numerous ways, but this is my (current) way.

Another error source may be the directories for the torrents: remember to create the directory structure that you specified when you added your user with btgpasswd, and also set the correct permissions on them.

Offline

#13 2008-07-30 06:24:48

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: Install of btg

I had to include /usr/share in open_basedir and enable short_open_tag in php.ini in order to make the web ui work. Unfortunately I still can't setup new sessions: no errors, nothing. When I push the "setup" button it simply does nothing. I guess the web ui isn't able to comunicate with the daemon.

Thank you for your help. wink

EDIT: Nevermind... I solved. The problem was a typo in one on the directories in the auth file.

Last edited by axelgenus (2008-07-30 07:47:26)

Offline

#14 2008-07-30 07:35:07

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Install of btg

Bebo wrote:

[...] and the web UI problem was a typo in btg.js*, line 639 - it contains a "Â" which it shouldn't.

______________________________
* /usr/share/wwwbtg/htdocs/btg.js

Did you fix this? Otherwise the web UI won't do much at all smile The  is in an if statement, just after a "||". Just remove it.

Putting the whole /usr/share in open_basedir is probably not a good idea, try to be a specific as possible. /usr/share/wwwbtg/htdocs/ is enough.

Offline

#15 2008-07-30 07:51:11

axelgenus
Member
From: Italy
Registered: 2007-04-15
Posts: 100
Website

Re: Install of btg

Bebo wrote:
Bebo wrote:

[...] and the web UI problem was a typo in btg.js*, line 639 - it contains a "Â" which it shouldn't.

______________________________
* /usr/share/wwwbtg/htdocs/btg.js

Did you fix this? Otherwise the web UI won't do much at all smile The  is in an if statement, just after a "||". Just remove it.

I looked for it but everything was fine.

Bebo wrote:

Putting the whole /usr/share in open_basedir is probably not a good idea, try to be a specific as possible. /usr/share/wwwbtg/htdocs/ is enough.

It was just for trying. I added the lines in your <Directory> statement and it worked.

However I found the trick... it was a typo in my auth file. wink

Last edited by axelgenus (2008-07-30 07:52:02)

Offline

#16 2008-07-30 09:46:09

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Install of btg

Great! smile

Offline

#17 2008-07-30 11:17:02

vexxor
Member
Registered: 2008-07-17
Posts: 45

Re: Install of btg

Thank you Bebo. I actually went along with the advice of a post right before yours and installed deluge. I'm afraid i don't have the time or will to go through all this again, and deluge is working fine right now big_smile

Offline

#18 2008-07-30 12:08:09

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Install of btg

I understand completely - I was on the verge of letting it go as well, when I found frugalware's buildscript.

Offline

#19 2008-09-22 19:32:51

FreakGuard
Member
Registered: 2008-04-27
Posts: 103

Re: Install of btg

http://rafb.net/p/Vg1tnz99.html
doesn't reallly work sad

Offline

#20 2008-11-01 18:28:21

FreakGuard
Member
Registered: 2008-04-27
Posts: 103

Re: Install of btg

Well... using the rb_libtorrent-svn solved some problems.
But the cli won't build, with the following error:

checking for wide ncurses... yes
configure: error: Attempt to use ncurses with wide character support.

And without cli, there is the following error:

/bin/sh ../libtool --tag=CXX   --mode=link g++ -march=native -mtune=native -O2 -pipe -DNDEBUG -I/usr/include -I/usr/include -DBTG_DEBUG=0 -DBTG_OPTION_SAVESESSIONS=1 -DBTG_OPTION_EVENTCALLBACK=1 -DBTG_OPTION_UPNP=0 -DBTG_OPTION_USELTUPNP=0 -DBTG_OPTION_USECYBERLINK=0  -DBTG_OPTION_URL=0 -DBTG_INTERNAL_XMLRPC="1" -march=native -mtune=native -O2 -pipe  -L/usr/lib -o btgdaemon btgdaemon-btgdaemon.o btgdaemon-daemon.o ../bcore/libbtgcore.la libdaemon.la ../daemon/resource/libresource.la ../daemon/ipfilter/libipfilter.la ../daemon/auth/libauth.la ../external/ini/libini.la ../bcore/libbtgcore.la   -ltorrent-rasterbar   -lboost_system-mt -lboost_iostreams-mt -L/usr/lib -lgnutls -L/usr/lib -ltasn1 -lgcrypt -lgpg-error -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt
libtool: link: g++ -march=native -mtune=native -O2 -pipe -DNDEBUG -I/usr/include -I/usr/include -DBTG_DEBUG=0 -DBTG_OPTION_SAVESESSIONS=1 -DBTG_OPTION_EVENTCALLBACK=1 -DBTG_OPTION_UPNP=0 -DBTG_OPTION_USELTUPNP=0 -DBTG_OPTION_USECYBERLINK=0 -DBTG_OPTION_URL=0 -DBTG_INTERNAL_XMLRPC=1 -march=native -mtune=native -O2 -pipe -o .libs/btgdaemon btgdaemon-btgdaemon.o btgdaemon-daemon.o  -L/usr/lib ./.libs/libdaemon.a ../daemon/resource/.libs/libresource.a ../daemon/ipfilter/.libs/libipfilter.a ../daemon/auth/.libs/libauth.a ../external/ini/.libs/libini.a ../bcore/.libs/libbtgcore.so -ltorrent-rasterbar -lboost_system-mt -lboost_iostreams-mt /usr/lib/libgnutls.so -lz -ltasn1 -lgcrypt -lgpg-error -lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -pthread -Wl,-rpath -Wl,/usr/lib/btg
btgdaemon-btgdaemon.o: In function `boost::date_time::ymd_formatter<boost::date_time::year_month_day_base<boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day>, boost::date_time::simple_format<char>, char>::ymd_to_string(boost::date_time::year_month_day_base<boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day>)':
btgdaemon.cpp:(.text._ZN5boost9date_time13ymd_formatterINS0_19year_month_day_baseINS_9gregorian9greg_yearENS3_10greg_monthENS3_8greg_dayEEENS0_13simple_formatIcEEcE13ymd_to_stringES7_[boost::date_time::ymd_formatter<boost::date_time::year_month_day_base<boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day>, boost::date_time::simple_format<char>, char>::ymd_to_string(boost::date_time::year_month_day_base<boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day>)]+0x16d): undefined reference to `boost::gregorian::greg_month::as_short_string() const'
collect2: ld returned 1 exit status

Offline

#21 2008-11-01 18:38:03

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Install of btg

Looks like there is some problem with boost? When boost recently was updated I couldn't use btg due to some unresolved symbols. I solved it by downgrading, but I think a more proper solution would be to rebuild rb_libtorrent with the new boost. But the new boost came October 16, so I guess you've already done that?

Offline

#22 2008-11-01 19:18:11

FreakGuard
Member
Registered: 2008-04-27
Posts: 103

Re: Install of btg

AWESOME!
It works - just using btg-svn (correct linkers there)

Offline

#23 2008-11-03 05:53:43

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: Install of btg

What did you do? Just switching to btg-svn or what? smile

Offline

#24 2008-11-03 21:43:56

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Install of btg

Neither of the PKGBUILDS worked for me (AUR or the one posted above).  btg-svn did not work correctly either.

Dunno why though . . .

Last edited by timetrap (2008-11-03 21:45:33)

Offline

#25 2008-11-03 22:15:50

FreakGuard
Member
Registered: 2008-04-27
Posts: 103

Re: Install of btg

Use rb_libtorrent-svn due to linking problems with boost => http://bugs.archlinux.org/task/11967
(If you do that, you can even use 0.9.8)

Offline

Board footer

Powered by FluxBB