Project

General

Profile

Install-Fedora » History » Version 11

Davide Pesavento, 04/21/2020 10:45 AM

1 3 Alex Afanasyev
Installing NFD on Fedora
2
========================
3 1 Alex Afanasyev
4 11 Davide Pesavento
The trick in compiling and installing NFD on Fedora 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 using `/usr/local/lib` and `/usr/local/bin` as additional options).
5 1 Alex Afanasyev
6 11 Davide Pesavento
To make sure Fedora finds libraries in `/usr/local/lib`, add a new entry for `ld.conf`. On 64-bit platforms, this would be:
7 6 Alex Afanasyev
8 11 Davide Pesavento
    sudo tee /etc/ld.so.conf.d/ndn.conf <<< /usr/local/lib64
9 6 Alex Afanasyev
10 11 Davide Pesavento
It is also possible to install NFD and ndn-cxx directly in `/usr` by appending `--prefix=/usr --sysconfprefix=/etc` to the `./waf configure` command:
11 10 Alex Afanasyev
12 1 Alex Afanasyev
    ./waf configure --prefix=/usr --sysconfprefix=/etc
13 11 Davide Pesavento
    ./waf
14
    sudo ./waf install
15 4 Alex Afanasyev
16 11 Davide Pesavento
Prerequisites
17
-------------
18 1 Alex Afanasyev
19 11 Davide Pesavento
    sudo dnf install git gcc-c++ pkgconf-pkg-config python3 boost-devel openssl-devel sqlite-devel libpcap-devel systemd-devel
20 4 Alex Afanasyev
21 11 Davide Pesavento
Compiling and installing ndn-cxx
22
--------------------------------
23 1 Alex Afanasyev
24 11 Davide Pesavento
    git clone https://github.com/named-data/ndn-cxx.git
25 1 Alex Afanasyev
    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 11 Davide Pesavento
    git clone --recursive https://github.com/named-data/NFD.git
35 1 Alex Afanasyev
    cd NFD
36 8 Alex Afanasyev
    ./waf configure
37
    ./waf
38 1 Alex Afanasyev
    sudo ./waf install