aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Error compilando aMule en una máquina Debian 3.1  (Read 15605 times)

bocabits

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Error compilando aMule en una máquina Debian 3.1
« on: December 12, 2009, 01:09:26 PM »

Hola, buenos días a todos.

Estoy intentando instalar aMule en un NAS LinkStation, que funciona con Debian 3.1 (Sarge), he bajado la versión 2.0.3 de aMule y después de hacer el configure me da este mensaje:

Code: [Select]
Configure script has finished system check.

  Configured aMule 2.0.3 for 'mipsel-unknown-linux'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/bin/aMule
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    no
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               yes
  Should aMule be compiled with taskbar icon support?        yes
  Should aMule be compiled with old GTK taskbar icon?        no
  Should aMule be compiled with UTF-8 taskbar icon support?  no
  Should aMule be linked against patched gsocket?            no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes
  Should aMule GUI Client be built?                          no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes
  Should aMule WebServer GUI be built?                       yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       yes

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          yes
  Libraries aMule will use to build:
                                       wxWidgets             2.6.1
                                       crypto++              embedded
                                       libpng                1.2.8
                                       zlib                  1.2.2


 WARNING! gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
 amuleweb will be compiled but file download progress bar images will NOT be generated.
 See the above error on gd check for solutions.

Después hago make y make install que no dan mensajes de error y al tratar de arrancar aMule me dice que:

Code: [Select]
paquito@LINKSTATION:~/aMule-2.0.3$ /usr/bin/aMule/bin/amule
/usr/bin/aMule/bin/amule: error while loading shared libraries: libwx_gtk_xrc-2.6.so.0: cannot open shared object file: No such file or directory

Pero las librerías a las que hace referencia se encuentran en /usr/local/lib

La versión de kernel que tengo es:

root@LINKSTATION:/home# uname -a
Linux LINKSTATION 2.4.20_mipsel_linkstation #88 2005ǯ 2·î 25Æü ¶âÍËÆü 20:17:00 JST mips GNU/Linux

Gracias por la atención, un saludo.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #1 on: December 12, 2009, 01:20:01 PM »

Hola bocabits,

aMule 2.0.3 es muy viejo y no podemos ayudar más. Por favor, intenta con aMule 2.2.6. Es necesario compilar wxWidgets 2.8.10 para poder usar aMule 2.2.

Saludos
Logged

bocabits

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #2 on: December 12, 2009, 02:48:11 PM »

Gracias por responder tan rápido.

aMule 2.2.6 funcionaría en Debian 3.1 o tendría que actualizar a  Debian 4 ó 5?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #3 on: December 12, 2009, 03:12:20 PM »

Será más fácil actualizar a Debian 5, pero creo funcione también con Sarge. Sin embargo haya que actualizar al menos wxWidgets.
Logged

bocabits

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #4 on: December 13, 2009, 09:30:26 AM »

He compilado wxGTK-2.8.10  con estas opciones:

./configure --with-gtk=1 --disable-odbc

y me da este mensaje:

Code: [Select]
Configured wxWidgets 2.8.10 for `mipsel-unknown-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.4      no
                                       wxWidgets 2.6      yes
  Which libraries should wxWidgets use?
                                       jpeg               sys
                                       png                sys
                                       regex              sys
                                       tiff               sys
                                       zlib               sys
                                       odbc               no
                                       expat              sys
                                       libmspack          no
                                       sdl                no

y cuando termina de hacer make dice:

The installation of wxWidgets is finished.  On certain
 platforms (e.g. Linux) you'll now have to run ldconfig
 if you installed a shared library and also modify the
 LD_LIBRARY_PATH (or equivalent) environment variable.
Luego, al hacer configure para aMule 2.2.6 :

./configure --prefix=/usr/bin/aMule --enable-amule-daemon --enable-amulecmd --enable-webserver --enable-webservergui --disable-amule-gui --disable-debug --disable-gtk --enable-optimize  --enable-alcc --enable-ccache  --with-language=i18n-es

da el mensaje:

Code: [Select]
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.

¿Tengo que compilar wxWidgets de nuevo añadiendo la opción  --unicode=yes? Además, ya tenía instalado el wxWidgets 2.6.1, ¿hay que eliminarlo antes de instalar la versión 2.8.0?

Muchas gracias!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #5 on: December 13, 2009, 10:07:20 AM »

Quote
¿Tengo que compilar wxWidgets de nuevo añadiendo la opción  --unicode=yes?
Sí.
Quote
Además, ya tenía instalado el wxWidgets 2.6.1, ¿hay que eliminarlo antes de instalar la versión 2.8.0?
Mejor eliminarlo, a veces hay problemas con dos instalaciones del wxWidgets.
Logged

bocabits

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #6 on: December 13, 2009, 11:07:29 PM »

Bueno, lo primero, gracias por tu ayuda.

He compilado  wxGTK-2.8.10

./configure --with-gtk=1 --disable-odbc --enable-unicode

ha dado este mensaje:

Code: [Select]
config.status: executing wx-config commands

Configured wxWidgets 2.8.10 for `mipsel-unknown-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.4      no
                                       wxWidgets 2.6      yes
  Which libraries should wxWidgets use?
                                       jpeg               sys
                                       png                sys
                                       regex              builtin
                                       tiff               sys
                                       zlib               sys
                                       odbc               no
                                       expat              sys
                                       libmspack          no
                                       sdl                no

