Newsgroup: it.comp.macintosh
Titolo: Transmission CLI

Qualcuno usa transmission-cli o transmission-daemon, qui? Io ci ho
provato, ma proprio non riesco a compilarlo. Che poi, non capisco perch�
non mettano una versione gi� compilata da poter scaricare...
In alternativa, qualcuno usa altri client torrent da shell (su Mac)?
-- 
Per rispondere, togliere -NOSPAM- dall'indirizzo.

 Io ci ho provato, ma proprio non riesco a compilarlo. 
Che errori hai?

 Che errori hai?
Che non so da dove cominciare :-(
Nel senso che non c'� una verisone OS X da scaricare (a livello di
sorgenti), ne istruzioni su quale verisone usare in sostituzione (io ho
provato con quella FreeBSD), men che meno una versione precompilata (ne
sul sito ufficiale ne al trove). Ho gi� compilato qualche software, ma
ho sempre seguito istruzioni chiare e dettagliate... In questo caso ho
trovato istruzioni per Debian, qualche accenno che si dovrebbe poter
compilare anche su Mac e nient'altro.
Direi che se non trovo qualche aiuto, � fuori dalle mie capacit�
informatiche. Peccato, perch� mi sarebbe stato utile un client torrent
da poter usare con la shell...


 usi...
Dopo il tuo messaggio ho installato quella in macports, usa il port 
transmission-x11 senza varianti per avere la cli senza client aqua né 
gtk.

 gtk.
Ho cercato di seguire le istruzioni a partire da "How to build" con il
file "transmission-1.73.tar.bz2", ho installato pkg-config, ma continuo
ad avere degli errori.
Ma sarebbe cos� difficile preparare una verisone compilata da installare
opzionalmente con Transmission? Sinceramente non capisco perch� questi
software non vengano forniti anche gi� compilati... Che problemi ci
sarebbero? O che vantaggi ci sono nel fornire i sorgenti? Visto che
comunque il software con GUI viene distribuito compilato? Oh, non � una
critica a chi fa un software per di pi� gratutio, ma vorrei proprio
capire...


 O che vantaggi ci sono nel fornire i sorgenti? 
Posso pensare ad esempio a questioni di licenza.

 Posso pensare ad esempio a questioni di licenza.
Ci ho pensato anch'io, ma viene pur compilato e distribuita la versione
GUI... non credo che ci siano differenze per quanto riguarda le licenze;
anzi, se mai la versione GUI potrebbe includere qualche libreria in pi�.


 aspettare, probabilmente a lungo se deve compilare anche gcc43.
Comunque con MacPorts l'installazione termina con questo:
configure: WARNING: using our own libevent from third-party/libevent/
configure: WARNING: if you are cross-compiling this is probably NOT what
you want.
checking for GTK... no
checking whether NLS is requested... yes
checking for intltool >= 0.40.0... ./configure: line 20461:
intltool-update: command not found
 found
configure: error: Your intltool is too old.  You need intltool 0.40.0 or
later.
Error: Status 1 encountered during processing.


 anzi, se mai la versione GUI potrebbe includere qualche libreria in più.
