본문으로 건너뛰기

소스에서 설치

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

Sui는 로컬에서 source로 설치하거나 GitHub에서 직접 설치할 수 있다.

최소한 Sui framework를 위해 Rust와 Cargo가 설치되어 있어야 한다:

  • Rust를 다운로드해 설치한다:

    $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

    Rust가 설치되어 있다면 최신 version으로 업데이트한다:

    $ rustup update stable
  • Cargo를 다운로드해 설치한다:

    $ curl https://sh.rustup.rs -sSf | sh

    운영 체제에 따라 추가 prerequisite가 필요할 수 있다.

Click to open

Additional prerequisites

Most modern MacOS systems have Homebrew and cURL preinstalled.

  • Download and install Homebrew:

    $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Download and install CMake:

    $ brew install cmake

    Verify installation with

    $ cmake --version
  • Download and install libpq:

    $ brew install libpq

    Verify installation with

    $ libpq --version
  • Download and install PostgreSQL.

GitHub에서 직접 설치하거나 로컬 드라이브에서 source로 설치할 수 있다.

어느 install from source 방법을 사용하든 Sui 구성 요소는 ~/.cargo/bin 폴더에 있다.

파일에 로컬로 접근하려면 Sui 환경 설정 문서를 참고해 source code를 다운로드할 수도 있다.

Cargo를 사용해 GitHub repo에서 Sui를 직접 설치한다:

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

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

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

필요한 경우 앞선 명령의 testnet branch를 다른 것으로 바꾼다.

사용 가능한 옵션은 다음과 같다:

  • main: 최신 업데이트.
  • 가장 불안정하다.
  • devnet: 실험적 feature를 포함한다.
  • testnet: beta feature를 포함한다.
  • mainnet: 안정 릴리스.

필요에 따라 추가 package를 빌드하고 설치할 수 있다.

앞선 명령의 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.