Merge pull request #1970 from RobQuistNL/patch-3
Update Ubuntu installation documentation + bump required go version to 1.14
This commit is contained in:
commit
950cb8bc03
2
Makefile
2
Makefile
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user