Merge pull request #1970 from RobQuistNL/patch-3

Update Ubuntu installation documentation + bump required go version to 1.14
This commit is contained in:
Łukasz Magiera 2020-06-26 19:12:08 +02:00 committed by GitHub
commit 950cb8bc03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 15 deletions

View File

@ -6,7 +6,7 @@ all: build
unexport GOFLAGS
GOVERSION:=$(shell go version | cut -d' ' -f 3 | cut -d. -f 2)
ifeq ($(shell expr $(GOVERSION) \< 13), 1)
ifeq ($(shell expr $(GOVERSION) \< 14), 1)
$(warning Your Golang version is go 1.$(GOVERSION))
$(error Update Golang to version $(shell grep '^go' go.mod))
endif

View File

@ -2,7 +2,7 @@
These steps will install the following dependencies:
- go (1.13 or higher)
- go (1.14 or higher)
- gcc (7.4.0 or higher)
- git (version 2 or higher)
- bzr (some go dependency needs this)

View File

@ -6,7 +6,7 @@
These steps will install the following dependencies:
- go (1.13 or higher)
- go (1.14 or higher)
- gcc (7.4.0 or higher)
- git (version 2 or higher)
- bzr (some go dependency needs this)

View File

@ -2,7 +2,7 @@
These steps will install the following dependencies:
- go (1.13 or higher)
- go (1.14 or higher)
- gcc (7.4.0 or higher)
- git (version 2 or higher)
- bzr (some go dependency needs this)
@ -15,29 +15,26 @@ These steps will install the following dependencies:
- llvm (proofs build)
- clang (proofs build)
Run
### Install dependencies
```sh
sudo apt update
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl
sudo apt upgrade
```
Build
### Install Go 1.14
```sh
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update
sudo apt install golang-go gcc git bzr jq pkg-config mesa-opencl-icd ocl-icd-opencl-dev
```
Install the latest version of Go by following [the docs on their website](https://golang.org/doc/install).
Clone
### Clone the Lotus repository
```sh
git clone https://github.com/filecoin-project/lotus.git
cd lotus/
```
Install
### Build the Lotus binaries from source and install
```sh
make clean && make all
@ -45,3 +42,12 @@ sudo make install
```
After installing Lotus, you can run the `lotus` command directly from your CLI to see usage documentation. Next, you can join the [Lotus Testnet](https://docs.lotu.sh/en+join-testnet).
### Interopnet
If you seek a smaller network to test, you can join the `interopnet`. Please note that this network is meant for developers - it resets much more often, and is much smaller. To join this network, checkout the branch `interopnet` instead of `master` before building and installing;
```
git checkout interopnet
```
Please also note that this documentation (if viewed on the website) might not be up to date with the interopnet. For the latest documentation on the interopnet branch, see the [Lotus Documentation Interopnet Branch on GitHub](https://github.com/filecoin-project/lotus/tree/interopnet/documentation/en)

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/filecoin-project/lotus
go 1.13
go 1.14
require (
contrib.go.opencensus.io/exporter/jaeger v0.1.0