blob: 519841b884209d18f02391176ff44c533da7151c [file] [log] [blame]
Vince Lehmanb722b102014-08-24 16:33:49 -05001NLSR Installation Instructions
2==============================
3
4.. toctree::
5..
6
7Prerequisites
8-------------
9
Davide Pesaventoede59632022-08-26 20:35:44 -040010- `NFD <https://named-data.net/doc/NFD/>`_ and its dependencies
Vince Lehmanb722b102014-08-24 16:33:49 -050011
Davide Pesaventoede59632022-08-26 20:35:44 -040012 Refer to `Getting started with NFD <https://named-data.net/doc/NFD/current/INSTALL.html>`_
13 for detailed installation and running instruction.
Vince Lehmanb722b102014-08-24 16:33:49 -050014
Davide Pesaventoede59632022-08-26 20:35:44 -040015- PSync library
Ashlesh Gawande415676b2016-12-22 00:26:23 -060016
Davide Pesaventoede59632022-08-26 20:35:44 -040017 Download the PSync library and build it according to the instructions available at
18 https://github.com/named-data/PSync#build
Ashlesh Gawande32ec3fd2018-07-18 13:42:32 -050019
Davide Pesaventoede59632022-08-26 20:35:44 -040020- [Optional] ChronoSync library
Ashlesh Gawande30d96e42021-03-21 19:15:33 -070021
Davide Pesaventoede59632022-08-26 20:35:44 -040022 For testing purposes, NLSR can be optionally built with Chronosync support. Download
23 the ChronoSync library and build it according to the instructions available at
24 https://github.com/named-data/ChronoSync#build
Ashlesh Gawande30d96e42021-03-21 19:15:33 -070025
Varun Patil7d2d6892022-10-14 12:50:30 -070026- [Optional] SVS library
27
28 NLSR can be used with State Vector Sync as the underlying Sync protocol. Download
29 the ndn-svs library and build it according to the instructions available at
30 https://github.com/named-data/ndn-svs#installation
31
Vince Lehmanb722b102014-08-24 16:33:49 -050032Build
33-----
34
Davide Pesaventoede59632022-08-26 20:35:44 -040035Execute the following commands to build NLSR:
36
37.. code-block:: sh
Vince Lehmanb722b102014-08-24 16:33:49 -050038
39 ./waf configure
40 ./waf
41 sudo ./waf install
42
Davide Pesaventof6be8e32020-04-30 16:06:03 -040043Refer to ``./waf --help`` for more options that can be used during the configure stage and
Alexander Afanasyev7decbbf2014-08-24 21:29:01 -070044how to properly configure NLSR.
Vince Lehmanb722b102014-08-24 16:33:49 -050045
Davide Pesaventoede59632022-08-26 20:35:44 -040046If your pkgconfig path is not set properly, you can do the following before running ``./waf
47configure``:
48
49.. code-block:: sh
Vince Lehmanb722b102014-08-24 16:33:49 -050050
Davide Pesaventof6be8e32020-04-30 16:06:03 -040051 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
52 # or
Vince Lehman59dfac32015-04-29 12:37:26 -050053 export PKG_CONFIG_PATH=/path/to/pkgconfig/on/your/machine
Ashlesh Gawande30d96e42021-03-21 19:15:33 -070054
55If ChronoSync support is desired, NLSR needs to be configured with the following option:
56
Davide Pesaventoede59632022-08-26 20:35:44 -040057.. code-block:: sh
58
59 ./waf configure --with-chronosync