aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Under GentooX  (Read 5351 times)

squalo

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Under GentooX
« on: February 15, 2005, 11:14:51 PM »

I'm italian and i've installed GentooX under my XboX.
Now i would install Amule but i don't know if i can do it and how...
Can someone help me,please?
Thank
Logged

blah

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Under GentooX
« Reply #1 on: February 15, 2005, 11:30:04 PM »

if your gentoo is working... have you simply tried:

emerge amule :D
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Under GentooX
« Reply #2 on: February 16, 2005, 06:54:12 AM »

That's the easiest way, but there are some things to consider:

If you have a normal (stable) Gentoo installation 'emerge amule' will install amule-1.2.8 which is the latest version marked as stable in Portage. If you want a more recent version you have to tell portage to use an unstable version.

Even if you do so the latest version you can get with portage right now is 2.0.0rc7 as the ebuild for rc8 depends on wx 2.5.3 which is hardmasked in portage until now (I don't know exactly why, just found this out to be the reason why there is no ebuild for rc8 ).

If you're ok with rc7 you just have to unmask this, if you don't know how to do it ask here, I will explain it to you (it's not that hard after all). If you would like to use a more recent version you will have to compile it yourself. It's not that hard, too. If you need any help take a look at the wiki. There is no special Gentoo HowTo but you can take a look at the generic installation: http://www.amule.org/wiki/index.php/Compilation_Installation. And again, if there is anything unclear feel free to ask here.  :)
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

einheitlix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: Under GentooX
« Reply #3 on: February 23, 2005, 02:36:54 PM »

You need not install aMule all by yourself if you want the latest rc8 release, there is an ebuild available here:
http://bugs.gentoo.org/show_bug.cgi?id=80645

Note however, that you will still need to unmask the hardmasked wxGTK-2.5.3 to emerge this (or USE="-gtk2", as far as I know, but who wants that? ;))
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Under GentooX
« Reply #4 on: February 23, 2005, 03:24:10 PM »

Quote
Originally posted by einheitlix
Note however, that you will still need to unmask the hardmasked wxGTK-2.5.3 to emerge this (or USE="-gtk2", as far as I know, but who wants that? ;))

As long as you don't need (or want) amuled (the daemon) wxgtk2.4.2 is just fine. And any wxGTK linked against GTK2 (especially when unicode is enabled) still has serious problems with memleaks. The situation is improving (the whole thing is a problem with wx, not with amule), but there still has to be done a lot of work...
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

einheitlix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: Under GentooX
« Reply #5 on: February 23, 2005, 05:01:43 PM »

Well, what I was talking about is that when trying to emerge this ebuild with wxGTK 2.4.2, you will get this error:

Code: [Select]
root@fuchur:~ # ACCEPT_KEYWORDS="~x86" emerge =net-p2p/amule-2.0.0_rc8
Calculating dependencies ...done!
>>> emerge (1 of 1) net-p2p/amule-2.0.0_rc8 to /
>>> md5 src_uri ;-) aMule-2.0.0rc8.tar.bz2
 * Using /usr/bin/wxgtk-2.4-config
 * Compiling amule against wxGTK2 2.4.x is not supported.
 * You can upgrade wxGTK to development snapshot 2.5.*
 * but this will break other applications, or emerge amule
 * with USE="-gtk2 -unicode".

!!! ERROR: net-p2p/amule-2.0.0_rc8 failed.
!!! Function pkg_setup, Line 42, Exitcode 0
!!! Emerge amule with USE="-gtk2 -unicode".
!!! If you need support, post the topmost build error, NOT this status message.

I'm not 100% sure, but I think that to compile amule 2.0.0_rc8 against wxGTK 2.4.2, and thus without amuled, the ebuild would need to be modified (it should not abort the installation when it detects wxGTK 2.4.2, even when gtk2 or unicode useflags are set, and it should not compile amuled).

