aMule Forum

English => aMule Help => Topic started by: juanii on May 03, 2005, 06:26:02 AM

Title: requiring X library for console client?
Post by: juanii on May 03, 2005, 06:26:02 AM
not sure if this one belongs to this section, sorry if it doesn't.

just compiled amule configured with options --disable-monolithic --enable-amulecmd --enable-amule-daemon --enable-webserver --disable-systray --disable-gtktest --disable-webservergui --disable-debug

everything goes ok until i run amuled, then i get the following error:
General: CamuleDaemonApp::OnRun()
amuleweb: error while loading shared libraries: libXi.so.6: cannot open shared object file: No such file or directory

which is strange since i didn't compile amule with any gui support. obviously i have not libXi installed, and the daemon listens only to the EC port, not the web port. am i missing something?

thanks in advance!
Title: Re: requiring X library for console client?
Post by: stefanero on May 03, 2005, 06:36:41 AM
the daemon does not have the webserver included, that is why you should start amuleweb ;)

funny is that you seam to need this lib for amuleweb...do you have wxGTK or wxBase? and which version?

stefanero
Title: Re: requiring X library for console client?
Post by: Kry on May 03, 2005, 06:41:19 AM
Code: [Select]
$ ldd src/amuleweb
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002aaaaabc1000)
        libwx_baseud-2.6.so.0 => /home/kry/aMule/wx-cvs/lib/libwx_baseud-2.6.so.0 (0x00002aaaaacd6000)
        libwx_baseud_net-2.6.so.0 => /home/kry/aMule/wx-cvs/lib/libwx_baseud_net-2.6.so.0 (0x00002aaaaaf85000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00002aaaab0c7000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00002aaaab1dc000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002aaaab303000)
        libm.so.6 => /lib/libm.so.6 (0x00002aaaab4f3000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002aaaab67a000)
        libc.so.6 => /lib/libc.so.6 (0x00002aaaab785000)
        /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002aaaab9c4000)

