Project

General

Profile

Install-Fedora » History » Version 9

Alex Afanasyev, 12/21/2015 11:13 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 9 Alex Afanasyev
    ./waf
28 7 Alex Afanasyev
    sudo ./waf install
29 1 Alex Afanasyev
    sudo ldconfig
30
31
Compiling and installing NFD
32
----------------------------
33
34 5 Alex Afanasyev
    git clone --recursive git://github.com/named-data/NFD
35 1 Alex Afanasyev
    cd NFD
36 8 Alex Afanasyev
    ./waf configure
37
    ./waf
38 1 Alex Afanasyev
    sudo ./waf install