movement
  • Movement Labs
  • Test Subnet Rust SDK Env
  • Run an Avalanche Node Manually
  • Install Avalanche-CLI
  • What's the Subnet Development Lifecycle?
  • Deploy a Permissioned Subnet on Testnet
  • Connect to Fuji Testnet
  • Setup Movement Env
  • Connect to the Fuji Testnet through M1
  • How to add the Movement network?
  • Move Language
    • Modules and Scripts
    • Primitive Types
      • Integers
      • Bool
      • Address
      • Vector
      • Signer
      • References
      • Tuples and Unit
Powered by GitBook
On this page
  • Building From Source
  • Supported operating systems
  • Clone the movement-subnet repo
  • Set up build dependencies

Was this helpful?

Setup Movement Env

PreviousConnect to Fuji TestnetNextConnect to the Fuji Testnet through M1

Last updated 1 year ago

Was this helpful?

Building From Source

Binary releases are available, but if you want to build from source or develop on the Aptos tools, this is how.

Supported operating systems

Aptos can be built on various operating systems, including Linux, macOS. and Windows. Aptos is tested extensively on Linux and macOS, and less so on Windows. Here are the versions we use:

  • Linux - Ubuntu version 20.04 and 22.04

  • macOS - macOS Monterey and later

  • Microsoft Windows - Windows 10, 11 and Windows Server 2022+

Clone the movement-subnet repo

  1. Install . Git is required to clone the aptos-core repo, and will be need to be installed prior to continuing. You can install it with the instructions on the official .

  2. Clone the Aptos repository. To clone the Aptos repository (repo), you first need to open a command line prompt (Terminal on Mac / Linux, Powershell on Windows). Then run the following command to clone the Git repository from GitHub.

    git clone https://github.com/movemntdev/movement-subnet
  3. Now let's go into the newly created directory movement-subnet by changing directory or cding into it:

    cd movement-subnet/vm/aptos-vm

Set up build dependencies

Prepare your developer environment by installing the dependencies needed to build, test and inspect Aptos Core. No matter your selected mechanism for installing these dependencies, it is imperative you keep your entire toolchain up-to-date. If you encounter issues later, update all packages and try again.

macOS

> Using the automated script

  1. Ensure you have brew package manager installed: https://brew.sh/

  2. Run the dev setup script to prepare your environment: ./scripts/dev_setup.sh

  3. Update your current shell environment: source ~/.cargo/env.

:::tip You can see the available options for the script by running ./scripts/dev_setup.sh --help :::

> Manual installation of dependencies

If the script above doesn't work for you, you can install these manually, but it's not recommended.

Linux

> Using the automated script

  1. Run the dev setup script to prepare your environment: ./scripts/dev_setup.sh

  2. Update your current shell environment: source ~/.cargo/env

:::tip You can see the available options for the script by running ./scripts/dev_setup.sh --help :::

> Manual installation of dependencies

If the script above does not work for you, you can install these manually, but it is not recommended:

Windows

> Using the automated script

  1. Open a PowerShell terminal as an administrator.

  2. Run the dev setup script to prepare your environment: PowerShell -ExecutionPolicy Bypass -File ./scripts/windows_dev_setup.ps1

> Manual installation of dependencies

  1. Open a new PowerShell terminal after installing all dependencies

Additional Tools

If you used scripts/dev_setup.sh for MacOS or Linux setup, additional tools are optionally available.

TypeScript

Typically only needed for developing the TypeScript SDK. Using the released SDK can be achieved from npm/pnpm/yarn.

scripts/dev_setup.sh -J

PostgreSQL

Used in the Indexer.

scripts/dev_setup.sh -P

Move Prover Tools

scripts/dev_setup.sh -y -p

Now your basic Aptos development environment is ready. Head over to our Developer Tutorials to get started in Aptos.

cd movement-subnet/vm/aptos-vm/subnet
cargo build --release
# will out put the Binary at movement-subnet/vm/aptos-vm/target/release/subnet 

# move this binary to a special directory
cd ~

mkdir move-plugins

cp movement-subnet/vm/aptos-vm/target/release/subnet  move-plugins/qCP4kCDiJK6WS5ShMwktmd2zC8gkBkGU1LphErfeSMuHSKLuL

.

.

.

and

Install .

Install . Visit their GitHub repository for the .

Install . During setup, select "Desktop development with C++" and three additional options: MSVC C++ build tools, Windows 10/11 SDK, and C++ CMake tools for Windows.

If on Windows ARM, install .

If not already installed during Visual Studio/Build Tools installation, install .

Git
Git website
Rust
CMake
LLVM
LLD
Rust
CMake
LLVM
libssl-dev
libclang-dev
Rust
LLVM
latest prebuilt release
Microsoft Visual Studio Build Tools for Windows
Visual Studio
CMake