On Thu, 15 Dec 2011, pmundur wrote:
Yeah, I tried setting PKG_CONFIG_PATH too yesterday but that didn't work either. I may not have done it right. Can you tell us what precisely we should do here? Thanks.
Hm, for me setting PKG_CONFIG_PATH worked, nothing else was required. Well, some way or another you should tell configure where to search for ibrcommon. What does 'pkg-config --modversion ibrcommon' say? It should output '0.6.5'. If not, check that /usr/local/lib/pkgconfig contains ibrcommon.pc.
Another option is to use this script http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases/ibrdtn-0.6.5.sh It sets the required environment variables properly and there is no need to install the libraries at all. Here http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/getstarted.html it's explained how to run the script.
The third way is to set ibrcommon_CFLAGS, ibrcommon_LIBS. I've just tried `export ibrcommon_CFLAGS='-I/usr/local/include/ibrcommon-0.6'` and `export ibrcommon_LIBS='-L/usr/local/lib -librcommon -lpthread'`. It works, too.
Regards, Arseny.
On Thu, 15 Dec 2011 18:22:05 +0200, Kurnikov Arseny arseny.kurnikov@aalto.fi wrote:
On Thu, 15 Dec 2011, pmundur wrote:
Thanks for your response. We did not try to install ibrcommon to a non-standard place, just followed the simple instructions to configure, make and make install in order. We can see the ibrcommon shared libraries in /usr/local/lib. But when we try to run configure for ibrdtn (after make install for ibrcommon with no errors), it fails to find the ibrcommon library. We set LD_LIBRARY_PATH and also added /usr/local/lib to /etc/ld.so.conf, but none of it works.
-- Padma
It's not LD_LIBRARY_PATH that should be set. It tells the loader where to search for libraries when you run an executable. It's PKG_CONFIG_PATH that's used by pkg-config utility that in turn is invoked by configure. '/usr/local/lib/pkgconfig' - it should exist and contain ibrcommon.pc. Or set ibrcommon_CFLAGS to '-I/usr/local/include/ibrcommon-0.6' and ibrcommon_LIBS to '-L/usr/local/lib -librcommon -lpthread'. But then of course you'll have to do something similar with ibrdtn_CFLAGS and ibrdtn_LIBS when making ibrdtnd. So PKG_CONFIG_PATH is more general: set once, works with both ibrdtn and ibrdtnd. And with ibrdtn-tools, too:)
Regards, Arseny.
For example, if you configured and installed ibrcommon with --prefix=/home/user/local/ then try 'export PKG_CONFIG_PATH=/home/user/local/lib/pkgconfig/' (bash shell syntax). Also you can manually set ibrcommon_LIBS and ibrcommon_CFLAGS environment variables to point to the correct directory but PKG_CONFIG_PATH should do it automatically.