Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame^] | 1 | NLSR Installation Instructions |
| 2 | ============================== |
| 3 | |
| 4 | .. toctree:: |
| 5 | .. |
| 6 | |
| 7 | Prerequisites |
| 8 | ------------- |
| 9 | |
| 10 | - `NFD`_ and its requirements: |
| 11 | |
| 12 | Refer to `Getting started with NFD`_ for detailed installation and running instruction. |
| 13 | |
| 14 | - log4cxx library |
| 15 | |
| 16 | On Linux: |
| 17 | |
| 18 | :: |
| 19 | |
| 20 | sudo apt-get install liblog4cxx10-dev |
| 21 | |
| 22 | On Mac OSx: |
| 23 | |
| 24 | :: |
| 25 | |
| 26 | sudo port install log4cxx |
| 27 | |
| 28 | - protobuf |
| 29 | |
| 30 | On Linux: |
| 31 | |
| 32 | :: |
| 33 | |
| 34 | sudo apt-get install libprotobuf-dev protobuf-compiler |
| 35 | |
| 36 | On Mac OSx: |
| 37 | |
| 38 | :: |
| 39 | |
| 40 | sudo port install protobuf-cpp |
| 41 | |
| 42 | Build |
| 43 | ----- |
| 44 | |
| 45 | The following commands should be used to build NLSR: |
| 46 | |
| 47 | :: |
| 48 | |
| 49 | ./waf configure |
| 50 | ./waf |
| 51 | sudo ./waf install |
| 52 | |
| 53 | Refer to ./waf –help for more options that can be used during the configure |
| 54 | stage and how to properly configure NLSR. |
| 55 | |
| 56 | If your pkgconfig path is not set properly you can do following before |
| 57 | running ``./waf configure`` |
| 58 | |
| 59 | :: |
| 60 | |
| 61 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ |
| 62 | or |
| 63 | export PKG_CONFIG_PATH=/path/to/pkgconfig/in/your/machine |
| 64 | |
| 65 | .. _NFD: http://named-data.net/doc/NFD/current/ |
| 66 | .. _Getting started with NFD: http://named-data.net/doc/NFD/current/INSTALL.html |