aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Wx 2.6.3 interaction problem?  (Read 4067 times)

Endgamer

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Wx 2.6.3 interaction problem?
« on: April 12, 2006, 11:31:29 PM »

Hi, folks. Longtime user, firsttime poster. I've got what I think is a new problem, but probably one that will come up from other people as it's related to Ubuntu Dapper (the newest release). I updated to Dapper with no major probs, aMule worked fine, but then I recompiled from CVS. ./configure ran fine, make and make install fine, but when I tried to run it:

endgamer@cpc1-kemp1-5-0-cust10:~/new/wxGTK-2.6.3$ amule
amule: /usr/lib/libwx_gtk2u_core-2.6.so.0: version `WXU_2.6.2' not found (required by amule)
amule: /usr/lib/libwx_gtk2u_core-2.6.so.0: version `WXU_2.6.3' not found (required by amule)

Any ideas? I've tried numerous versions of the CVS, including going back to the one I had compiled before, haven't yet resorted to going back to a release version. I've also recompiled wxWidgets a couple of times from the 2.6.3 sources, seem to be no problems with that.

If anyone can offer advice I'd really appreciate it - I can usually troubleshoot from error messages but this one really doesn't give me enough to work with as far as where the problem is located....
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Wx 2.6.3 interaction problem?
« Reply #1 on: April 12, 2006, 11:38:47 PM »

Hello Endgamer!

aMule doesn't find the required libraries, because they are in /usr/local/ and it doesn't search there.

Add the following flag to your wxGTK-configure-command: --prefix=/usr/
Or just update your LD_LIBRARY_PATH before starting amule:
export LD_LIBRARY_PATH=/usr/local/bin:$LD_LIBRARY_PATH

I hope that solves your problems or at least give you a hint on where to search the error.
Logged

Endgamer

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Bugger
« Reply #2 on: April 13, 2006, 12:17:35 AM »

Hi Wuischke, thanks for your response,
     Unfortunately that doesn't seem to have done it - I recompiled wx with the --prefix arg, and it still didn't work, so then I recompiled amule, and that didn't fix it, then I exported the LD_LIBRARY_PATH just as you said (I copied and pasted to make sure I didn't mess it up) and it still gave exactly the same error - any other ideas?

Mark
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Wx 2.6.3 interaction problem?
« Reply #3 on: April 13, 2006, 07:42:11 AM »

OK, then let's ensure, that the libraries are where I thought they are:
ls /usr/local/lib | grep wx

And please excuse my mistake above, the right command is: export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Logged

Endgamer

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Cheers!
« Reply #4 on: April 13, 2006, 08:26:56 AM »

Ah-ha! Thankyou, that seems to have got it! I set the path and it worked! Now, I'm told that setting the LD_LIBRARY_PATH variable isn't actually a great idea, so how do I make sure wxwidgets goes to the right location? I definitely compiled it with --prefix=/usr/ and that didn't do it...
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Wx 2.6.3 interaction problem?
« Reply #5 on: April 13, 2006, 07:10:45 PM »

OK, open your Makefile in the wxwindows-source-directory and check whether the first line reads prefix = /usr/
If this applies a 'make install' should copy the files to the right place.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
RE: Cheers!
« Reply #6 on: April 13, 2006, 10:35:33 PM »

Quote
Originally posted by Endgamer
[...] I'm told that setting the LD_LIBRARY_PATH variable isn't actually a great idea [...]
Yes, this is right. Edit /etc/ld.so.conf instead.

Just add a line that contains nothing else than

/usr/local/lib

to the file

/etc/ld.so.conf,

afterwards run the command

/sbin/ldconfig

and you're done.

I don't recommend building wxWidgets yet again with --prefix=/usr! /usr is reserved for pre-compiled, pre-packaged software. All self-compiled software belongs to /usr/local. Otherwise you risk making your system unmanagable sooner or later.
Logged

Endgamer

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 4
Re: Wx 2.6.3 interaction problem?
« Reply #7 on: April 17, 2006, 09:46:48 AM »

Thankyou, both of you - you've been a great help. I'm still feeling my way around the libraries etc and any information which makes things clearer is great!
Logged