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