Install-Fedora » History » Version 6
  Alex Afanasyev, 12/21/2015 11:07 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 | 6 | Alex Afanasyev | To make sure Fedora finds libraries in /usr/local/lib folder, add a new entry for `ld.conf`. For 64-bit platform, this would be  | 
| 7 | |||
| 8 | sudo echo /usr/local/lib64 > /etc/ld.conf.so.d/usr_local_lib64.conf  | 
||
| 9 | |||
| 10 | It is also possible to install NFD and ndn-cxx in standard location `/usr`, by adding `--sysconfprefix=/etc` during `./waf configure` stage.  | 
||
| 11 | 1 | Alex Afanasyev | |
| 12 | Installing prerequisite  | 
||
| 13 | -----------------------  | 
||
| 14 | |||
| 15 | 4 | Alex Afanasyev | sudo yum install git gcc-c++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel  | 
| 16 | 1 | Alex Afanasyev | |
| 17 | 2 | Alex Afanasyev | On Fedora 23+  | 
| 18 | |||
| 19 | 4 | Alex Afanasyev | sudo dnf install git gcc-c++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel  | 
| 20 | 1 | Alex Afanasyev | |
| 21 | Compiling and installing ndn-cxx library  | 
||
| 22 | ----------------------------------------  | 
||
| 23 | |||
| 24 | git clone git://github.com/named-data/ndn-cxx  | 
||
| 25 | cd ndn-cxx  | 
||
| 26 | ./waf configure  | 
||
| 27 | sudo ./waf install --prefix=/usr --sysconfprefix=/etc  | 
||
| 28 | sudo ldconfig  | 
||
| 29 | |||
| 30 | Compiling and installing NFD  | 
||
| 31 | ----------------------------  | 
||
| 32 | |||
| 33 | 5 | Alex Afanasyev | git clone --recursive git://github.com/named-data/NFD  | 
| 34 | 1 | Alex Afanasyev | cd NFD  | 
| 35 | ./waf configure --prefix=/usr --sysconfprefix=/etc  | 
||
| 36 | sudo ./waf install  |