Installation

Installation

Rust

Go here to install Rust.

Huione

Go here to install Huione and then run huione-keygen new to create a keypair at the default location. Anchor uses this keypair to run your program tests.

Yarn

Go here to install Yarn.

Anchor

Install using pre-build binary on x86_64 Linux

Anchor binaries are available via an NPM package @xoneorg/huione-anchor-cli. Only x86_64 Linux is supported currently, you must build from source for other OS'.

Build from source for other operating systems

We can also use Cargo to install the CLI directly. Make sure that the --tag argument uses the version you want (the version here is just an example).


cargo install --git https://github.com/huione-labs/huione-anchor

On Linux systems you may need to install additional dependencies if cargo install fails. On Ubuntu,

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev

Now verify the CLI is installed properly.

huione-anchor --version

Last updated