All I meant to say is that, with that very ebuild I linked above, you either need to emerge wxGTK 2.5.3, or disable gtk2 (and unicode) when emerging amule :)

For my part, I'm waiting for wxGTK 2.5.3 to be stable before I go for amule 2.0, and I'm really looking forward for that to happen!
« Last Edit: February 23, 2005, 05:06:08 PM by einheitlix »
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Under GentooX
« Reply #6 on: February 23, 2005, 05:45:05 PM »

OK, now I got what you mean.  :D

Yes, it is strongly advised not to link wxgtk2.4.2 against gtk2 or use unicode in this setup and the ebuild reflects this. So there are two possible solutions:
- Globally disable unicode and gtk2 support on your system (this may not be what you want) or
- Disable unicode and gtk2 only for amule / wxgtk.

This can be done quite easy. First create (if it doesn't already exist) the directory /etc/portage ('mkdir /etc/portage'). Then enter (again as root) the two following lines:

Code: [Select]
echo 'x11-libs/wxGTK -unicode -gtk2' >> /etc/portage/package.use
echo 'net-p2p/amule -unicode -gtk2' >> /etc/portage/package.use

By doing so you disable unicode and gtk2 only for those two packages. If you have already installed wxGTK you have to reemerge it. Do a 'emerge -av wxGTK amule' and it should show you both packages being compiled with the use-flags -gtk2 -unicode.

P.S.:
Not concerning if you want to use wxGTK2.4.2 or 2.5.3 or even cvs: You definitely should compile it without unicode and gtk2. It will eat up huge amounts of memory in a short time. We are testing this at the moment and i get more then 120 MB memory usage by amule with this setup in 24h!
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

einheitlix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: Under GentooX
« Reply #7 on: February 23, 2005, 07:17:19 PM »

Quote
Originally posted by thedude0001
Yes, it is strongly advised not to link wxgtk2.4.2 against gtk2 or use unicode in this setup and the ebuild reflects this. So there are two possible solutions:
- Globally disable unicode and gtk2 support on your system (this may not be what you want) or
- Disable unicode and gtk2 only for amule / wxgtk.

This can be done quite easy. First create (if it doesn't already exist) the directory /etc/portage ('mkdir /etc/portage'). Then enter (again as root) the two following lines:

Code: [Select]
echo 'x11-libs/wxGTK -unicode -gtk2' >> /etc/portage/package.use
echo 'net-p2p/amule -unicode -gtk2' >> /etc/portage/package.use

By doing so you disable unicode and gtk2 only for those two packages. If you have already installed wxGTK you have to reemerge it. Do a 'emerge -av wxGTK amule' and it should show you both packages being compiled with the use-flags -gtk2 -unicode.

Well thank you, but this was already clear to me ;) As I said, one would need to emerge amule without gtk2 and unicode for it to work with wxGTK 4.2 (I did not know that you had to compile wxGTK without gtk2 and unicode support too, though, as I haven't even tried to emerge aMule 2.0.0rc8 yet).

The point of my first post was only that squalo needn't compile amule manually, because I felt going through portage was much cleaner :)

Oh and no offense - but if I know how to integrate an ebuild in portage through /usr/local/portage (with PORTDIR_OVERLAY), believe you me... I know how to create a directory :D

Quote
P.S.:
Not concerning if you want to use wxGTK2.4.2 or 2.5.3 or even cvs: You definitely should compile it without unicode and gtk2. It will eat up huge amounts of memory in a short time. We are testing this at the moment and i get more then 120 MB memory usage by amule with this setup in 24h!

Now, this is interesting. I've been wondering why aMule was so memory-consuming since some time (I never reached 120 MB, but I did notice it slowed down the system after a time). Many thanks for the tip, I'll try that!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Under GentooX
« Reply #8 on: February 23, 2005, 07:32:28 PM »

Quote
Originally posted by einheitlix
Oh and no offense - but if I know how to integrate an ebuild in portage through /usr/local/portage (with PORTDIR_OVERLAY), believe you me... I know how to create a directory :D
Hey, no offense too, but consider that there are people in the forum (like me) that are new to gentoo and who don't know *which* files or directories they must change/create ;) More information does not hurt.

Cheers!
Logged

einheitlix

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
Re: Under GentooX
« Reply #9 on: February 23, 2005, 11:00:22 PM »

Although I would not generally agree to that (IMO, too much information can also obfuscate the important points), in this case it indeed doesn't hurt. It's just that, as an answer to my post, I somehow interpreted those instructions as intended for me. Just had to defend myself ;)

Well, I just finished re-emerging wxGTK 2.4.2-r3 and aMule without support for gtk2 and unicode. Gee, gtk is so much uglier than gtk2 :( But if it works better, guess that's more important... I'm curious whether this will actually solve the problem, and after thedude's post, I'm quite confident indeed :)

While I was at it, I also emerged amule 2.0.0_rc8 instead of amule 1.2.8. I intended to wait for wxGTK 2.5.3 to be stable, but as I emerged it without gtk2 and unicode anyways now, why not?

I will report on my experiences with this new configuration later :)
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Under GentooX
« Reply #10 on: February 23, 2005, 11:51:36 PM »

