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 | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 19 | sudo apt install libpcap-dev |
Davide Pesavento | d5c2447 | 2020-04-01 17:46:18 -0400 | [diff] [blame] | 20 | |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 21 | On CentOS and Fedora: |
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 | sudo dnf install libpcap-devel |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 24 | |
| 25 | ## Build Steps |
| 26 | |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 27 | To configure, compile, and install ndn-tools, type the following commands |
| 28 | in ndn-tools source directory: |
| 29 | |
| 30 | ./waf configure |
| 31 | ./waf |
| 32 | sudo ./waf install |
| 33 | |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 34 | To uninstall: |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 35 | |
| 36 | sudo ./waf uninstall |