aMule Forum
English => Compilation problems => Topic started by: kriko on March 24, 2007, 01:28:01 PM
-
I compiled my mule with:
./configure --prefix /home/kriko/Desktop/mulica/ --with-wxdir=/usr/wxWidgets/bin/ --with-wx-prefix=/usr/wxWidgets/
As you see I have wxwidgets in a special path.
When I start amule I get:
./amule: error while loading shared libraries: libwx_gtk2u_adv-2.8.so.0: cannot open shared object file: No such file or directory
What can I do so amule will pick this file from wxwidget dir as specified. I also have globally installed wxwidget, but it is a stripped down version and amule doesn't compile with it at all.
-
Hi kriko:
Adjust LD_LIBRARY_PATH
e.g. export LD_LIBRARY_PATH=/home/kriko/Desktop/mulica/lib/:${LD_LIBRARY_PATH}
If it works now, you can adjust /etc/ld.so.conf (or create it) and add a line containing your wx path and run ldconfig as root.
kind regards
-
Or if you don't want to change a global environment variable, you can start aMule like this:
$ LD_LIBRARY_PATH=/usr/wxWidgets/lib/ amule &
This is what I do, because I have more than one version of wxWidgets installed in my system. Depending on the version of aMule/wxWidgets I am testing, I just change the directory in the LD_LIBRARY_PATH path.