Intendo dire che magari sono forzati a rilasciare il sorgente per 
questioni di licenza (d'altronde il tarball è unico) mentre potrebbe non 
esserci alcuna spinta a creare il pkg con i comandi cli.

 Qualcuno usa transmission-cli o transmission-daemon, qui? Io ci ho
Se è solo per avere un client torrent per CLI, potresti pensare a
rTorrent che ho usato (tempo fa) con successo su OSX.
Saluti

 In alternativa, qualcuno usa altri client torrent da shell (su Mac)?
io uso Azureus da CLI su linux, ma non dovrebbe essere troppo diverso
su OSX.
Ciao Jack

 --enable-cli
OK, fatto (dopo aver installato intltook con Macports). La procedura
sembra avvenire correttamente:
Configuration:
        Source code location:          .
        Compiler:                      g++
        System or bundled libevent:    bundled
        DHT support:                   yes
        Build Mac client:              yes
        Build GTK+ client:             no
          ... with gio support:        no
          ... with dbus-glib support:  no
          ... with libnotify support:  no
        Build Command-Line client:     yes
        Build Daemon:                  yes
Ma andando poi a dare il make install, succede questo:
$ make install
Making install in doc
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in third-party
make[1]: Nothing to be done for `install'.
Making install in libtransmission
gcc -DPACKAGE_NAME=\"transmission\" -DPACKAGE_TARNAME=\"transmission\"
-DPACKAGE_VERSION=\"1.73\" -DPACKAGE_STRING=\"transmission\ 1.73\"
-DPACKAGE_BUGREPORT=\"
http://trac.transmissionbt.com/newticket\
"
-DPACKAGE=\"transmission\" -DVERSION=\"1.73\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DLT_OBJDIR=\".libs/\" -DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1
-DHAVE_LRINTF=1 -DHAVE_STRLCPY=1 -DHAVE_DAEMON=1 -DHAVE_DIRNAME=1
-DHAVE_BASENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_LOCALTIME_R=1
-DHAVE_PTHREAD=1 -DHAVE__TMP_DUMMY1_ZLIB_H=1 -DHAVE_ZLIB=1
-DHAVE_DECL_POSIX_FADVISE=0 -DWITH_KQUEUE=1
-DGETTEXT_PACKAGE=\"transmission\" -DHAVE_LOCALE_H=1
-DHAVE_LC_MESSAGES=1 -DHAVE_DARWIN=1 -I.  -I. -I.. -I../third-party/
-D__TRANSMISSION__ -DPACKAGE_DATA_DIR=\""/usr/local/share"\"
-I../third-party/dht -I../third-party/libevent -I../third-party/libevent
-I/opt/local/include   -I/opt/local/include   -D_THREAD_SAFE   -g -O2 -g
-O3  -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security
-Wcast-align -Wundef -Wcast-align -Wstrict-prototypes
-Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls
-Wnested-externs -Wunused-parameter -Wwrite-strings -Wextra
-Wdeclaration-after-statement -Winit-self -MT bandwidth.o -MD -MP -MF
.deps/bandwidth.Tpo -c -o bandwidth.o bandwidth.c
In file included from bandwidth.c:16:
../third-party/libevent/event.h:162:26: error: event-config.h: No such
file or directory
In file included from ../third-party/libevent/event.h:175,
                 from bandwidth.c:16:
../third-party/libevent/evutil.h:61:7: warning:
"_EVENT_SIZEOF_LONG_LONG" is not defined
../third-party/libevent/evutil.h:64:7: warning: "_EVENT_SIZEOF_LONG" is
not defined
../third-party/libevent/evutil.h:68:2: error: #error "No way to define
ev_uint64_t"
../third-party/libevent/evutil.h:75:7: warning: "_EVENT_SIZEOF_LONG" is
not defined
../third-party/libevent/evutil.h:77:7: warning: "_EVENT_SIZEOF_INT" is
not defined
../third-party/libevent/evutil.h:80:2: error: #error "No way to define
ev_uint32_t"
../third-party/libevent/evutil.h:87:7: warning: "_EVENT_SIZEOF_INT" is
not defined
../third-party/libevent/evutil.h:89:7: warning: "_EVENT_SIZEOF_SHORT" is
not defined
../third-party/libevent/evutil.h:92:2: error: #error "No way to define
ev_uint16_t"
In file included from ../third-party/libevent/event.h:175,
                 from bandwidth.c:16:
../third-party/libevent/evutil.h:165: error: syntax error before
'evutil_strtoll'
../third-party/libevent/evutil.h:165: warning: type defaults to 'int' in
declaration of 'evutil_strtoll'
../third-party/libevent/evutil.h:165: warning: data definition has no
type or storage class
../third-party/libevent/evutil.h:171: warning: 'struct timezone'
declared inside parameter list
../third-party/libevent/evutil.h:171: warning: its scope is only this
definition or declaration, which is probably not what you want
../third-party/libevent/evutil.h:171: warning: 'struct timeval' declared
inside parameter list
../third-party/libevent/evutil.h:174: error: syntax error before
'size_t'
../third-party/libevent/evutil.h:178: warning: function declaration
isn't a prototype
../third-party/libevent/evutil.h:179: error: syntax error before
'size_t'
../third-party/libevent/evutil.h:179: warning: function declaration
isn't a prototype
In file included from bandwidth.c:16:
../third-party/libevent/event.h:225: error: field 'ev_timeout' has
incomplete type
../third-party/libevent/event.h:723: error: syntax error before 'u_char'
../third-party/libevent/event.h:723: warning: no semicolon at end of
struct or union
../third-party/libevent/event.h:724: warning: type defaults to 'int' in
declaration of 'orig_buffer'
../third-party/libevent/event.h:724: warning: data definition has no
type or storage class
../third-party/libevent/event.h:726: error: syntax error before
'misalign'
../third-party/libevent/event.h:726: warning: type defaults to 'int' in
declaration of 'misalign'
../third-party/libevent/event.h:726: warning: data definition has no
type or storage class
../third-party/libevent/event.h:727: error: syntax error before
'totallen'
../third-party/libevent/event.h:727: warning: type defaults to 'int' in
declaration of 'totallen'
../third-party/libevent/event.h:727: warning: data definition has no
type or storage class
../third-party/libevent/event.h:728: error: syntax error before 'off'
../third-party/libevent/event.h:728: warning: type defaults to 'int' in
declaration of 'off'
../third-party/libevent/event.h:728: warning: data definition has no
type or storage class
../third-party/libevent/event.h:730: error: syntax error before 'size_t'
../third-party/libevent/event.h:730: warning: function declaration isn't
a prototype
../third-party/libevent/event.h:732: error: syntax error before '}'
token
../third-party/libevent/event.h:746: error: syntax error before 'size_t'
../third-party/libevent/event.h:746: warning: no semicolon at end of
struct or union
../third-party/libevent/event.h:747: warning: type defaults to 'int' in
declaration of 'high'
../third-party/libevent/event.h:747: warning: data definition has no
type or storage class
../third-party/libevent/event.h:759: error: field 'wm_read' has
incomplete type
../third-party/libevent/event.h:760: error: field 'wm_write' has
incomplete type
../third-party/libevent/event.h:880: error: syntax error before 'size_t'
../third-party/libevent/event.h:880: warning: function declaration isn't
a prototype
../third-party/libevent/event.h:905: error: syntax error before
'bufferevent_read'
../third-party/libevent/event.h:905: error: syntax error before 'size_t'
../third-party/libevent/event.h:905: warning: type defaults to 'int' in
declaration of 'bufferevent_read'
../third-party/libevent/event.h:905: warning: function declaration isn't
a prototype
../third-party/libevent/event.h:905: warning: data definition has no
type or storage class
../third-party/libevent/event.h:957: error: syntax error before 'size_t'
../third-party/libevent/event.h:957: warning: function declaration isn't
a prototype
../third-party/libevent/event.h:991: error: syntax error before 'size_t'
../third-party/libevent/event.h:991: warning: function declaration isn't
a prototype
../third-party/libevent/event.h:1001: error: syntax error before
'size_t'
../third-party/libevent/event.h:1001: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1013: error: syntax error before
'size_t'
../third-party/libevent/event.h:1013: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1073: error: syntax error before
'size_t'
../third-party/libevent/event.h:1073: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1109: error: syntax error before '*'
token
../third-party/libevent/event.h:1109: warning: type defaults to 'int' in
declaration of 'u_char'
../third-party/libevent/event.h:1109: error: syntax error before '*'
token
../third-party/libevent/event.h:1109: warning: type defaults to 'int' in
declaration of 'evbuffer_find'
../third-party/libevent/event.h:1109: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1109: warning: data definition has no
type or storage class
../third-party/libevent/event.h:1118: error: syntax error before
'size_t'
../third-party/libevent/event.h:1118: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1128: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1129: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1141: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1141: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1143: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1144: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1146: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1147: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1149: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1150: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1152: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1153: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1154: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1154: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1155: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1155: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1156: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1156: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1159: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1160: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1162: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1163: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1165: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1166: warning: function declaration
isn't a prototype
../third-party/libevent/event.h:1168: error: syntax error before
'ev_uint32_t'
../third-party/libevent/event.h:1169: warning: function declaration
isn't a prototype
bandwidth.c:383: fatal error: opening dependency file
.deps/bandwidth.Tpo: Permission denied
compilation terminated.
make[1]: *** [bandwidth.o] Error 1
make: *** [install-recursive] Error 1
