1 @node Build-instructions
3 @section Build instructions
5 Make sure that Go is installed. For example to install it from packages:
9 @verb{|pkg install go|}
11 @verb{|apt install golang|}
15 $ [fetch|wget] http://www.nncpgo.org/download/nncp-@value{VERSION}.tar.xz
16 $ [fetch|wget] http://www.nncpgo.org/download/nncp-@value{VERSION}.tar.xz.@{asc,sig@}
18 $ xz -d < nncp-@value{VERSION}.tar.xz | tar xf -
19 $ cd nncp-@value{VERSION}
20 [optionally edit config]
25 After that you should get various @command{bin/nncp-*} binaries and
26 @command{bin/hjson-cli} command (only for your convenience, not
27 necessary installation). For example, documentation for
28 @command{nncp-bundle} command can be get with
29 @command{info doc/nncp.info -n nncp-bundle}.
44 @file{config} file contains some environment variables that are
45 respected during installation:
60 There is @command{install} script for binaries and info-documentation
64 # PREFIX=/usr/local ./install
71 NNCP depends on @code{github.com/fsnotify/fsnotify} library, that solely
72 relies on OS-specific mechanisms. There is possibility that you have
73 either broken or unsupported ones. You can still build NNCP with
74 @code{-tags nofsnotify} build option, to skip @code{fsnotify} library
78 $ GO_CFLAGS="-tags nofsnotify" bin/build
82 You can also disable Yggdrasil support with @code{-tags noyggdrasil}.