Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
go-ipfs
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
jihao
go-ipfs
Commits
f44ff30e
提交
f44ff30e
authored
4月 30, 2017
作者:
Jeromy Johnson
提交者:
GitHub
4月 30, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3880 from kpcyrd/docs/openbsd
Fix install_unsupported for openbsd, add docs
上级
76cd5410
4f98f8fa
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
42 行增加
和
3 行删除
+42
-3
README.md
README.md
+1
-0
Rules.mk
Rules.mk
+5
-3
openbsd.md
docs/openbsd.md
+36
-0
没有找到文件。
README.md
浏览文件 @
f44ff30e
...
...
@@ -132,6 +132,7 @@ mismatched APIs.
#### Troubleshooting
*
Separate
[
instructions are available for building on Windows
](
docs/windows.md
)
.
*
Also,
[
instructions for OpenBSD
](
docs/openbsd.md
)
.
*
`git`
is required in order for
`go get`
to fetch all dependencies.
*
Package managers often contain out-of-date
`golang`
packages.
Ensure that
`go version`
reports at least 1.7. See above for how to install go.
...
...
Rules.mk
浏览文件 @
f44ff30e
...
...
@@ -105,12 +105,14 @@ install: cmd/ipfs-install
install_unsupported
:
@
echo
"note: this command has yet to be tested to build in the system you are using"
@
echo
"installing gx"
go get
-u
github.com/whyrusleeping/gx
go get
-u
github.com/whyrusleeping/gx-go
go get
-v
-u
github.com/whyrusleeping/gx
go get
-v
-u
github.com/whyrusleeping/gx-go
@
echo
check gx and gx-go
gx
-v
&&
gx-go
-v
@
echo
downloading dependencies
gx install
--global
@
echo
"installing go-ipfs"
go install ./cmd/ipfs
go install
-v
-tags
nofuse
./cmd/ipfs
.PHONY
:
install_unsupported
uninstall
:
...
...
docs/openbsd.md
0 → 100644
浏览文件 @
f44ff30e
# 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
```
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论