aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compiled successfully, but cannot run...  (Read 2680 times)

xellzhang

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Compiled successfully, but cannot run...
« 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...
Logged

AnimAlf

  • Full Member
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 225
    • Home
RE: Compiled successfully, but cannot run...
« Reply #1 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

xellzhang

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Compiled successfully, but cannot run...
« Reply #2 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
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compiled successfully, but cannot run...
« Reply #3 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...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Compiled successfully, but cannot run...
« Reply #4 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.
Logged

xellzhang

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Compiled successfully, but cannot run...
« Reply #5 on: October 03, 2006, 11:12:04 AM »

thanks. It works now!
Logged