aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 2 [3]

Author Topic: Trouble with upnp version  (Read 27846 times)

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Trouble with upnp version
« Reply #30 on: July 08, 2008, 08:40:39 AM »

I compiled libupnp by hand like this:

First, i downloaded the tar.bz2 from sourceforge
http://mesh.dl.sourceforge.net/sourceforge/pupnp/libupnp-1.6.6.tar.bz2

After uncompressing it, i did this:

Code: [Select]
./configure --enable-debug
make
sudo make install



Then i compiled amule:

Code: [Select]
./configure --prefix=/usr --enable-amule-gui --enable-alc --enable-alcc --enable-utf8-systray --enable-debug --disable-optimize --enable-amulecmd --enable-monolithic --enable-amule-daemon --enable-cas --enable-wxcas --enable-webserver --enable-ccache  --enable-geoip --enable-remote
No errors, and upnp flag detected in the report

Code: [Select]
make
sudo make install






All went fine, like allways, but when i launch amule

Code: [Select]
amule
i get this error:

Code: [Select]
amule: error while loading shared libraries: libupnp.so.3: cannot open shared object file: No such file or directory
So i did this:

Code: [Select]
jon@Hardy:~$ locate libupnp.so.3
/home/jon/libupnp-1.6.6/upnp/.libs/libupnp.so.3
/home/jon/libupnp-1.6.6/upnp/.libs/libupnp.so.3.0.5
/home/jon/libupnp-1.6.6/upnp/.libs/libupnp.so.3.0.5T
/usr/local/lib/libupnp.so.3
/usr/local/lib/libupnp.so.3.0.5



And, obviously, amule does not run at all.. :(

The machine is Ubuntu Server 8.04

I need to compile upnp by hand because i want to test it and report some backtraces, because i found some problems with it...

How can i fix this problem??

Thanks!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Trouble with upnp version
« Reply #31 on: July 08, 2008, 09:28:28 AM »

Try to start aMule as follows:
Code: [Select]
LD_LIBRARY_PATH=/home/jon/libupnp-1.6.6/upnp/.libs/ amule
I believe neither /usr/local/lib nor the path in your home directory are default search paths (see /etc/ld.so.conf to check this), so it won't search for the library there. Google LD_LIBRARY_PATH and /etc/ld.so.conf for more information.

Edit: it's lib, not bin...
« Last Edit: July 08, 2008, 10:32:50 AM by wuischke »
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Trouble with upnp version
« Reply #32 on: July 08, 2008, 09:32:33 AM »

And why amule does not try to search the library in /usr/local/lib/libupnp.so.3 , which would be the logic action?

thanks!
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Trouble with upnp version
« Reply #33 on: July 08, 2008, 10:34:06 AM »

aMule doesn't search, the operating system does. As I said above, I believe /usr/local/bin is not in /etc/ld.so.conf and will therefore not be searched.
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Trouble with upnp version
« Reply #34 on: July 08, 2008, 10:43:02 AM »

Try to start aMule as follows:
Code: [Select]
LD_LIBRARY_PATH=/home/jon/libupnp-1.6.6/upnp/.libs/ amule

Thanks wuischke, this worked perfectly ;)
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Trouble with upnp version
« Reply #35 on: July 08, 2008, 12:26:06 PM »

And why amule does not try to search the library in /usr/local/lib/libupnp.so.3 , which would be the logic action?

You may want to add /usr/local/lib to /etc/ld.so.conf and run ldconfig as root. It is usually a good idea to run ldconfig after installing a shared library.
Logged
concordia cum veritate

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Trouble with upnp version
« Reply #36 on: July 11, 2008, 09:15:00 AM »

You may want to add /usr/local/lib to /etc/ld.so.conf and run ldconfig as root. It is usually a good idea to run ldconfig after installing a shared library.

This worked perfectly.

thanks!!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: Trouble with upnp version
« Reply #37 on: July 11, 2008, 04:20:14 PM »

The only thing I have to add is that in your case, the correct path to add to ld.so.conf is /usr/local/lib/, which btw, in most distributions should already be there, and is where "make install" has placed the library files. The path /home/jon/libupnp-1.6.6/upnp/.libs/ is the place where you have compiled and created the library originally. If you for some reason delete the source files directory, your library will be lost. Not to mention that other users in your system will not have access to the library if it remains there.

Cheers!
Logged

GrayFox.i0n

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 139
Re: Trouble with upnp version
« Reply #38 on: July 11, 2008, 04:34:55 PM »

The only thing I have to add is that in your case, the correct path to add to ld.so.conf is /usr/local/lib/, which btw, in most distributions should already be there, and is where "make install" has placed the library files. The path /home/jon/libupnp-1.6.6/upnp/.libs/ is the place where you have compiled and created the library originally. If you for some reason delete the source files directory, your library will be lost. Not to mention that other users in your system will not have access to the library if it remains there.

Cheers!

Thnaks phonenix, i already actually did it the way u said.....

Thanks again
Logged
Pages: 1 2 [3]