blob: 2c74157dc058a9db69334991a09c17ac2f493e1d [file] [log] [blame]
Alexander Afanasyev284257b2014-04-11 14:16:51 -07001.. _NFD Installation Instructions:
2
3NFD Installation Instructions
4=============================
5
6Prerequisites
7-------------
8
9- `ndn-cpp-dev library <https://github.com/named-data/ndn-cpp-dev>`__
10 and its requirements:
11
12 - ``libcrypto``
13 - ``libsqlite3``
14 - ``libcrypto++``
15 - ``pkg-config``
16 - Boost libraries (>= 1.48)
17 - OSX Security framework (on OSX platform only)
18
19 Refer to https://github.com/named-data/ndn-cpp-dev/blob/master/INSTALL.md for detailed
20 installation instructions.
21
22- ``libpcap``
23
24 Comes with base on OS X 10.8 and 10.9:
25
26 On Ubuntu >= 12.04:
27
28 ::
29
30 sudo apt-get install libpcap-dev
31
32To build manpages and API documentation:
33
34- ``doxygen``
35- ``graphviz``
36- ``python-sphinx``
37
38 On OS X 10.8 and 10.9 with macports:
39
40 ::
41
42 sudo port install doxygen graphviz py27-sphinx sphinx_select
43 sudo port select sphinx py27-sphinx
44
45 On Ubuntu >= 12.04:
46
47 ::
48
49 sudo apt-get install doxygen graphviz python-sphinx
50
51Build
52-----
53
54The following commands should be used to build NFD:
55
56::
57
58 ./waf configure
59 ./waf
60 sudo ./waf install
61
62Refer to :ref:`NFD Configuration Tips` (``README.rst``) for more options that can be used
63during ``configure`` stage and how to properly configure and run NFD.
64
65In some configurations, configuration step may require small modification. For example, on
66OSX that uses macports (correct the path if macports was not installed in the default path
67``/opt/local``):
68
69::
70
71 export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH
72 ./waf configure
73 ./waf
74 sudo ./waf install
75
76On some Linux distributions (e.g., Fedora 20):
77
78::
79
80 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pkgconfig:$PKG_CONFIG_PATH
81 ./waf configure
82 ./waf
83 sudo ./waf install
84
85Building documentation
86----------------------
87
88NFD tutorials and API documentation can be built using the following commands:
89
90::
91
92 # Full set of documentation (tutorials + API) in build/docs
93 ./waf docs
94
95 # Only tutorials in `build/docs`
96 ./waf sphinx
97
98 # Only API docs in `build/docs/doxygen`
99 ./waf doxgyen
100
101
102Manpages are automatically created and installed during the normal build process
103(e.g., during ``./waf`` and ``./waf install``), if ``python-sphinx`` module is detected
104during ``./waf configure`` stage. By default, manpages are installed into
105``${PREFIX}/share/man`` (where default value for ``PREFIX`` is ``/usr/local``). This
106location can be changed during ``./waf configure`` stage using ``--prefix``,
107``--datarootdir``, or ``--mandir`` options.
108
109For more details, refer to ``./waf --help``.