aMule Forum

English => aMule Help => Topic started by: xellzhang on October 03, 2006, 07:45:35 AM

Title: Compiled successfully, but cannot run...
Post by: xellzhang on October 03, 2006, 07:45:35 AM
I have installed the wxWidgets 2.7.

After compiled amule 2.1.3 successfully, I type "amule" to run it. But I get:
amule: error while loading shared libraries: libwx_gtk2u-2.7.so.0: cannot open shared object file: No such file or directory

BUT the file(a link) "libwx_gtk2u-2.7.so.0" is in "/usr/local/lib".

what is the problem?

I tried wxWidgets 2.6.3, the same problem...
Title: RE: Compiled successfully, but cannot run...
Post by: AnimAlf on October 03, 2006, 07:52:49 AM
looks to seeing if in /etc/ld.so.conf has the route /usr/local/lib

Code: [Select]
# cat /etc/ld.so.conf | grep/usr/local/lib
If you have it, probably you forgot to run ldconfig after installing the wx

Code: [Select]
# ldconfig
Title: Re: Compiled successfully, but cannot run...
Post by: xellzhang on October 03, 2006, 08:56:22 AM
I did  not have the "/etc/ld.so.conf" file...
I have run ldconfig, but the problem still exists.

I am using Ubuntu 6.06
Title: Re: Compiled successfully, but cannot run...
Post by: stefanero on October 03, 2006, 08:59:30 AM
you must hast /etc/ld.so.conf thats a must have file on linux...even on ubuntu...
Title: Re: Compiled successfully, but cannot run...
Post by: wuischke on October 03, 2006, 09:27:03 AM
Just create a new ld.so.conf file with the content
Code: [Select]
/usr/local/lib
Ubuntu is shipped in fact without this file, iirc. Happened to me as well, but I don't remember whether the file was just empty or non-existant.
Title: Re: Compiled successfully, but cannot run...
Post by: xellzhang on October 03, 2006, 11:12:04 AM
thanks. It works now!