Project

General

Profile

Install-Fedora » History » Revision 11

Revision 10 (Alex Afanasyev, 12/21/2015 11:17 AM) → Revision 11/12 (Davide Pesavento, 04/21/2020 10:45 AM)

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

 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`, `/usr/lib` and for binaries only in `/usr/bin` (as opposed to also using `/usr/local/lib` and `/usr/local/bin` as additional options). 

 To make sure Fedora finds libraries in `/usr/local/lib`, /usr/local/lib folder, add a new entry for `ld.conf`. On    For 64-bit platforms, platform, this would be: be 

     sudo tee /etc/ld.so.conf.d/ndn.conf <<< echo /usr/local/lib64 > /etc/ld.conf.so.d/usr_local_lib64.conf 

 It is also possible to install NFD and ndn-cxx directly in `/usr` standard location `/usr`, by appending adding `--prefix=/usr --sysconfprefix=/etc` to the during `./waf configure` command: stage: 

     ... 
     ./waf configure --prefix=/usr --sysconfprefix=/etc 
     ./waf 
     ... 

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

     sudo ./waf yum install git gcc-c++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel 

 Prerequisites 
 ------------- On Fedora 23+ 

     sudo dnf install git gcc-c++ pkgconf-pkg-config python3 boost-devel openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel systemd-devel 

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

     git clone https://github.com/named-data/ndn-cxx.git git://github.com/named-data/ndn-cxx 
     cd ndn-cxx 
     ./waf configure 
     ./waf 
     sudo ./waf install 
     sudo ldconfig 

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

     git clone --recursive https://github.com/named-data/NFD.git git://github.com/named-data/NFD 
     cd NFD 
     ./waf configure 
     ./waf 
     sudo ./waf install