blob: cdfd1a883e7aaa798fe90524b6f58e2cc06c2077 [file] [log] [blame] [view]
Davide Pesavento4a160042020-04-13 16:50:02 -04001# Installing repo-ng
Shuo Chen050fcad2014-03-12 15:45:54 -07002
Davide Pesavento4a160042020-04-13 16:50:02 -04003## Prerequisites
Shuo Chen050fcad2014-03-12 15:45:54 -07004
Davide Pesavento4a160042020-04-13 16:50:02 -04005* [ndn-cxx and its dependencies](https://named-data.net/doc/ndn-cxx/current/INSTALL.html)
Shuo Chen478204c2014-03-18 18:27:04 -07006* sqlite3
Shuo Chen050fcad2014-03-12 15:45:54 -07007
Davide Pesavento4a160042020-04-13 16:50:02 -04008## Build
Shuo Chen050fcad2014-03-12 15:45:54 -07009
Davide Pesavento4a160042020-04-13 16:50:02 -040010To build in a terminal, change to the directory containing the repo-ng repository.
11Then enter:
Shuo Chen050fcad2014-03-12 15:45:54 -070012
13 ./waf configure
14 ./waf
15 sudo ./waf install
16
Junxiao Shi434fa492017-06-15 00:37:54 +000017This builds and installs `ndn-repo-ng` and related tools.
Shuo Chen050fcad2014-03-12 15:45:54 -070018
Davide Pesavento4a160042020-04-13 16:50:02 -040019If configured with tests (`./waf configure --with-tests`), the above commands will
20also generate unit tests that can be run with `./build/unit-tests`.
Weiqi Shibd469da2014-08-21 10:08:51 -070021
Davide Pesavento4a160042020-04-13 16:50:02 -040022## Configuration
Weiqi Shibd469da2014-08-21 10:08:51 -070023
Junxiao Shi434fa492017-06-15 00:37:54 +000024The default configuration file path is `/usr/local/etc/ndn/repo-ng.conf`.
Davide Pesavento4a160042020-04-13 16:50:02 -040025Users may copy the [repo-ng.conf.sample](repo-ng.conf.sample) config sample to that path.
Weiqi Shibd469da2014-08-21 10:08:51 -070026
Davide Pesavento4a160042020-04-13 16:50:02 -040027## Database
Weiqi Shibd469da2014-08-21 10:08:51 -070028
Davide Pesavento4a160042020-04-13 16:50:02 -040029The database path is set in the `storage.path` key of the configuration file.
Davide Pesavento4162cc52019-01-25 01:32:30 -050030The default database path is `/var/lib/ndn/repo-ng`.
Weiqi Shibd469da2014-08-21 10:08:51 -070031
Davide Pesavento4a160042020-04-13 16:50:02 -040032repo-ng will automatically create a database if one does not exist.
Weiqi Shibd469da2014-08-21 10:08:51 -070033
Davide Pesavento4a160042020-04-13 16:50:02 -040034Users should make sure that the `ndn-repo-ng` process has write access to the
35database directory.
Weiqi Shibd469da2014-08-21 10:08:51 -070036
Davide Pesavento4a160042020-04-13 16:50:02 -040037## Tools
Weiqi Shibd469da2014-08-21 10:08:51 -070038
Davide Pesavento4a160042020-04-13 16:50:02 -040039Currently, three tools are included: *ndngetfile*, *ndnputfile*, and *repo-ng-ls*.
40Users can find detailed information about these tools on the
41[repo-ng wiki](https://redmine.named-data.net/projects/repo-ng/wiki/Tools).