Currently requires Rust Nightly.
bash
$ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
Install LLVM:
bash
$ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
$ sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main"
$ sudo apt update && sudo apt install clang-6.0
$ sudo ln -s /usr/bin/llvm-config-6.0 /usr/local/bin/llvm-config
$ sudo apt-get install -y zlib1g-dev
Install Protobuf:
bash
$ wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
$ unzip protoc-3.6.1-linux-x86_64.zip -d protoc3
$ sudo mv protoc3/bin/* /usr/local/bin/
$ sudo mv protoc3/include/* /usr/local/include/
Install LLVM:
bash
$ brew install llvm@6
$ sudo ln -s /usr/local/Cellar/llvm@6/6.0.1_1/bin/llvm-config /usr/local/bin/llvm-config
Install Protobuf:
bash
$ brew install protobuf@3.6
$ sudo cp /usr/local/opt/protobuf@3.6/bin/protoc /usr/local/bin/
$ sudo cp /usr/local/opt/protobuf@3.6/include/* /usr/local/include/