InstallingSuiMoveonLinux(Ubuntu)Thisguideprovidesstep-by-stepinstructionstoinstallSuiMove,setupthesui-move-analyzerlanguageserver,
This guide provides step-by-step instructions to install Sui Move, set up the sui-move-analyzer language server, and configure VSCode for development.
Ensure your system is updated and you have the necessary tools installed.
sudo apt-get update
sudo apt-get install curl git-all cmake gcc libssl-dev pkg-config libclang-dev libpq-dev build-essential
curl is InstalledCheck if curl is installed by running:
curl --version
If not installed, use:
sudo apt install curl
You can install Rust in two ways:
Install Rust using the official installer:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
after installing run to fix the PATH
. "$HOME/.cargo/env"
If Rust is already installed, update to the latest stable version:
rustup update stable
Use the following command to install the Sui CLI:
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui --features tracing
Check the installed version:
sui --version
sui-move-analyzer Language ServerDownload the latest sui-move-analyzer binary for Ubuntu from the releases page.
Rename the downloaded file to:
sui-move-analyzer
Move the binary to a directory in your PATH, such as /usr/local/bin:
sudo mv sui-move-analyzer /usr/local/bin
Make the binary executable:
sudo chmod +x /usr/local/bin/sui-move-analyzer
Check the installed version:
sui-move-analyzer --version
Download the latest .deb package for VSCode from the official site.
Navigate to the directory where the .deb file was downloaded:
cd ~/Downloads/
Install the package:
sudo apt install ./code*.deb
Install the following extensions for an optimal development experience:
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!