配置环境:
macbook m3
1、安装rust
国内源加速
export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup
执行安装
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
2、下载sui二进制
官方github地址:https://github.com/MystenLabs/sui/releases
这里选择mainnet
下载到本地
wget https://github.com/MystenLabs/sui/releases/download/mainnet-v1.20.1/sui-mainnet-v1.20.1-macos-arm64.tgz
解压后修改文件名如下图,并且移动至你想存放的目录
配置环境变量
echo 'export PATH="$PATH:'$(pwd)'/sui"' >> ~/.bash_profile
source ~/.bash_profile
然后就安装好了
安装sui-move-analyzer,在vscode中点击安装
github仓库没有Mac arm版本的包,自己编译一下。
cargo install --git https://github.com/movebit/move --branch sui_move_analyzer sui-move-analyzer
然后尝试在vscode中新建move项目,当有错误时会有提示。
Sui move_cn社交账号
telegram: https://t.me/move_cn
X(twitter): https://twitter.com/move_cn
QQ群: 79489587
微信公众号:Move中文
Sui中文开发群: https://t.me/sui_dev_cn