2019-12-04 15:39:41 +00:00
# Ubuntu Instructions
2019-12-01 08:21:20 +00:00
2019-12-04 15:39:41 +00:00
These steps will install the following dependencies:
2019-12-01 08:21:20 +00:00
2020-06-10 08:24:38 +00:00
- go (1.14 or higher)
2019-12-01 08:21:20 +00:00
- gcc (7.4.0 or higher)
- git (version 2 or higher)
- bzr (some go dependency needs this)
- jq
- pkg-config
- opencl-icd-loader
- opencl driver (like nvidia-opencl on arch) (for GPU acceleration)
- opencl-headers (build)
- rustup (proofs build)
- llvm (proofs build)
- clang (proofs build)
2020-06-12 15:30:43 +00:00
### Install dependencies
2019-12-01 08:21:20 +00:00
```sh
sudo apt update
2020-06-12 15:30:43 +00:00
sudo apt install mesa-opencl-icd ocl-icd-opencl-dev gcc git bzr jq pkg-config curl
sudo apt upgrade
2019-12-01 08:21:20 +00:00
```
2020-06-12 15:30:43 +00:00
### Install Go 1.14
2020-06-16 13:30:41 +00:00
Install the latest version of Go by following [the docs on their website ](https://golang.org/doc/install ).
2019-12-01 08:21:20 +00:00
2020-06-12 15:30:43 +00:00
### Clone the Lotus repository
2019-12-01 08:21:20 +00:00
```sh
2019-12-06 15:26:03 +00:00
git clone https://github.com/filecoin-project/lotus.git
cd lotus/
2019-12-01 08:21:20 +00:00
```
2020-06-12 15:30:43 +00:00
### Build the Lotus binaries from source and install
2019-12-01 08:21:20 +00:00
```sh
2019-12-11 15:38:04 +00:00
make clean & & make all
2019-12-06 15:26:03 +00:00
sudo make install
2019-12-01 08:21:20 +00:00
```
2019-12-18 21:46:09 +00:00
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 ).