Install-Fedora » History » Version 4
Alex Afanasyev, 12/21/2015 11:00 AM
| 1 | 3 | Alex Afanasyev | Installing NFD on Fedora |
|---|---|---|---|
| 2 | ======================== |
||
| 3 | 1 | Alex Afanasyev | |
| 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 | 4 | Alex Afanasyev | sudo yum install git gcc-c++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel |
| 12 | 1 | Alex Afanasyev | |
| 13 | 2 | Alex Afanasyev | On Fedora 23+ |
| 14 | |||
| 15 | 4 | Alex Afanasyev | sudo dnf install git gcc-c++ 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 |