Difference between revisions of "Libicnet"

From fd.io
Jump to: navigation, search
(Created page with "= ConsumerSocket/ProducerTransport API: data transport library for ICN = This library is designed to provide a transport layer for applications willing to communicate using a...")
 
(Install the library)
Line 24: Line 24:
 
== Install the library ==
 
== Install the library ==
  
For installing the library:
+
=== Installation from binary packages ===
 +
 
 +
Ubuntu 14.04 and Ubuntu 16.04
 +
<syntaxhighlight lang="bash">
 +
$ echo "deb [trusted=yes] https://nexus.fd.io/content/repositories/fd.io.master.ubuntu.$(lsb_release -sc).main/ ./" \
 +
          | sudo tee -a /etc/apt/sources.list.d/99fd.io.list
 +
$ sudo apt-get update
 +
$ sudo apt-get install libicnet
 +
</syntaxhighlight>
 +
 
 +
Centos 7
 +
<syntaxhighlight lang="bash">
 +
$ cat << EOF | sudo tee -a /etc/yum.repos.d/99fd.io.repo
 +
[fdio-cicn-master]
 +
name=fd.io master branch latest merge
 +
baseurl=https://nexus.fd.io/content/repositories/fd.io.master.centos7/
 +
enabled=1
 +
gpgcheck=0
 +
EOF
 +
$ sudo yum install libicnet
 +
</syntaxhighlight>
 +
 
 +
=== Installation from source code ===
  
 
<source lang="bash"> $ cd build
 
<source lang="bash"> $ cd build
 
  $ sudo make install</source>
 
  $ sudo make install</source>
 +
 
== Platforms ==
 
== Platforms ==
  

Revision as of 14:59, 18 April 2017

ConsumerSocket/ProducerTransport API: data transport library for ICN

This library is designed to provide a transport layer for applications willing to communicate using an ICN protocol stack. It also provides some useful tools showing how to use the library.

Dependencies

  • libboost-system-dev
  • libparc
  • libccnx-common
  • long-bow

Build the library

For building the library, from the root folder of the project:

 $ mkdir build && cd build
 $ cmake ..
 $ make

If you do not want to build the tools:

 $ mkdir build && cd build
 $ cmake -D BUILD_TESTS=OFF ..
 $ make

Install the library

Installation from binary packages

Ubuntu 14.04 and Ubuntu 16.04

 $ echo "deb [trusted=yes] https://nexus.fd.io/content/repositories/fd.io.master.ubuntu.$(lsb_release -sc).main/ ./" \
          | sudo tee -a /etc/apt/sources.list.d/99fd.io.list
 $ sudo apt-get update
 $ sudo apt-get install libicnet

Centos 7

$ cat << EOF | sudo tee -a /etc/yum.repos.d/99fd.io.repo
[fdio-cicn-master]
name=fd.io master branch latest merge
baseurl=https://nexus.fd.io/content/repositories/fd.io.master.centos7/
enabled=1
gpgcheck=0
EOF
$ sudo yum install libicnet

Installation from source code

 $ cd build
 $ sudo make install

Platforms

Libicnet has been tested in:

- Ubuntu 16.04 (x86_64)
- Debian Testing
- MacOSX 10.12