2019-12-27 21:58:00 +00:00
# Fedora Instructions
> tested on 30
**NOTE:** If you have an AMD GPU the opencl instructions may be incorrect...
These steps will install the following dependencies:
2020-06-10 08:29:57 +00:00
- go (1.14 or higher)
2019-12-27 21:58:00 +00:00
- gcc (7.4.0 or higher)
- git (version 2 or higher)
- bzr (some go dependency needs this)
- jq
- pkg-config
- rustup (proofs build)
- llvm (proofs build)
- clang (proofs build)
2020-07-30 00:19:40 +00:00
### Install dependencies
2019-12-27 21:58:00 +00:00
```sh
$ sudo dnf -y update
2020-07-30 00:19:40 +00:00
$ sudo dnf -y install gcc git bzr jq pkgconfig mesa-libOpenCL mesa-libOpenCL-devel opencl-headers ocl-icd ocl-icd-devel clang llvm
2019-12-27 21:58:00 +00:00
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
2020-07-30 00:19:40 +00:00
### Install Go 1.14
Install the latest version of Go by following [the docs on their website ](https://golang.org/doc/install ).
### Clone the Lotus repository
2019-12-27 21:58:00 +00:00
```sh
git clone https://github.com/filecoin-project/lotus.git
cd lotus/
```
2020-07-30 00:19:40 +00:00
### Build the Lotus binaries from source and install
! **If you are running an AMD platform or if your CPU supports SHA extensions you will want to build the Filecoin proofs natively**
2019-12-27 21:58:00 +00:00
```sh
$ make clean & & make all
$ sudo make install
```
2020-07-30 00:19:40 +00:00
#### Native Filecoin FFI building
```sh
env env RUSTFLAGS="-C target-cpu=native -g" FFI_BUILD_FROM_SOURCE=1 make clean deps all
sudo make install
```
2019-12-27 21:58:00 +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 ).