Daemon rtorrent

Posted on December 9th, 2008 in bugs&fixes by Miggs

En mi caso, la belleza del rtorrent ejecutarlo como demonio en mi servidor, accediendo a el mediante una interfaz web (rtgui). Inicialmente intente utilizar el script que proponen en la wiki oficial, pero después de varios intentos fallidos desistí y me hice mi propio script de arranque. Aquí os lo dejo:

# cat etc/init.drtorrentd

#!/bin/bash
cd “/home
$NOMBRE_USUARIO=’btorrent’ #Ha de existir
su $NOMBRE_USUARIO -c “screen -d -m -S “rtorrent” rtorrent”
exit 0


Compilando rtorrent 0.12.4, Debian 4.0

Posted on December 8th, 2008 in bugs&fixes by Miggs

Una vez configurada e instalada libtorrent, es hora de instalar rtorrent. Aquí de nuevo me encontré con el siguiente error

No package ‘openssl’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables OPENSSL_CFLAGS
and OPENSSL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

rtorrent depende de libssl-dev, así que primero asegúrate que lo tienes correctamente instalado

# dpkg -l |grep libssl-dev

En caso de que no lo tengas, apt es tu amigo (también puedes bajarte los fuentes y compilarlos tu mismo). Parece ser, que en algunas ocasiones esto resuelve el problema. Como en mi caso no lo hizo, os recomiendo que hagáis caso al error y apuntéis la variable PKG_CONFIG_PATH a donde tengáis instalado el pkgconfig. En Debian:

# export PKG_CONFIG_PATH=”/usr/lib/pkgconfig”

Ahora el ./configure, make y make install deberian ir sin problemas


Compilando libtorrent 0.12.4 en Debian 4.0

Posted on December 8th, 2008 in bugs&fixes by Miggs

Al intentar compilar desde los fuentes libtorrent, al ejecutar ./autogen.sh me devolvia lo siguiente

# ./autogen.sh
aclocal…
configure.ac:22: warning: macro `AM_DISABLE_STATIC’ not found in library
configure.ac:23: warning: macro `AM_PROG_LIBTOOL’ not found in library
autoheader…
libtoolize… using libtoolize
automake…
src/Makefile.am:11: Libtool library used but `LIBTOOL’ is undefined
src/Makefile.am:11:   The usual way to define `LIBTOOL’ is to add `AC_PROG_LIBTOOL’
src/Makefile.am:11:   to `configure.ac’ and run `aclocal’ and `autoconf’ again.
src/Makefile.am:11:   If `AC_PROG_LIBTOOL’ is in `configure.ac’, make sure
src/Makefile.am:11:   its definition is in aclocal’s search path.

[......]

autoconf…
configure.ac:20: error: possibly undefined macro: AC_DISABLE_STATIC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:22: error: possibly undefined macro: AM_DISABLE_STATIC
configure.ac:23: error: possibly undefined macro: AM_PROG_LIBTOOL
ready to configure

Para arreglarlo asegúrate de tener instalado aclocal y exportar la siguiente variable de entorno

# export ACLOCAL_FLAGS=”-I /usr/share/aclocal”