Skip to content

Run Skywire from Source

Moses Narrow edited this page Jan 20, 2022 · 1 revision

Run Skywire From Source

To run or compile Skywire from source, make sure you have Git and Golang installed on your machine. You need Golang version 1.16+ for go modules support. Start by downloading the latest version of Go for your OS and architecture on golang.org .

Open the terminal and use cd to enter the directory that you downloaded the Go binary to. Run

sudo tar -C /usr/local -xzf $GO_BINARY (replace $GO_BINARY with the name of the file you downloaded)

Enter the password for your machine and hit Enter.

Then add the Go installation to your $PATH with

export PATH=$PATH:/usr/local/go/bin 

You can test whether Go was succesfully installed with

go version

This command should return the version of Go you installed.

Next, you need to install Git. This can be done with

git --version (for MacOS users)

sudo apt install git-all(for users of Debian based Linux distributions)

You can now clone the skywire repo with:

git clone https://github.com/skycoin/skywire.git

Enter the directory with

cd skywire

To run from source without compiling

make run-source

Build and install by running

make build; make install

Afterwards you can generate the hypervisor configuration file with:

skywire-cli config gen --is-hypervisor

If you do not want to expose/use the hypervisorUI, run:

skywire-cli visor gen-config

Clone this wiki locally