blob: 8e0cd248b53136cb6d92dac893e95a696220a579 [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
Eric Newberry82ea0fa2016-12-28 21:44:44 -07007- 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 Pesaventod5c24472020-04-01 17:46:18 -040011 are installed (e.g., if using Ubuntu PPA, the `libndn-cxx-dev` package is needed).
Junxiao Shi6ca48812015-03-26 23:14:19 -070012
Eric Newberry82ea0fa2016-12-28 21:44:44 -070013 Any operating system and compiler supported by ndn-cxx is supported by ndn-tools.
14
Davide Pesavento84d84772019-04-07 14:40:07 -040015- `libpcap`
Eric Newberry82ea0fa2016-12-28 21:44:44 -070016
Davide Pesaventof66e40a2018-11-21 17:53:42 -050017 Comes with the base system on macOS.
Eric Newberry82ea0fa2016-12-28 21:44:44 -070018
19 On Ubuntu:
20
Davide Pesaventod5c24472020-04-01 17:46:18 -040021 sudo apt install libpcap-dev
22
23 On CentOS and Fedora:
24
Davide Pesavento3047ba42020-12-27 20:00:06 -050025 sudo dnf config-manager --enable powertools # CentOS only
Davide Pesaventod5c24472020-04-01 17:46:18 -040026 sudo dnf install libpcap-devel
Junxiao Shi6ca48812015-03-26 23:14:19 -070027
28## Build Steps
29
Junxiao Shi6ca48812015-03-26 23:14:19 -070030To configure, compile, and install ndn-tools, type the following commands
31in ndn-tools source directory:
32
33 ./waf configure
34 ./waf
35 sudo ./waf install
36
37To uninstall ndn-tools:
38
39 sudo ./waf uninstall