lotus/documentation/en/installation/install-macos.md
Hector Sanjuan fe52c47570 Docs review and re-organization
This:

* Re-organizes the docs into sections that align with what docs.filecoin.io becoming:
  * An installation section
  * A "getting started" section (lotus client focused)
  * A "storing" section (lotus client focused)
  * A "mining" section (miner focused)
  * A "build" section (developer focused)
  * An legacy "architecture" section is left in the last place.

A few high-value documentation pages have been reviewed and updated with the latest recommendations:

* Installation section and lotus setup
* Miner setup
* etc.
...

Other pages have been correctly merged into the new relevant sections. Some pages have not been touched. The filesystem layout of the documentation has been changed into folders corresponding to the sections (as requested by @cw). Some pages that were not linked at all and/or where hidden, have been moved to "unclassified".

This should make the porting of the Lotus documentation to docs.filecoin.io much easier, while ensuring it is more up to date than it was before.

For the moment, this breaks most links as link-aliasing is not supported in lotus-docs.
2020-09-03 16:35:16 +02:00

1.2 KiB

MacOS Instructions

Get XCode Command Line Tools

To check if you already have the XCode Command Line Tools installed via the CLI, run:

xcode-select -p

If this command returns a path, you can move on to the next step. Otherwise, to install via the CLI, run:

xcode-select --install

To update, run:

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

Get HomeBrew

We recommend that MacOS users use HomeBrew to install each the necessary packages.

Check if you have HomeBrew:

brew -v

This command returns a version number if you have HomeBrew installed and nothing otherwise.

In your terminal, enter this command to install Homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Use the command brew install to install the following packages:

brew install go bzr jq pkg-config rustup

Clone

git clone https://github.com/filecoin-project/lotus.git
cd lotus/

Build

make clean && make all
sudo make install

After intalling Lotus you will be ready to setup and run the daemon.