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 | |
Vince Lehman | 59dfac3 | 2015-04-29 12:37:26 -0500 | [diff] [blame^] | 43 | - openssl |
| 44 | |
| 45 | On Ubuntu Linux: |
| 46 | |
| 47 | :: |
| 48 | |
| 49 | sudo apt-get install libssl-dev |
| 50 | |
| 51 | On OS X with MacPorts: |
| 52 | |
| 53 | :: |
| 54 | |
| 55 | sudo port install openssl |
| 56 | |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 57 | Build |
| 58 | ----- |
| 59 | |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 60 | Execute the following commands to build NLSR: |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 61 | |
| 62 | :: |
| 63 | |
| 64 | ./waf configure |
| 65 | ./waf |
| 66 | sudo ./waf install |
| 67 | |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 68 | Refer to ``./waf –help`` for more options that can be used during the configure stage and |
| 69 | how to properly configure NLSR. |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 70 | |
Vince Lehman | 59dfac3 | 2015-04-29 12:37:26 -0500 | [diff] [blame^] | 71 | If your pkgconfig path is not set properly you can do the following before running ``./waf |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 72 | configure`` |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 73 | |
| 74 | :: |
| 75 | |
| 76 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ |
| 77 | or |
Vince Lehman | 59dfac3 | 2015-04-29 12:37:26 -0500 | [diff] [blame^] | 78 | export PKG_CONFIG_PATH=/path/to/pkgconfig/on/your/machine |