11.Sui环境-mac二进制安装

配置环境:

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

image-20240325173906807

2、下载sui二进制

官方github地址:https://github.com/MystenLabs/sui/releases

这里选择mainnet

1

下载到本地

wget https://github.com/MystenLabs/sui/releases/download/mainnet-v1.20.1/sui-mainnet-v1.20.1-macos-arm64.tgz

解压后修改文件名如下图,并且移动至你想存放的目录

image-20240325175134782

配置环境变量

echo 'export PATH="$PATH:'$(pwd)'/sui"' >> ~/.bash_profile 
source ~/.bash_profile

然后就安装好了

image-20240325175714805

安装sui-move-analyzer,在vscode中点击安装

image-20240325175750814

github仓库没有Mac arm版本的包,自己编译一下。

cargo install --git https://github.com/movebit/move --branch sui_move_analyzer sui-move-analyzer

然后尝试在vscode中新建move项目,当有错误时会有提示。

image-20240326091753342

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值