blob: 369fd9c7aa58e16d713f86de25460aaa483fba53 [file] [log] [blame] [view]
Junxiao Shi6ca48812015-03-26 23:14:19 -07001# ndn-tools Build Instructions
2
3This document describes how to build and install ndn-tools.
4
5## Prerequisites
6
Davide Pesaventob04c52b2022-02-20 15:20:02 -05007- 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 Shi6ca48812015-03-26 23:14:19 -070011
Davide Pesaventob04c52b2022-02-20 15:20:02 -050012 *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 Newberry82ea0fa2016-12-28 21:44:44 -070014
Davide Pesaventob04c52b2022-02-20 15:20:02 -050015- `libpcap`
Eric Newberry82ea0fa2016-12-28 21:44:44 -070016
Davide Pesaventob04c52b2022-02-20 15:20:02 -050017 Comes with the base system on macOS.
Eric Newberry82ea0fa2016-12-28 21:44:44 -070018
Davide Pesaventof597d072022-07-04 21:20:21 -040019 On Debian and Ubuntu:
Eric Newberry82ea0fa2016-12-28 21:44:44 -070020
Davide Pesaventob04c52b2022-02-20 15:20:02 -050021 sudo apt install libpcap-dev
Davide Pesaventod5c24472020-04-01 17:46:18 -040022
Davide Pesaventob04c52b2022-02-20 15:20:02 -050023 On CentOS and Fedora:
Davide Pesaventod5c24472020-04-01 17:46:18 -040024
Davide Pesaventob04c52b2022-02-20 15:20:02 -050025 sudo dnf install libpcap-devel
Junxiao Shi6ca48812015-03-26 23:14:19 -070026
27## Build Steps
28
Junxiao Shi6ca48812015-03-26 23:14:19 -070029To configure, compile, and install ndn-tools, type the following commands
30in ndn-tools source directory:
31
32 ./waf configure
33 ./waf
34 sudo ./waf install
35
Davide Pesaventob04c52b2022-02-20 15:20:02 -050036To uninstall:
Junxiao Shi6ca48812015-03-26 23:14:19 -070037
38 sudo ./waf uninstall