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 | |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 7 | - Install the [ndn-cxx](https://named-data.net/doc/ndn-cxx/current/) library and its prerequisites. |
| 8 | Please see [Getting Started with ndn-cxx](https://named-data.net/doc/ndn-cxx/current/INSTALL.html) |
| 9 | for how to install ndn-cxx. |
| 10 | Note: If you have installed ndn-cxx from a binary package, please make sure development headers |
Davide Pesavento | d5c2447 | 2020-04-01 17:46:18 -0400 | [diff] [blame] | 11 | are installed (e.g., if using Ubuntu PPA, the `libndn-cxx-dev` package is needed). |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 12 | |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 13 | Any operating system and compiler supported by ndn-cxx is supported by ndn-tools. |
| 14 | |
Davide Pesavento | 84d8477 | 2019-04-07 14:40:07 -0400 | [diff] [blame] | 15 | - `libpcap` |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 16 | |
Davide Pesavento | f66e40a | 2018-11-21 17:53:42 -0500 | [diff] [blame] | 17 | Comes with the base system on macOS. |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 18 | |
| 19 | On Ubuntu: |
| 20 | |
Davide Pesavento | d5c2447 | 2020-04-01 17:46:18 -0400 | [diff] [blame] | 21 | sudo apt install libpcap-dev |
| 22 | |
| 23 | On CentOS and Fedora: |
| 24 | |
Davide Pesavento | 3047ba4 | 2020-12-27 20:00:06 -0500 | [diff] [blame] | 25 | sudo dnf config-manager --enable powertools # CentOS only |
Davide Pesavento | d5c2447 | 2020-04-01 17:46:18 -0400 | [diff] [blame] | 26 | sudo dnf install libpcap-devel |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 27 | |
| 28 | ## Build Steps |
| 29 | |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 30 | To configure, compile, and install ndn-tools, type the following commands |
| 31 | in ndn-tools source directory: |
| 32 | |
| 33 | ./waf configure |
| 34 | ./waf |
| 35 | sudo ./waf install |
| 36 | |
| 37 | To uninstall ndn-tools: |
| 38 | |
| 39 | sudo ./waf uninstall |