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 | b04c52b | 2022-02-20 15:20:02 -0500 | [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 instructions. |
| 10 | All operating systems and compilers supported by ndn-cxx are also supported 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 | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 15 | - `libpcap` |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 16 | |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 17 | Comes with the base system on macOS. |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 18 | |
Davide Pesavento | f597d07 | 2022-07-04 21:20:21 -0400 | [diff] [blame] | 19 | On Debian and Ubuntu: |
Eric Newberry | 82ea0fa | 2016-12-28 21:44:44 -0700 | [diff] [blame] | 20 | |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 21 | sudo apt install libpcap-dev |
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 | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 25 | sudo dnf install libpcap-devel |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 26 | |
| 27 | ## Build Steps |
| 28 | |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 29 | To configure, compile, and install ndn-tools, type the following commands |
| 30 | in ndn-tools source directory: |
| 31 | |
| 32 | ./waf configure |
| 33 | ./waf |
| 34 | sudo ./waf install |
| 35 | |
Davide Pesavento | b04c52b | 2022-02-20 15:20:02 -0500 | [diff] [blame] | 36 | To uninstall: |
Junxiao Shi | 6ca4881 | 2015-03-26 23:14:19 -0700 | [diff] [blame] | 37 | |
| 38 | sudo ./waf uninstall |