aMule Forum

English => Compilation problems => Topic started by: someuser77 on January 21, 2006, 06:50:11 PM

Title: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 21, 2006, 06:50:11 PM
I use Fedora Core 4 and i want to use amuled and amuleweb instead of the GUI.
I downloaded aMule 2.1.0 source but it says i have to recompile wxWidgets, how do i do that?
Code: [Select]
$ ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-amuleweb
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for zlib >= 1.1.4... yes (version 1.2.2.2)
checking for gdlib-config... /usr/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.33)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking for gd.h... (cached) yes
checking whether we need the GUI... no
checking for wx-config... no
checking that wxWidgets has support for large files... no
configure: error:
                Support for large files in wxWidgets is required by aMule.
                To continue you must recompile wxWidgets with support for
                large files enabled.

ls -l /usr/bin/wx* and ls -l /usr/local/bin/wx* returns "No such file or directory".
Code: [Select]
$ rpm -qa | grep wx
wxGTK-2.4.2-12
wxGTK-common-2.4.2-12
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: Kry on January 21, 2006, 07:40:47 PM
You need wx 2.6 at least
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 21, 2006, 07:49:18 PM
so i simply need to compile wxgtk 2.6?
do i need to secify something to ./configure?
simply ./configure, make and make install?
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 21, 2006, 08:18:25 PM
http://wiki.amule.org ....
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 21, 2006, 09:04:16 PM
HowTo Compile aMuled (http://www.amule.org/wiki/index.php/HowTo_Compile_aMuled) says i must have wxGTK >=2.5.4
Code: [Select]
$ rpm -qa | grep wx
wxBase-2.4.2-1
wxGTK-2.6.2-0.2.2.fc4
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-amulewebreturns the error above. how do i recompile exWidgets with the correct setup?
i installed everything from rpms.
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: wuischke on January 21, 2006, 09:12:58 PM
If you've disabled monolithic you'll need wxBASE 2.6.x .
The information in Wiki is probably outdated, someone has to upgrade it.
I'll take a look, in the hope not to mess everything up.
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 21, 2006, 09:25:10 PM
is there a fedora 4 rpm i can use for wxbase so i will be able to remove it if i must?
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 22, 2006, 12:24:17 AM
no the thing is, you can use wxBase 2.6.2 or wxGTK 2.6.2 since in wxGTK wxBase is included...

your problem is that you have wxBase 2.4.2!!!!!!!!! and wxGTK 2.6.2 installed, thats why it does not work
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 22, 2006, 08:58:26 AM
okay. i removed wxbase and ran ldconfig. still i get this error.
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 22, 2006, 09:30:21 AM
make clean && ./configure again, you cannot simple run make because it picked up the old stuff
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 22, 2006, 09:22:33 PM
make clean failed with "make: *** No rule to make target `clean'.  Stop.", configure returned the same error.
if i have wxGTK-2.6.2, are you sure it counts as "wxWidgets with support for large files enabled"?
if i install aMule from yum/rpm, can i still enable the server and the web interface?
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 22, 2006, 11:26:11 PM
well you dont have a wx-config in /usr/bin/

otherwise it would show with

ls -la /usr/bin/wx*

maybe your installed rpm is brocken..since you also had a 2.4.2 rpm installed maybe remove all wx and only install teh 2.6.2 at teh 2nd try

then check if you get something for

ls -la /usr/bin/wx*
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 23, 2006, 03:25:28 PM
okay. i removed any wx* from rpm and i ran make clean in the wxgtk source dir.
now, when i try to install wxGTK-2.6.2-0.2.2.fc4.i386.rpm i get "file /usr/share/locale/tr/LC_MESSAGES/wxstd.mo conflicts between attempted installs of wxBase-2.4.2-1 and wxGTK-2.6.2-0.2.2.fc4" where "tr" changes to other languages aswell.
i dont see any wxstd.mo in the dir above.
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 23, 2006, 04:49:56 PM
ahhh REMOVE wxBASE!!!!!!!!!!!!!!!!
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 23, 2006, 05:17:59 PM
"rpm -qa | grep wx" returns nothing.
is there a way i can see what else is installed?
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 23, 2006, 05:27:04 PM
rpm -Uvh --force wxGTK....

or

http://www.amule.org/wiki/index.php/How_to_uninstall_wxWidgets

and then

rpm -Uvh ....
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 23, 2006, 05:45:04 PM
okay.
first of all thanks to everyone for the help!  :D
now, "rpm -qa | grep wx" returns only "wxGTK-2.6.2-0.2.2.fc4"
is it safe to go to the source dir and run
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-amulewebto compile amuled (server?) and the web interface?
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 23, 2006, 07:43:17 PM
i think so yes...lets so if it works till the end ;)
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 23, 2006, 08:13:36 PM
Quote
checking that wxWidgets has support for large files... no
configure: error:
                Support for large files in wxWidgets is required by aMule.
                To continue you must recompile wxWidgets with support for
                large files enabled.
back to square one?  ;(
is there a way to check if wxWidgets is compiled with what it needs?
edit: config.log:
Quote
configure:6368: checking for wx-config
configure:6400: result: no
configure:6562: checking that wxWidgets has support for large files
configure:6576: g++ -E  conftest.cc
conftest.cc:2:21: error: wx/wx.h: No such file or directory
conftest.cc:6:5: error: #error No LargeFile support!;

Quote
$ ls -la /usr/bin/wx*
ls: /usr/bin/wx*: No such file or directory
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: wuischke on January 23, 2006, 08:41:53 PM
I think you'll need the devel-package for wx (libwxGTK-2.6-dev or similar)
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 23, 2006, 09:29:15 PM
okay. i installed wxGTK-gl-2.6 and wxGTK-devel-2.6 and i did:
Code: [Select]
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --enable-amuleweb
make
make install
no errors!  8) thanks wuischke! thanks stefanero!  :baby:
a... whats next? do i test it somehow?
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 23, 2006, 10:40:30 PM
I guess you test it while running ;)

http://www.amule.org/wiki/index.php/AMuleWeb
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 24, 2006, 05:36:50 AM
okay, i edited AcceptExternalConnections, ECUseTCPPort and ECPassword in amule.conf.
what must i edit in rempte.conf?
i get:
Quote
This is amuleweb 2.1.0
Creating client...
CECSocket error: The timeout for this operation expired
CECSocket error: The timeout for this operation expired
Connection Failed. Unable to connect to the specified host
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 24, 2006, 09:27:29 AM
did you restart amuled ?

check on console that it starts teh EC-port, there should be a msg
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: someuser77 on January 24, 2006, 04:58:28 PM
okay. i restarted all amule* processes and added passwords for GuestPassword and AdminPassword but now the status says "Not connected", do i need to open other ports or can it use the ports i opened for aMule in my previous try?
edit: okay, i opened the tcp and udp ports listed under [ec]/Port and i think it worked. thanks!  :D
Title: Re: help compiling amuled and amuleweb under Fedora 4
Post by: stefanero on January 24, 2006, 05:58:51 PM
ec-ports? but but

well ec port is the port amuleweb uses to connect to amuled,
usually you start amuleweb on the same host as amuled, so no need to open port actually.

the only port you need to open is when you want to connect from the internet to your mashine, but then you need to open the webinterface port for firefox f.e.