aMule Forum
English => Compilation problems => Topic started by: Endgamer 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....
-
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.
-
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
-
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
-
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...
-
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.
-
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.
-
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!