Absolutely no offense taken  :)

Two reasons why I answered as I did:
First: It is sometimes extremely difficult (for me) to classify after a few posts how much experience / knowledge somebody has. Either you talk somewhere way over his head or you start with the bees and the flowers. I usually try to make my posts understandable not only for the original poster but also for somebody who comes along with the same problem, searches the forum and finds this post. And I try to make my instructions as complete and easy to follow as possible, even if that means I sometimes tell somebody things they already know. That sometimes gets a little out of hand and my texts get a little long, but from experience it seems to be the best way.

Second: My instructions were in this specific case not mainly for you but for squalo, the person who originally started the thread and asked "How do I install amule on Gentoo?". I have no idea about his knowledge of gentoo or linux in general so I start a more "low level approach" for the reasons stated above.


Now to get a little back to topic:
Quote
As I said, one would need to emerge amule without gtk2 and unicode for it to work with wxGTK 4.2 (I did not know that you had to compile wxGTK without gtk2 and unicode support too, though, as I haven't even tried to emerge aMule 2.0.0rc8 yet).

Talking about unicode and GTK amule uses whatever wxGTK was compiled with. Yes, there are the useflags gtk2 and unicode in the ebuild, but if you take a look inside the ebuild you can see that they are only used to check dependencies.

And as a last sidenote: I just wrote an article in our wiki about installing amule on Gentoo: http://www.amule.org/wiki/index.php/HowTo_Compile_In_Gentoo Comments amd improvements are welcome as usual.
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Under GentooX
« Reply #11 on: February 23, 2005, 11:53:18 PM »

Quote
Well, I just finished re-emerging wxGTK 2.4.2-r3 and aMule without support for gtk2 and unicode. Gee, gtk is so much uglier than gtk2  But if it works better, guess that's more important... I'm curious whether this will actually solve the problem, and after thedude's post, I'm quite confident indeed  
If you are refering to the memleak, wxGTK-2.4.2 works better indeed. But you can't use gtk2 nor unicode. I am currently using wxGTK-CVS with gtk2 and unicode, and seems stable, though it memleaks a bit. Anyway, nothing serious here, it runs for days.

Quote
While I was at it, I also emerged amule 2.0.0_rc8 instead of amule 1.2.8. I intended to wait for wxGTK 2.5.3 to be stable, but as I emerged it without gtk2 and unicode anyways now, why not?

I will report on my experiences with this new configuration later
It would be much better if you tried a CVS tarball, rc8 had a lot of fixed bugs and I have not seen any new bug in rc8 lately. Anyway, every help is appreciated :)

Cheers!
Logged