Skip to main content

安装 Foundry

安装

1. 下载

curl -L https://foundry.paradigm.xyz | bash

可能会报以下错误:

warning: libusb not found. You may need to install it manually on MacOS via Homebrew (brew install libusb).

Detected your preferred shell is zsh and added foundryup to PATH. Run 'source /Users/yuanjunliang/.zshrc' or start a new terminal session to use foundryup. Then, simply run 'foundryup' to install Foundry.

  1. 先尝试安装 libusb: brew install libusb
  2. foundryup添加到环境变量:
$ sudo vim ~/.zshrc

添加环境变量: export PATH="$PATH:/Users/yuanjunliang/.foundry/bin"

然后执行: source ~/.zshrc

2. 安装

foundryup