Installation Steps

Obtaining the binary can be done by either of the following methods:

Download Binary from GitHub

  1. 1.
    First make sure you have golang installed and $PATH is pointing to where go binary is installed. Also set the $GOPATH environment variable.
  2. 2.
    Head over to our Releases Page and download the latest version of the Onomy Binary.
    • Default structure for Onomy files:
|- .onomy (Default home location for onomy chain)
|- bin (Default location for all the binaries)
|- scripts (Default location of all the scripts)
|- src (Default location for source code, in case binaries are compiled locally)
3. Copy the downloaded binary to $HOME/.onomy/bin directory and add executable permission chmod +x onomyd
4. Add $HOME/.onomy/bin to $PATH environment variable. export PATH=$PATH:$HOME/.onomy/bin
5. To make changes in PATH variable persistent, run the following command, which will add an export command to your .bashrc file. echo "export PATH=$PATH:$HOME/.onomy/bin" >> ~/.bashrc

Compile Binary Locally

  1. 1.
    Download the script wget
  2. 2.
    Add the executable permission using chmod +x
  3. 3.
    Run the script using bash
  4. 4.
    Restart terminal so changes made in environment can take effect
This script downloads and compiles Onomy binary. A new directory .onomy will be created in your home directory. All the source code will be downloaded in the .onomy/src directory. Compiled binary will be in .onomy/bin directory.
NOTE: Do not run the script as a super user. If you run script as a super user, then the .onomy directory will be created in home directory of super user. Script will ask for super user privileges while installing and updating packages.