Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 1 | NLSR Installation Instructions |
| 2 | ============================== |
| 3 | |
| 4 | .. toctree:: |
| 5 | .. |
| 6 | |
| 7 | Prerequisites |
| 8 | ------------- |
| 9 | |
Davide Pesavento | 1e9faf1 | 2023-01-21 16:04:50 -0500 | [diff] [blame] | 10 | - `NFD <https://github.com/named-data/NFD>`__ and its dependencies. |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 11 | |
Davide Pesavento | 1e9faf1 | 2023-01-21 16:04:50 -0500 | [diff] [blame] | 12 | Check out the `documentation <https://docs.named-data.net/NFD/current/INSTALL.html>`__ |
| 13 | for detailed installation and running instructions. |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 14 | |
Davide Pesavento | 1e9faf1 | 2023-01-21 16:04:50 -0500 | [diff] [blame] | 15 | - PSync library [optional but recommended, enabled by default] |
Ashlesh Gawande | 415676b | 2016-12-22 00:26:23 -0600 | [diff] [blame] | 16 | |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame] | 17 | Download the PSync library and build it according to the instructions available at |
| 18 | https://github.com/named-data/PSync#build |
Ashlesh Gawande | 32ec3fd | 2018-07-18 13:42:32 -0500 | [diff] [blame] | 19 | |
Davide Pesavento | 1e9faf1 | 2023-01-21 16:04:50 -0500 | [diff] [blame] | 20 | - ChronoSync library [optional] |
Ashlesh Gawande | 30d96e4 | 2021-03-21 19:15:33 -0700 | [diff] [blame] | 21 | |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame] | 22 | 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 Gawande | 30d96e4 | 2021-03-21 19:15:33 -0700 | [diff] [blame] | 25 | |
Davide Pesavento | 1e9faf1 | 2023-01-21 16:04:50 -0500 | [diff] [blame] | 26 | - SVS library [optional] |
Varun Patil | 7d2d689 | 2022-10-14 12:50:30 -0700 | [diff] [blame] | 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 | |
Davide Pesavento | 1e9faf1 | 2023-01-21 16:04:50 -0500 | [diff] [blame] | 32 | Note that at least one sync library must be enabled. |
| 33 | |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 34 | Build |
| 35 | ----- |
| 36 | |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame] | 37 | Execute the following commands to build NLSR: |
| 38 | |
| 39 | .. code-block:: sh |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 40 | |
| 41 | ./waf configure |
| 42 | ./waf |
| 43 | sudo ./waf install |
| 44 | |
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 45 | Refer to ``./waf --help`` for more options that can be used during the configure stage and |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 46 | how to properly configure NLSR. |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 47 | |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame] | 48 | If your pkgconfig path is not set properly, you can do the following before running ``./waf |
| 49 | configure``: |
| 50 | |
| 51 | .. code-block:: sh |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 52 | |
Davide Pesavento | f6be8e3 | 2020-04-30 16:06:03 -0400 | [diff] [blame] | 53 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig |
| 54 | # or |
Vince Lehman | 59dfac3 | 2015-04-29 12:37:26 -0500 | [diff] [blame] | 55 | export PKG_CONFIG_PATH=/path/to/pkgconfig/on/your/machine |
Ashlesh Gawande | 30d96e4 | 2021-03-21 19:15:33 -0700 | [diff] [blame] | 56 | |
| 57 | If ChronoSync support is desired, NLSR needs to be configured with the following option: |
| 58 | |
Davide Pesavento | ede5963 | 2022-08-26 20:35:44 -0400 | [diff] [blame] | 59 | .. code-block:: sh |
| 60 | |
| 61 | ./waf configure --with-chronosync |