1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-24 19:25:30 +08:00
Files
kubo/docs/openbsd.md
Łukasz Magiera f70fa0a2a5 docs: Update and clean-up
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-09-12 18:47:53 +02:00

670 B

Building on OpenBSD

Prepare your system

Make sure you have git, go and gmake installed on your system.

$ doas pkg_add -v git go gmake

Prepare go environment

Make sure your gopath is set:

$ export GOPATH=~/go
$ echo "$GOPATH"
$ export PATH="$PATH:$GOPATH/bin"

Build

The install_unsupported target works nicely for openbsd. This will install gx, gx-go and run go install -tags nofuse ./cmd/ipfs.

$ go get -v -u -d github.com/ipfs/go-ipfs

$ cd $GOPATH/src/github.com/ipfs/go-ipfs
$ gmake install_unsupported

if everything went well, your ipfs binary should be ready at $GOPATH/bin/ipfs.

$ ipfs version