HowTo Compile In Gentoo-es

From AMule Project FAQ
Revision as of 03:13, 29 May 2005 by Ateo (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Ingles | Español

This is a WIP. Please do not edit until this message is gone. -- Juan 03:13, 29 May 2005 (CEST)

Compilando una version de aMule en Gentoo debe de hacer simple con solo ejuctar el comando emerge amule.

Compiling a recent version of aMule on Gentoo should be a breeze by just typing emerge amule. Desgraciadamente, actualmente no es tan facil. So, aquí un explicación, punto por punto. Por favor lee este documento entero antes de intentar una instalacíon.

Nota: Diego "Flameeyes" Pettenò esta actualmente tratando de hacer instalacíon de aMule bajo Gentoo más facil. Por favor dale un paso a Gentoo Bug #71108 para más informacíon. Este ebuild nuevo requiere, a minimo, wxGTK 2.5 pero hay otro ebuild para wxGTK 2.5 que debe permitir desenmascarar, seguramente, esta versión.

ebuilds Disponibles

El ebuild para aMule-2.0.1 se puede encontrar aquí: http://bugs.gentoo.org/show_bug.cgi?id=71108

El ebuild para aMule CVS se puede encontrar aquí: http://forum.amule.org/thread.php?sid=&postid=30548

aMule (estable) en Portage

Si solamente ejuctas el comando emerge amule, Portage te instalará el versión que Gentoo considera estable. Este versión es el amule-1.2.8 que tiene más de 12 meces en edad, faltan varios bugfixes y características que puede bajar gravemente sus descargas o hacer imposible conectar a algunos servidores. Tal, este opción no es un buen opción.

aMule (inestable) en Portage

Gentoo clasifica versiónes de amule-2.0.0-rc como inestable por que son Release Canidates (RC o canidates de versiónes que pronto será versión estable. El ebuild oficial más nuevo en Portage es net-p2p/amule-2.0.0-rc7.ebuild (enmascarado por keyword).

El ebuild no oficial para Gentoo es 'net-p2p/amule-2.0.1.ebuild. Versión 2.0.1 depende en >=wxGTK2.5.3 (enmascarado por keyword) para compilar el servidor de aMule. wxGTK 2.6.0 es sugerido

Si el versión rc7 esta bueno, abrí una ventana de consola y entre a un ambiete de su.

mkdir /etc/portage
echo 'net-p2p/amule ~x86' >> /etc/portage/package.keywords
emerge -av amule

Recuerdase que la versión rc7 ya esta un poco viejo. Lo mejor será usar el ebuild para el versión 2.0.1 (Gentoo Bug #71108) o lo más reciente con el ebuild de amule-cvs (Gentoo Bug #88243).


Manual de instalación de aMule reciente

Por defecto, Gentoo usa gtk2 en todos perfiles recientes. Cuando se refiere a wxGTK (requerido por aMule), esto puede traer problemas. El ebuild de wxGTK más reciente y estable en Portage es wxGTK2.4.2 que nunca seá ligado a GTK2. Esto causa aleatorios conjelaciónes y comportamiento imprevisibles que hasta puede hacerle daño a su perro.

So there are two possible ways to go: choose wxGTK2.4.2 linked against GTK1.2 (which should be fine for everybody who doesn't want to use aMuled, the aMule daemon) or choose wxGTK2.5.3 linked either against GTK1.2 or GTK2 (for those who want to try aMuled as aMuled doesn't work with wxGTK prior to 2.5.3).

Another thing is unicode support: You can't enable unicode support when using GTK1.2 and enabling unicode with GTK2 causes huge memleaks (100MB and more in 24h). So I will just disable it in these examples.

wxGTK 2.5.3 - 2.6.0

If you want to use amuled then you need, at least, wxGTK2.5.3. Currently, the only version not hard masked in Portage is wxGTK 2.4.2 due to problems when compiling with OpenGL support in wxGTK 2.5.3. But as aMule is no 3D egoshooter, we can safely disable OpenGL support and use it anyway. To do so enter the following into a console as root:

mkdir /etc/portage (this may give you an error if the directory already exists, just ignore that)
echo 'x11-libs/wxGTK ~x86' >> /etc/portage/package.keywords

If you want to use GTK1.2 (recommended):
echo 'x11-libs/wxGTK -gtk2 -unicode -opengl' >> /etc/portage/package.use

If you want to use GTK2 (not thoroughly tested yet):
echo 'x11-libs/wxGTK -unicode -opengl' >> /etc/portage/package.use

emerge -av wxGTK

wxGTK 2.4.2

If you don't want to use the aMule daemon, wxGTK2.4.2 is just fine for. You only need to tell it that it should link against GTK1.2. To do this grab a console and enter (as root):

mkdir /etc/portage (this may give you an error if the directory already exists, just ignore that)
echo 'x11-libs/wxGTK -gtk2 -unicode' >> /etc/portage/package.use
emerge -av wxGTK

This should (re-)emerge wxGTK2.4.2 linked against GTK1.2. Now you can go on to compiling aMule.

Compiling aMule

Grab either amule2.0.0rc8 from http://www.aMule.org or (specially if you want to use aMuled) a recent CVS tarball from http://amule.hirnriss.net. Untar it by entering tar -xvjf aMule-foo.tar.bz2 and go into the newly created directory.

Review ./configure --help for a summary of all configure options. Pick the ones you want and run (as an example building, the monolithic client and aMuleCMD)
./configure --enable-amulecmd

Review the configure output for errors and if everything seems fine type make. Once aMule is done compiling change to a root account and type make install to install aMule. Now you're done and can start enjoying your aMule experience.