본문으로 건너뛰기

바이너리로 설치

These instructions are for special use cases. For most users, Quick Install shows the best way to install Sui.

각 Sui 릴리스는 여러 운영 체제를 위한 binary 집합을 제공한다.

이 binary를 GitHub에서 다운로드해 Sui를 설치할 수 있다.

  1. https://github.com/MystenLabs/sui 로 이동한다.

  2. 오른쪽 패널에서 Releases 섹션을 찾는다.

    Sui releases in GitHub

  3. Latest 태그가 붙은 릴리스를 클릭해 해당 릴리스 페이지를 연다.

  4. 릴리스의 Assets 섹션에서 운영 체제에 맞는 .tgz 압축 파일을 선택한다.

  5. .tgz 파일의 모든 파일을 시스템의 원하는 위치에 압축 해제한다. 이 지침은 설명을 위해 시스템 사용자 루트의 sui 폴더에 파일을 추출한다고 가정한다. 다른 디렉터리를 선택했다면 이후 단계에서 이 위치에 대한 참조를 바꾼다.

  6. 압축을 푼 폴더로 이동한다. 다음과 같이 추출된 파일이 있어야 한다:

    NameDescription
    move-analyzerLanguage Server Protocol implementation.
    suiMain Sui binary.
    sui-bridgeSui native bridge.
    sui-data-ingestionCapture full node data for indexer to store in a database.
    sui-faucetLocal faucet to mint coins on local network.
    sui-nodeRun a local node.
    sui-test-validatorRun test validators on a local network for development.
    sui-toolProvides utilities for Sui.
  7. 추출된 파일이 들어 있는 폴더를 PATH 변수에 추가한다. 이를 위해 ~/.bashrc를 업데이트하여 Sui binary 위치를 포함시킬 수 있다. 권장 위치를 사용한다면 export PATH=$PATH:~/sui를 입력하고 Enter를 누른다.

  8. 새 터미널 세션을 시작하거나 source ~/.bashrc를 입력하여 새 PATH 값을 로드한다.

Build binaries locally

Sui repo를 다운로드하고 binary를 로컬에서 빌드할 수 있다.

Binary는 target/release 디렉터리로 내보내진다.

$ cargo build --profile release --bin sui

필요에 따라 다른 package도 포함한다.

NameDescription
move-analyzerLanguage Server Protocol implementation.
suiMain Sui binary.
sui-bridgeSui native bridge.
sui-data-ingestionCapture full node data for indexer to store in a database.
sui-faucetLocal faucet to mint coins on local network.
sui-nodeRun a local node.
sui-test-validatorRun test validators on a local network for development.
sui-toolProvides utilities for Sui.

Upgrade from Cargo

이전에 Sui binary를 설치했다면 설치에 사용했던 것과 같은 명령으로 가장 최신 릴리스로 업데이트할 수 있다(testnet은 원하는 branch로 변경한다):

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

tracing feature는 Sui CLI에서 Move test coverage와 debugger 지원을 활성화한다.

tracing을 활성화하지 않으면 이 기능을 사용할 수 없다.

Install sui-node for Ubuntu from AWS

정보

The sui-node binary from AWS only supports Ubuntu version 22.04.

The sui-node binaries for Ubuntu 22.04 are available for download from AWS. You can use either the commit SHA or version tag in the URL to retrieve the specific version of Sui you want. Use one of these values to construct the AWS download URL.

The URL is in the form:

https://sui-releases.s3-accelerate.amazonaws.com/<SHA-OR-TAG>/sui-node

Replace <SHA-OR-TAG> with the proper value. For example, the URL is https://sui-releases.s3-accelerate.amazonaws.com/00544a588bb71c395d49d91f756e8bfe96067eca/sui-node to download the release with the relevant commit SHA. If you visit the URL using a browser, the binary downloads automatically.

After downloading, open a console to the file's location and change its permission to 755.

$ chmod 755 sui-node

Add the file's location to your $PATH variable if its directory is not already included. Follow the steps in Configure a Sui full node to complete the setup.