Di aMule Adunanza vi sono i pacchetti binari per Windoz, Mac, Linux Suse, Mandriva e Debian.
Per Gentoo e quindi Sabayon bisogna compilare i sorgenti.
Peraltro i binari distribuiti sono solo a 32 bit e quindi per avere l'eseguibile a 64 bisogna comunque compilare.
Ho scaricato aMule Adunanza da qua:
http://sourceforge.net/project/showfiles.php?group_id=215106
Ed ho scelto lo snapzhot (.tar.bz2).
Ho estratto il sorgente in /usr/local.
Avendo trovato alcune difficoltà nel compilarlo ho deciso di scrivere una mini guida (che poi potrebbe essere utile anche a me stesso se lo dovessi rifare in futuro).
Come prerequisito dovete avere già installato x11-libs/wxGTK (sul mio PC era già presente appena dopo l'installazione di SL 3.5.
Aprite una shell come root ed andate nella direttrice dove del pacchetto.
Eseguite:
- Code: Select all
./autogen.sh
Quindi:
- Code: Select all
./configure
Nel mio caso il ./configure moriva subito con il seguente errore:
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... ./configure: line 8664: test: too many arguments
./configure: line 8667: test: too many arguments
no (version An error occurred while calling wx-config:
No profile currently selected
Please use `eselect wxwidgets` to select an available profile and try again. is not new enough)
configure: error:
The requested wxWidgets build couldn't be found.
The configuration you asked for aMule requires a wxWidgets
build with the following settings:
--unicode=yes
but such build is not available.
To see the wxWidgets builds available on this system, please use
'wx-config --list' command. To use the default build, returned by
'wx-config --selected-config', use the options with their 'auto'
default values.
If you still get this error, then check that 'wx-config' is
in path, the directory where wxWidgets libraries are installed
(returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
or equivalent variable and wxWidgets version is 2.8.0 or above.
Inizialmente avevo lasciato subito perdere ma poi, riprovando ho notato che il make già suggeriva il da farsi:
Ovvero usare eselect wxwidgets per selezionare il profilo con unicode.
Dando:
- Code: Select all
eselect wxwidgets list
Ottenevo:
Available wxWidgets profiles:
[1] gtk2-ansi-release-2.6
[2] gtk2-unicode-release-2.6
[3] gtk2-unicode-release-2.8
Quindi avrei dovuto selezionare il profilo unicode più recente.
Se a voi capita come a me inserite:
- Code: Select all
eselect wxwidgets set 3
E poi di nuovo:
- Code: Select all
./configure
Bene, questa volta andava fino in fondo.
Non rimane che dare:
- Code: Select all
make
Purtroppo anche il make non terminava correttamente:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcryptopp
Mancava la libreria lcryptopp
L'ho cercata per mare e per terra ma non c'era e non sapevo dove andarla a prendere.
Poi però ho pensato alle 2 p in fondo al nome ed ho capito che stavano per plus plus ovvero ++
Al posto di cercare libcryptopp ho cercato con (locate) libcrypto++.
E voilà, trovata:
/usr/lib/libcrypto++.a
Eseguite quindi:
- Code: Select all
ln -s /usr/lib/libcrypto++.a /usr/lib/libcryptopp.a
E poi di nuovo:
- Code: Select all
make
Questa volta la compilazione andrà a buon fine.
A questo punto non rimane che:
- Code: Select all
make install
Ed aMule Adunanza (con anche ed2k) sarà in /usr/local/bin!
Non mi resta che augurarvi veloci download da Fastweb.
Ciao.
Mauro

