Install-Fedora » History » Version 1
Alex Afanasyev, 07/01/2014 03:39 PM
| 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 | sudo yum install gcc-g++ |
||
| 12 | sudo yum install libpcap-devel |
||
| 13 | sudo yum install sqlite-devel |
||
| 14 | sudo yum install cryptopp-devel |
||
| 15 | sudo yum install openssl-devel |
||
| 16 | sudo yum install boost-devel |
||
| 17 | |||
| 18 | sudo yum install git |
||
| 19 | |||
| 20 | Compiling and installing ndn-cxx library |
||
| 21 | ---------------------------------------- |
||
| 22 | |||
| 23 | git clone git://github.com/named-data/ndn-cxx |
||
| 24 | cd ndn-cxx |
||
| 25 | ./waf configure |
||
| 26 | sudo ./waf install --prefix=/usr --sysconfprefix=/etc |
||
| 27 | sudo ldconfig |
||
| 28 | |||
| 29 | Compiling and installing NFD |
||
| 30 | ---------------------------- |
||
| 31 | |||
| 32 | git clone git://github.com/named-data/NFD |
||
| 33 | cd NFD |
||
| 34 | ./waf configure --prefix=/usr --sysconfprefix=/etc |
||
| 35 | sudo ./waf install |