Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 1 | # ndn-tools Build Instructions |
| 2 | |
| 3 | This document describes how to build and install ndn-tools. |
| 4 | |
| 5 | ## Prerequisites |
| 6 | |
Davide Pesavento | db9613e | 2023-01-20 20:52:21 -0500 | [diff] [blame] | 7 | * Install the [ndn-cxx](https://github.com/named-data/ndn-cxx) library and its dependencies. |
| 8 | Check out [the documentation](https://docs.named-data.net/ndn-cxx/current/INSTALL.html) for |
| 9 | detailed installation instructions. All platforms supported by ndn-cxx are also supported |
| 10 | by ndn-tools. |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 11 | |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 12 | *Note*: If you have installed ndn-cxx from a binary package, please make sure the development |
| 13 | headers are installed (e.g., if using Ubuntu PPA, the `libndn-cxx-dev` package is needed). |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 14 | |
Davide Pesavento | db9613e | 2023-01-20 20:52:21 -0500 | [diff] [blame] | 15 | * Install `libpcap` (except on macOS where it is provided by the base system). |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 16 | |
Davide Pesavento | f597d07 | 2022-07-04 21:20:21 -0400 | [diff] [blame] | 17 | On Debian and Ubuntu: |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 18 | |
Davide Pesavento | f6d7599 | 2024-02-27 19:56:06 -0500 | [diff] [blame] | 19 | ```shell |
| 20 | sudo apt install libpcap-dev |
| 21 | ``` |
Davide Pesavento | d5c2447 | 2020-04-01 17:46:18 -0400 | [diff] [blame] | 22 | |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 23 | On CentOS and Fedora: |
Davide Pesavento | d5c2447 | 2020-04-01 17:46:18 -0400 | [diff] [blame] | 24 | |
Davide Pesavento | f6d7599 | 2024-02-27 19:56:06 -0500 | [diff] [blame] | 25 | ```shell |
| 26 | sudo dnf install libpcap-devel |
| 27 | ``` |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 28 | |
| 29 | ## Build Steps |
| 30 | |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 31 | To configure, compile, and install ndn-tools, type the following commands |
| 32 | in ndn-tools source directory: |
| 33 | |
Davide Pesavento | f6d7599 | 2024-02-27 19:56:06 -0500 | [diff] [blame] | 34 | ```shell |
| 35 | ./waf configure |
| 36 | ./waf |
| 37 | sudo ./waf install |
| 38 | ``` |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 39 | |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 40 | To uninstall: |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 41 | |
Davide Pesavento | f6d7599 | 2024-02-27 19:56:06 -0500 | [diff] [blame] | 42 | ```shell |
| 43 | sudo ./waf uninstall |
| 44 | ``` |