Después make y make install que no han dado mensajes de error. Pero al hacer el ./configure para compilar aMule 2.2.6 me vuelve a dar el mismo error que antes.

No he podido desinstalar wxWidgets  2.6, make uninstall no ha funcionado.


Muchas gracias de nuevo.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #7 on: December 13, 2009, 11:45:10 PM »

Para desinstalar puedes intentar los comandos del wiki (Eso elimina todos ficheros del wxWidgets, instalar el wxWidgets 2.8.10 puede ser necesario después.)

Por favor, ejecuta "which wx-config" y "wx-config --list", probablemente usa el wxWidgets indeseado.
Logged

bocabits

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #8 on: December 14, 2009, 11:00:25 AM »

He desinstalado wxWidgets 2.6 siguiendo el wiki y luego he vuelto a hacer make install en wxGTK-2.8.10

Code: [Select]
paquito@LINKSTATION:~/wxGTK-2.8.10$ which wx-config
/usr/local/bin/wx-config
paquito@LINKSTATION:~/wxGTK-2.8.10$ wx-config --list

    Default config is gtk-ansi-release-2.8

  Default config will be used for output

paquito@LINKSTATION:~/wxGTK-2.8.10$

Despues al hacer el ./configure dentro de aMule-2.2.6 da el mismo error:
Code: [Select]
checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.8.0 (--unicode=yes)... no

Cuando miro las opciones para compilar de nuevo wxGTK-2.8.10, no veo --unicode=yes,  solo veo esto

Code: [Select]
paquito@LINKSTATION:~/wxGTK-2.8.10$ ./configure --help |grep unicode
  --enable-unicode        compile wxString with Unicode support

que ya está incluido al compilar wxGTK-2.8.10


Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #9 on: December 14, 2009, 11:19:05 AM »

Mh, la problema es de veras el unicode. No obstante el --enable-unicode dice:
Quote
Should wxWidgets be compiled in Unicode mode?           no
Hasta que eso no sea resuelto, no funcionará.

Una duda: ¿Por qué usas "--with-gtk=1"? L'interfaz gráfica del aMule no funciona con GTK1 y creo que el GTK1 no funcione con unicode. Si no quieres una interfaz gráfica, puedes compilar aMuled y wxWidgets sin interfaz gráfica, pero si lo quieres, hay que usar GTK2.
Logged

bocabits

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #10 on: December 14, 2009, 11:24:43 AM »

Mh, la problema es de veras el unicode. No obstante el --enable-unicode dice:
Quote
Should wxWidgets be compiled in Unicode mode?           no
Hasta que eso no sea resuelto, no funcionará.

Una duda: ¿Por qué usas "--with-gtk=1"? L'interfaz gráfica del aMule no funciona con GTK1 y creo que el GTK1 no funcione con unicode. Si no quieres una interfaz gráfica, puedes compilar aMuled y wxWidgets sin interfaz gráfica, pero si lo quieres, hay que usar GTK2.

Empecé siguiendo estas instrucciones: http://buffalo.nas-central.org/wiki/AMule:_The_all-platform_eMule_client.

aMule va a funcionar en un NAS sin tarjeta gráfica y quiero manejarlo desde mi PC por web.
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #11 on: December 14, 2009, 11:34:06 AM »

Pues, hay una explicación en http://wiki.amule.org/index.php/HowTo_Compile_aMuled (Inglés):

Puedes usar: ./configure --disable-gui --enable-unicode --without-subdirs --without-expat
Logged

bocabits

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #12 on: December 14, 2009, 11:43:46 AM »

Pues, hay una explicación en http://wiki.amule.org/index.php/HowTo_Compile_aMuled (Inglés):

Puedes usar: ./configure --disable-gui --enable-unicode --without-subdirs --without-expat

Muchas gracias, voy a probarlo ahora mismo (tarda seis horas en hacer el make)
Logged

bocabits

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #13 on: December 14, 2009, 12:43:52 PM »

No ha tardado nada!!

Al hacer ./configure --disable-monolithic --with-toolkit=base --enable-amule-daemon --enable-amulecmd --enable-webserver

da este error:

Code: [Select]
configure: error:
        Could not find crypto++ header file "cryptlib.h".
        Please try again with --with-crypto-prefix=/my_crypto_prefix
        (replace /my_crypto_prefix with a valid path to your crypto++
        installation directory).

He instalado con aptitude libcrypto++-dev y configure se ejecuta y da este mensaje:


Code: [Select]
  Configure script has finished system check.

  Configured aMule 2.2.6 for 'mipsel-unknown-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule be compiled with UPnP support?                disabled
  Should aMule be compiled with IP2country support?          no
  Should aMule monolithic application be built?              no
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            gentoo_debian

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.8.10 (,shared)
                                       crypto++              5.2.1 (gentoo_debian, in /usr)
                                       regex                 system
                                       libintl               system
                                       libpng                1.2.8
                                       zlib                  1.2.2


WARNING! UPnP code has been disabled because libupnp >= 1.6.6 not found (try to use --with-libupnp-prefix=PREFIX).

El make ha terminado con este mensaje:

Code: [Select]
collect2: ld returned 1 exit status
make[4]: *** [amuleweb] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Error compilando aMule en una máquina Debian 3.1
« Reply #14 on: December 14, 2009, 01:11:16 PM »

Quote
El make ha terminado con este mensaje:
Necesito las lineas anteriores para saber que va mal.
Logged
Pages: [1] 2