Install-Fedora » History » Version 2
Alex Afanasyev, 12/21/2015 10:57 AM
1 | 1 | Alex Afanasyev | Installing NFD on Fedora 20 |
---|---|---|---|
2 | =========================== |
||
3 | |||
4 | The trick in compiling and installing NFD and the library on Fedora 20 is that Fedora by default is configured to look for libraries only in `/usr/lib` and for binaries only in `/usr/bin` (as opposed to also `/usr/local/lib` and `/usr/local/bin` as additional options). |
||
5 | |||
6 | NFD and ndn-cxx can be either installed into `/usr` (as shown below). It is also possible to install NFD and ndn-cxx in a custom location. However, in this case `PATH` and `LD_LIBRARY_PATH` environment variables need to be adjusted to proper values. |
||
7 | |||
8 | Installing prerequisite |
||
9 | ----------------------- |
||
10 | |||
11 | 2 | Alex Afanasyev | sudo yum install git gcc-g++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel |
12 | 1 | Alex Afanasyev | |
13 | 2 | Alex Afanasyev | On Fedora 23+ |
14 | |||
15 | sudo dnf install git gcc-g++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel |
||
16 | 1 | Alex Afanasyev | |
17 | Compiling and installing ndn-cxx library |
||
18 | ---------------------------------------- |
||
19 | |||
20 | git clone git://github.com/named-data/ndn-cxx |
||
21 | cd ndn-cxx |
||
22 | ./waf configure |
||
23 | sudo ./waf install --prefix=/usr --sysconfprefix=/etc |
||
24 | sudo ldconfig |
||
25 | |||
26 | Compiling and installing NFD |
||
27 | ---------------------------- |
||
28 | |||
29 | git clone git://github.com/named-data/NFD |
||
30 | cd NFD |
||
31 | ./waf configure --prefix=/usr --sysconfprefix=/etc |
||
32 | sudo ./waf install |