Install-Fedora » History » Version 10
Alex Afanasyev, 12/21/2015 11:17 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 | 10 | Alex Afanasyev | It is also possible to install NFD and ndn-cxx in standard location `/usr`, by adding `--prefix=/usr --sysconfprefix=/etc` during `./waf configure` stage: |
11 | |||
12 | ... |
||
13 | ./waf configure --prefix=/usr --sysconfprefix=/etc |
||
14 | ... |
||
15 | 1 | Alex Afanasyev | |
16 | Installing prerequisite |
||
17 | ----------------------- |
||
18 | |||
19 | 4 | Alex Afanasyev | sudo yum install git gcc-c++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel |
20 | 1 | Alex Afanasyev | |
21 | 2 | Alex Afanasyev | On Fedora 23+ |
22 | |||
23 | 4 | Alex Afanasyev | sudo dnf install git gcc-c++ openssl-devel sqlite-devel cryptopp-devel boost-devel libpcap-devel |
24 | 1 | Alex Afanasyev | |
25 | Compiling and installing ndn-cxx library |
||
26 | ---------------------------------------- |
||
27 | |||
28 | git clone git://github.com/named-data/ndn-cxx |
||
29 | cd ndn-cxx |
||
30 | ./waf configure |
||
31 | 9 | Alex Afanasyev | ./waf |
32 | 7 | Alex Afanasyev | sudo ./waf install |
33 | 1 | Alex Afanasyev | sudo ldconfig |
34 | |||
35 | Compiling and installing NFD |
||
36 | ---------------------------- |
||
37 | |||
38 | 5 | Alex Afanasyev | git clone --recursive git://github.com/named-data/NFD |
39 | 1 | Alex Afanasyev | cd NFD |
40 | 8 | Alex Afanasyev | ./waf configure |
41 | ./waf |
||
42 | 1 | Alex Afanasyev | sudo ./waf install |