Project

General

Profile

Install-Fedora » History » Version 12

Davide Pesavento, 01/03/2023 02:35 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 12 Davide Pesavento
```shell
9
sudo tee /etc/ld.so.conf.d/ndn.conf <<< /usr/local/lib64
10
```
11 1 Alex Afanasyev
12
It is also possible to install NFD and ndn-cxx directly in `/usr` by appending `--prefix=/usr --sysconfprefix=/etc` to the `./waf configure` command:
13
14 12 Davide Pesavento
```shell
15
./waf configure --prefix=/usr --sysconfprefix=/etc
16
./waf
17
sudo ./waf install
18
```
19 1 Alex Afanasyev
20
Prerequisites
21
-------------
22
23 12 Davide Pesavento
```shell
24
sudo dnf install git gcc-c++ pkgconf-pkg-config python3 boost-devel openssl-devel sqlite-devel libpcap-devel systemd-devel
25
```
26 1 Alex Afanasyev
27
Compiling and installing ndn-cxx
28
--------------------------------
29
30 12 Davide Pesavento
```shell
31
git clone https://github.com/named-data/ndn-cxx.git
32
cd ndn-cxx
33
./waf configure
34
./waf
35
sudo ./waf install
36
sudo ldconfig
37
```
38 1 Alex Afanasyev
39
Compiling and installing NFD
40
----------------------------
41 11 Davide Pesavento
42 12 Davide Pesavento
```shell
43
git clone --recursive https://github.com/named-data/NFD.git
44
cd NFD
45
./waf configure
46
./waf
47
sudo ./waf install
48
```