Linux&Mac 安装 Move Sui

  • 洁妮儿
  • 发布于 2026-04-04 18:49
  • 阅读 69

InstallingSuiMoveonLinux(Ubuntu)Thisguideprovidesstep-by-stepinstructionstoinstallSuiMove,setupthesui-move-analyzerlanguageserver,

Installing Sui Move on Linux (Ubuntu)

This guide provides step-by-step instructions to install Sui Move, set up the sui-move-analyzer language server, and configure VSCode for development.


Prerequisites

Ensure your system is updated and you have the necessary tools installed.

Step 1: Update the System

sudo apt-get update

Step 2: Install Required Dependencies

sudo apt-get install curl git-all cmake gcc libssl-dev pkg-config libclang-dev libpq-dev build-essential

Installing Rust

Step 3: Verify curl is Installed

Check if curl is installed by running:

curl --version

If not installed, use:

sudo apt install curl

Step 4: Install Rust

You can install Rust in two ways:

  1. 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"
  2. If Rust is already installed, update to the latest stable version:

    rustup update stable

Installing Sui CLI

Step 5: Install Sui CLI

Use the following command to install the Sui CLI:

cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui --features tracing

Step 6: Verify Sui Installation

Check the installed version:

sui --version

Setting Up sui-move-analyzer Language Server

Step 7: Download the Precompiled Binary

Download the latest sui-move-analyzer binary for Ubuntu from the releases page.

Step 8: Rename the Binary

Rename the downloaded file to:

sui-move-analyzer

Step 9: Move Binary to System Path

Move the binary to a directory in your PATH, such as /usr/local/bin:

sudo mv sui-move-analyzer /usr/local/bin

Step 10: Grant Execute Permissions

Make the binary executable:

sudo chmod +x /usr/local/bin/sui-move-analyzer

Step 11: Verify the Installation

Check the installed version:

sui-move-analyzer --version

Installing VSCode

Step 12: Download VSCode

Download the latest .deb package for VSCode from the official site.

Step 13: Install VSCode

Navigate to the directory where the .deb file was downloaded:

cd ~/Downloads/

Install the package:

sudo apt install ./code*.deb

Recommended VSCode Extensions

Install the following extensions for an optimal development experience:

  1. Sui Move Analyzer
  2. Even Better TOML
  3. Move by MystenLabs
  4. Move Syntax by Damir Shamanaev

点赞 0
收藏 0
分享

0 条评论

请先 登录 后评论
洁妮儿
洁妮儿
江湖只有他的大名,没有他的介绍。