Skip to content

Latest commit

 

History

History
58 lines (31 loc) · 1.83 KB

dev-env-setup.md

File metadata and controls

58 lines (31 loc) · 1.83 KB

Set up your Starport development environment

To ensure you have a successful experience developing with Starport, make sure that your local system meets these technical requirements.

Starport is supported for the following operating systems:

  • GNU/Linux
  • macOS
  • Windows Subsystem for Linux (WSL)

Install Go

This installation method removes existing Go installations, installs Go, and sets the environment variables.

  1. Install the latest version of Go.

  2. Download the release that is suitable for your system.

  3. Follow the installation instructions.

Note: We recommend not using brew to install Go.

Add the Go bin directory to your PATH

Ensure the Go environment variables are set properly on your system. Many of the initial problems are related to incorrect environment variables.

  1. Edit your ~/.bashrc file and add export PATH=$PATH:$(go env GOPATH)/bin.
  2. To apply the changes, run source ~/.bashrc.

Remove existing Starport installations

Before you install a new version of Starport, remove all existing Starport installations.

  1. Remove the Starport binary with rm $(which starport)

    Depending on your user permissions, run the command with or without sudo.

  2. Repeat this step until all starport installations are removed from your system.

curl https://get.starport.network/starport! | bash

See Install Starport.

Clone the Starport repo

git clone --depth=1 [email protected]:tendermint/starport.git

Run make install

  1. After you clone the starport repo, change into the root directory cd starport.

  2. Run make install.

Verify Your Starport version

To verify the version of Starport you have installed, run starport version.

The latest version is Starport version: development.