No libX on my side.
Title: Re: requiring X library for console client?
Post by: stefanero on May 03, 2005, 06:47:25 AM
maybe he as wxGTK...via rpms...
Title: Re: requiring X library for console client?
Post by: Kry on May 03, 2005, 06:50:02 AM
But his daemon does run, so it's obviously using wxBase.
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 06:51:32 AM
Quote
the daemon does not have the webserver included, that is why you should start amuleweb ;)
yup, i know, but since the daemon ain't expecting for an amuleweb connection (on Port defined in amule.conf) i can't run amuleweb :(

Quote
funny is that you seam to need this lib for amuleweb...do you have wxGTK or wxBase? and which version?
fresh wxBase 2.6.0 install, wxGTK is not installed.
Title: Re: requiring X library for console client?
Post by: Kry on May 03, 2005, 06:52:12 AM
Can you ldd your amuleweb?
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 06:55:31 AM
Quote
No libX on my side.
note i didn't talk about running amuleweb, the error pops when running amuled. anyway, ldd didn't show any dependency for libXi on amuled  ?( i'm confused
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 06:57:42 AM
Code: [Select]
$ ldd aMule-2.0.0/src/amuleweb
        libpthread.so.0 => /lib/libpthread.so.0 (0x4001a000)
        libwx_base-2.6.so.0 => /usr/local/lib/libwx_base-2.6.so.0 (0x4006b000)
        libwx_base_net-2.6.so.0 => /usr/local/lib/libwx_base_net-2.6.so.0 (0x401b7000)
        libz.so.1 => /usr/lib/libz.so.1 (0x401e1000)
        libreadline.so.4 => /lib/libreadline.so.4 (0x401f2000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40221000)
        libm.so.6 => /lib/libm.so.6 (0x4024c000)
        libpng.so.3 => /usr/lib/libpng.so.3 (0x4026f000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.3/libstdc++.so.5 (0x4029a000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.3/libgcc_s.so.1 (0x40365000)
        libc.so.6 => /lib/libc.so.6 (0x4036e000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libdl.so.2 => /lib/libdl.so.2 (0x4049b000)
Code: [Select]
$ ldd aMule-2.0.0/src/amuled
        libpthread.so.0 => /lib/libpthread.so.0 (0x4001a000)
        libwx_base-2.6.so.0 => /usr/local/lib/libwx_base-2.6.so.0 (0x4006b000)
        libwx_base_net-2.6.so.0 => /usr/local/lib/libwx_base_net-2.6.so.0 (0x401b7000)
        libz.so.1 => /usr/lib/libz.so.1 (0x401e1000)
        libstdc++.so.5 => /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.3/libstdc++.so.5 (0x401f2000)
        libm.so.6 => /lib/libm.so.6 (0x402bd000)
        libgcc_s.so.1 => /usr/lib/gcc-lib/i486-pc-linux-gnu/3.2.3/libgcc_s.so.1 (0x402df000)
        libc.so.6 => /lib/libc.so.6 (0x402e8000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libdl.so.2 => /lib/libdl.so.2 (0x40416000)
Title: Re: requiring X library for console client?
Post by: Kry on May 03, 2005, 06:59:32 AM
Why do you have libpng twice? ldd both, please.

Code: [Select]
$ ldd /usr/lib/libpng12.so.0
        libz.so.1 => /usr/lib/libz.so.1 (0x00002aaaaabe3000)
        libm.so.6 => /lib/libm.so.6 (0x00002aaaaacf8000)
        libc.so.6 => /lib/libc.so.6 (0x00002aaaaae7e000)
        /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000555555555000)
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 07:04:02 AM
Quote
Why do you have libpng twice? ldd both, please.
i have really no idea  :P

Code: [Select]
$ ldd /usr/lib/libpng12.so.0
        libz.so.1 => /usr/lib/libz.so.1 (0x40032000)
        libm.so.6 => /lib/libm.so.6 (0x40044000)
        libc.so.6 => /lib/libc.so.6 (0x40066000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Code: [Select]
$ ldd /usr/lib/libpng.so.3
        libz.so.1 => /usr/lib/libz.so.1 (0x40032000)
        libm.so.6 => /lib/libm.so.6 (0x40044000)
        libc.so.6 => /lib/libc.so.6 (0x40066000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
Title: Re: requiring X library for console client?
Post by: Kry on May 03, 2005, 07:08:23 AM
There is still no libX requeriment on your ld. What happens if you try to run amuleweb standalone (not within amuled)?

Note: I go to sleep now, so feel free to not expect a fast reply from now on ;)
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 07:11:06 AM
Quote
Originally posted by Kry
There is still no libX requeriment on your ld. What happens if you try to run amuleweb standalone (not within amuled)?

Note: I go to sleep now, so feel free to not expect a fast reply from now on ;)
works well until the moment where it tries to connect to the daemon and times out.

thanks for all :D
y que duermas bien
Title: Re: requiring X library for console client?
Post by: stefanero on May 03, 2005, 08:11:59 AM
about the timeout, did you enable external connections?
also you need passwords set for external connections, overwise connection is restricted aswell.
check:
http://www.amule.org/wiki/index.php/Webserver#Webserver_with_aMule_2.0.0_or_later_(starting_from_CVS_2005.02.27)

stefanero
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 04:51:40 PM
Quote
Originally posted by stefanero
about the timeout, did you enable external connections?
also you need passwords set for external connections, overwise connection is restricted aswell.
yep.. everything is configured!

i have an idea now which i'm going to try...
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 05:36:57 PM
after messing with libs here and there the error changed and now the unsatisfied lib dependency is with libwx_gtk-2.4.so ?(
guess i'll have to do a deep system check
Title: Re: requiring X library for console client?
Post by: GonoszTopi on May 03, 2005, 06:10:59 PM
maybe you have amuled/amuleweb binaries from previous relases/compilations somewhere on your path...
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 06:41:54 PM
Quote
Originally posted by GonoszTopi
maybe you have amuled/amuleweb binaries from previous relases/compilations somewhere on your path...
i had some old binaries but i always run the client with ./amuled so there's no way to run something i don't want to. anyway i wiped old installations, old libraries with no success. strange thing is i was able to compile and run rc7 and rc8 without any troubles. maybe i'll go back to wxBase 2.4.2 to see what happens.
Title: Re: requiring X library for console client?
Post by: stefanero on May 03, 2005, 06:48:20 PM
wxbase 2.4.2 = no-amuled
Title: Re: requiring X library for console client?
Post by: juanii on May 03, 2005, 07:15:59 PM
Quote
Originally posted by stefanero
wxbase 2.4.2 = no-amuled
yep, i found out... and 2.5.x isn't available for download anymore. seems this will get longer than i expected.
Title: Re: requiring X library for console client?
Post by: stefanero on May 03, 2005, 07:35:06 PM
1st on sf.net
there are all versions of wxwidgets availible

2nd check
http://www.amule.org/wiki/index.php/Using_another_wxinstall

you can compile wx-2.6 into another dir, and then recompile a clean tar.gz from amule with --with-wx-config=/new/path/wx-config

so everythig is cealn and you can debug this
stefanero
Title: Re: requiring X library for console client?
Post by: Kry on May 04, 2005, 12:13:47 AM
The problem is: amuled runs the amuleweb that is INSTALLED on your susytem. You ahve an old amuleweb isntalled that's linked against GUI libs.

Install aMule-2.0.0 and everything should be fine on amuleweb side.
Title: Re: requiring X library for console client?
Post by: juanii on May 04, 2005, 03:18:16 AM
Quote
Originally posted by Kry
The problem is: amuled runs the amuleweb that is INSTALLED on your susytem. You ahve an old amuleweb isntalled that's linked against GUI libs.

Install aMule-2.0.0 and everything should be fine on amuleweb side.
wtf! that was it! i feel so dumb!
btw, is that a new behavior? because in previous releases i remember starting amuleweb manually, not being executed by the daemon. otherwise i would have checked on this before.

thanks for everyone who posted!!
Title: Re: requiring X library for console client?
Post by: Kry on May 04, 2005, 03:22:12 AM
This is new, but only if you have the "Enabled=1" on the [Webserver] section of amule.conf