Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install_unsupported #3719

Merged
merged 2 commits into from
Mar 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 6 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,38 +91,25 @@ export PATH=$PATH:$GOPATH/bin

#### Download and Compile IPFS

go-ipfs differs from the vanilla `go get` flow: it uses
[gx](https://github.com/whyrusleeping/gx)/[gx-go](https://github.com/whyrusleeping/gx-go)
for dependency management.

First download `go-ipfs` without installing:

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

$ cd $GOPATH/src/github.com/ipfs/go-ipfs
```

Then install `go-ipfs` and its dependencies, including `gx` and `gx-go`:

```
$ make install
```

#### Building on less common systems

If your operating system isn't officially supported, but you still want to try
building ipfs anyways (it should work fine in most cases), you can do the
following:
following instead of `make install`:

- Install gx: `go get -u github.com/whyrusleeping/gx`
- Install gx-go: `go get -u github.com/whyrusleeping/gx-go`
- Fetch ipfs source: `go get -d github.com/ipfs/go-ipfs 2> /dev/null`
- Enter source directory: `cd $GOPATH/src/github.com/ipfs/go-ipfs`
- Install deps: `gx install`
- Install ipfs: `go install ./cmd/ipfs`
```
$ make install_unsupported
```

Note: This process may break if [gx](https://github.com/whyrusleeping/gx) or any of its dependencies break as `go get`
Note: This process may break if [gx](https://github.com/whyrusleeping/gx)
(used for dependency management) or any of its dependencies break as `go get`
will always select the latest code for every dependency, often resulting in
mismatched APIs.

Expand Down
11 changes: 11 additions & 0 deletions Rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ install: $$(DEPS_GO)
go install $(go-flags-with-tags) ./cmd/ipfs
.PHONY: 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
@echo downloading dependencies
gx install --global
@echo "installing go-ipfs"
go install ./cmd/ipfs
.PHONY: install_unsupported

uninstall:
go clean -i ./cmd/ipfs
.PHONY: uninstall
Expand Down