Project

General

Profile

Install-Fedora » History » Revision 2

Revision 1 (Alex Afanasyev, 07/01/2014 03:39 PM) → Revision 2/12 (Alex Afanasyev, 12/21/2015 10:57 AM)

Installing NFD on Fedora 20 
 =========================== 

 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). 

 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. 

 

 Installing prerequisite 
 ----------------------- 

     sudo yum install git gcc-g++ openssl-devel 
     sudo yum install libpcap-devel 
     sudo yum install sqlite-devel 
     sudo yum install cryptopp-devel 
     sudo yum install openssl-devel 
     sudo yum install boost-devel libpcap-devel 

 On Fedora 23+ 

     sudo dnf yum install git gcc-g++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel 

 

 Compiling and installing ndn-cxx library 
 ---------------------------------------- 

     git clone git://github.com/named-data/ndn-cxx 
     cd ndn-cxx 
     ./waf configure 
     sudo ./waf install --prefix=/usr --sysconfprefix=/etc 
     sudo ldconfig 

 Compiling and installing NFD 
 ---------------------------- 

     git clone git://github.com/named-data/NFD 
     cd NFD 
     ./waf configure --prefix=/usr --sysconfprefix=/etc 
     sudo ./waf install