openbsd.md 670 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
# 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
```