Binary install
建议使用二进制安装方法,因为它简单快捷。通过使用预编译的二进制文件,您可以在系统上快速设置 Rooch,而无需从源代码构建,从而确保与 MacOS 版本的兼容性并最大限度地缩短设置时间。
MacOS Arm
Download
wget https://github.com/rooch-network/rooch/releases/latest/download/rooch-macos-latest.zip
Decompress
unzip rooch-macos-latest.zip
Install
sudo cp rooch /usr/local/bin
Compile and install
macOS
Homebrew
Use the following command to install Homebrew:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install dependencies
brew install curl cmake libpq git
Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Clone source code
git clone https://github.com/rooch-network/rooch.git
Compile and install Rooch
cd rooch && cargo build && cp target/debug/rooch ~/.cargo/bin/