Re: [ibr-dtn] 64-bit installation
On Wed, 14 Dec 2011, Carson Dunbar wrote:
Hello, I was wondering if there have been any issues regarding installation of IBR-DTN on 64-bit computers. I've tried installing it on an 64-bit AMD computer running Debian and the ibrcommon library is not being found when trying to install ibrdtn. Specifically I get the error below during configuration.
checking for ibrcommon... no ibrcommon library not found!
I had no issues with 64-bit processors. And it doesn't look like one. Probably you installed ibrcommon to some non-standard place and configure script simply can't find it. 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). This should tell the script to search in appropriate place. Also you can manually set ibrcommon_LIBS and ibrcommon_CFLAGS environment variables to point to the correct directory but PKG_CONFIG_PATH should it automatically.
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
On Thu, 15 Dec 2011 12:36:14 +0200, Kurnikov Arseny arseny.kurnikov@aalto.fi wrote:
On Wed, 14 Dec 2011, Carson Dunbar wrote:
Hello, I was wondering if there have been any issues regarding installation of IBR-DTN on 64-bit computers. I've tried installing it on an 64-bit AMD computer running Debian and the ibrcommon library is not being found
when
trying to install ibrdtn. Specifically I get the error below during configuration.
checking for ibrcommon... no ibrcommon library not found!
I had no issues with 64-bit processors. And it doesn't look like one. Probably you installed ibrcommon to some non-standard place and
configure
script simply can't find it. 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). This should tell the script to search in appropriate place. Also you can manually set ibrcommon_LIBS and ibrcommon_CFLAGS
environment
variables to point to the correct directory but PKG_CONFIG_PATH should
it
automatically.
!! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to
ibr-dtn-request@ibr.cs.tu-bs.de
!! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
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.
On Thu, 15 Dec 2011 12:36:14 +0200, Kurnikov Arseny arseny.kurnikov@aalto.fi wrote:
On Wed, 14 Dec 2011, Carson Dunbar wrote:
Hello, I was wondering if there have been any issues regarding installation of IBR-DTN on 64-bit computers. I've tried installing it on an 64-bit AMD computer running Debian and the ibrcommon library is not being found when trying to install ibrdtn. Specifically I get the error below during configuration.
checking for ibrcommon... no ibrcommon library not found!
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.
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.
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.
On Thu, 15 Dec 2011 12:36:14 +0200, Kurnikov Arseny arseny.kurnikov@aalto.fi wrote:
On Wed, 14 Dec 2011, Carson Dunbar wrote:
Hello, I was wondering if there have been any issues regarding installation
of
IBR-DTN on 64-bit computers. I've tried installing it on an 64-bit AMD computer running Debian and the ibrcommon library is not being found when trying to install ibrdtn. Specifically I get the error below during configuration.
checking for ibrcommon... no ibrcommon library not found!
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.
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.
Hello.
Am 15.12.2011 17:47, schrieb pmundur:
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.
If compiling the source is too difficult in your environment, you could use the pre-compiled packages available for debian 5.0 and 6.0 (x86 and x64). The instruction to install them are on the website of IBR-DTN. For development of your own apps or changing some code in the daemon you could install the "ibrdtn-dev" package. It installs all the libraries you need to compile the daemon or any tools automatically.
Best regards, Johannes
Hello,
Thanks for the response. We eventually figured out that the problem was trivial and the computers we were trying to install it on were missing pkg-config. Thanks for the help though.
Carson
On Fri, Dec 16, 2011 at 3:14 AM, Johannes Morgenroth < morgenro@ibr.cs.tu-bs.de> wrote:
Hello.
Am 15.12.2011 17:47, schrieb pmundur:
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.
If compiling the source is too difficult in your environment, you could use the pre-compiled packages available for debian 5.0 and 6.0 (x86 and x64). The instruction to install them are on the website of IBR-DTN. For development of your own apps or changing some code in the daemon you could install the "ibrdtn-dev" package. It installs all the libraries you need to compile the daemon or any tools automatically.
Best regards, Johannes
-- Johannes Morgenroth Institut fuer Betriebssysteme und Rechnerverbund Tel.: +49-531-391-3249 Muehlenpfordtstrasse 23 Fax.: +49-531-391-5936 TU Braunschweig D-38106 Braunschweig
-- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
Hello,
I am currently working on my own type of "fragmentation" for IBR-DTN. Did you implement any fragmentation code and if so, where was that code located? I am trying to split a bundle's stream into smaller packets and I'm not sure how to do it with any other file type than a plain text files. Is it possible to adjust the stream so that they are reading with ios::binary enabled? Thank you.
Carson Dunbar
Hi,
IMHO there is no fragmentation in ibrdtn yet. But possibly Johannes Morgenroth could correct me.
Till Lorentzen
Am 23.01.2012 17:13, schrieb Carson Dunbar:
Hello,
I am currently working on my own type of "fragmentation" for IBR-DTN.
Did you implement any fragmentation code and if so, where was that code located? I am trying to split a bundle's stream into smaller packets and I'm not sure how to do it with any other file type than a plain text files. Is it possible to adjust the stream so that they are reading with ios::binary enabled? Thank you.
Carson Dunbar
-- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
Hello Carson,
classical fragmentation as described in RFC5050 is not implemented yet.
But the issue you described sounds like a job for the dtnstream tool. To use dtnstream you need a sender and a receiver. The sender writes the data to sent into the standard output pipe and this is piped into the dtnstream application. For a DTN webradio this looks like this.
$ wget -O - http://webradio.url/audio.mp3 | dtnstream -s radio-station -d dtn://receiver-node/webradio
Additionally, you could specify the size of each chunk "-c" and the lifetime of the bundles "-l". The parameter "-s" defines the application part of the source EID of the sender or the destination EID of the receiver.
On the receiver side, you just need to pipe the received stream into a player application.
$ dtnstream -s webradio | vlc -
The parameter "-t" sets a timeout to skip lost bundles after a cuple of seconds and "-w" tells the application to wait until the first chunk was received. By default the app takes the first received chunk as starting point.
Kind regards, Johannes
Am 23.01.2012 17:13, schrieb Carson Dunbar:
Hello,
I am currently working on my own type of "fragmentation" for IBR-DTN.
Did you implement any fragmentation code and if so, where was that code located? I am trying to split a bundle's stream into smaller packets and I'm not sure how to do it with any other file type than a plain text files. Is it possible to adjust the stream so that they are reading with ios::binary enabled? Thank you.
Carson Dunbar
participants (5)
-
Carson Dunbar
-
Johannes Morgenroth
-
Kurnikov Arseny
-
pmundur
-
Till Lorentzen