Build from Source
Build from Source

Build starcoin from source.

  1. Clone source code

    git clone https://github.com/starcoinorg/starcoin.git
    cd starcoin
    
  2. Setup build environment

    ./scripts/dev_setup.sh
    

    If your operating system is CentOS 6.x , then use such commands to install some toolset.

    yum install centos-release-scl
    yum install devtoolset-7
    . /opt/rh/devtoolset-7/enable
    
  3. Run debug build

    cargo build
    
  4. Run release build

    cargo build --release
    

The debug version starcoin at target/debug/starcoin, and release version at target/release/starcoin.