File tree 3 files changed +42
-3
lines changed
3 files changed +42
-3
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ mismatched APIs.
132
132
#### Troubleshooting
133
133
134
134
* Separate [ instructions are available for building on Windows] ( docs/windows.md ) .
135
+ * Also, [ instructions for OpenBSD] ( docs/openbsd.md ) .
135
136
* ` git ` is required in order for ` go get ` to fetch all dependencies.
136
137
* Package managers often contain out-of-date ` golang ` packages.
137
138
Ensure that ` go version ` reports at least 1.7. See above for how to install go.
Original file line number Diff line number Diff line change @@ -105,12 +105,14 @@ install: cmd/ipfs-install
105
105
install_unsupported :
106
106
@echo " note: this command has yet to be tested to build in the system you are using"
107
107
@echo " installing gx"
108
- go get -u github.com/whyrusleeping/gx
109
- go get -u github.com/whyrusleeping/gx-go
108
+ go get -v -u github.com/whyrusleeping/gx
109
+ go get -v -u github.com/whyrusleeping/gx-go
110
+ @echo check gx and gx-go
111
+ gx -v && gx-go -v
110
112
@echo downloading dependencies
111
113
gx install --global
112
114
@echo " installing go-ipfs"
113
- go install ./cmd/ipfs
115
+ go install -v -tags nofuse ./cmd/ipfs
114
116
.PHONY : install_unsupported
115
117
116
118
uninstall :
Original file line number Diff line number Diff line change
1
+ # Building on OpenBSD
2
+
3
+ ## Prepare your system
4
+
5
+ Make sure you have ` git ` , ` go ` and ` gmake ` installed on your system.
6
+
7
+ ```
8
+ $ doas pkg_add -v git go gmake
9
+ ```
10
+
11
+ ## Prepare go environment
12
+
13
+ Make sure your gopath is set:
14
+
15
+ ```
16
+ $ export GOPATH=~/go
17
+ $ echo "$GOPATH"
18
+ $ export PATH="$PATH:$GOPATH/bin"
19
+ ```
20
+
21
+ ## Build
22
+
23
+ The ` install_unsupported ` target works nicely for openbsd. This will install ` gx ` , ` gx-go ` and run ` go install -tags nofuse ./cmd/ipfs ` .
24
+
25
+ ```
26
+ $ go get -v -u -d github.com/ipfs/go-ipfs
27
+
28
+ $ cd $GOPATH/src/github.com/ipfs/go-ipfs
29
+ $ gmake install_unsupported
30
+ ```
31
+
32
+ if everything went well, your ipfs binary should be ready at ` $GOPATH/bin/ipfs ` .
33
+
34
+ ```
35
+ $ ipfs version
36
+ ```
You can’t perform that action at this time.
0 commit comments