Install Iroha 2
This tutorial guides you through the steps to install Iroha 2 and its necessary binaries on your machine.
1. Prerequisites
To install Iroha 2, you need to set up the following first:
- git
- OpenSSL
- Rust Toolchain (v1.60.0 or newer)
TIP: How to Install OpenSSL
Note that in most Linux setups OpenSSL is already available to you.
Install OpenSSL on Ubuntu:
bash$ sudo apt-get install libssl-devInstall OpenSSL on macOS using brew:
bash$ brew install openssl
Check the OpenSSL installation guide for details.
2. Clone Iroha from GitHub
Create a new directory for Iroha. In this tutorial we use
Gitas an example, but you can name it anything else:bash$ mkdir -p ~/GitTIP
On macOS, if you get the
fatal: could not create work tree dir 'iroha': Read-only file systemerror, that is because the home directory is not a real file system.To fix this, create a directory named
Git.Enter the directory that you created:
bash$ cd ~/GitClone the
irohaGitHub repository:bash$ git clone https://github.com/hyperledger-iroha/iroha.gitChange directory to the cloned repository:
bash$ cd iroha
3. Install Iroha Binaries
To get started you need two of the binaries shipped with Iroha:
iroha, the main command line tool for accessing the Iroha network as a user. It allows you to manage domains, accounts, and assets, and to query network status and events. To installirohasystem-wide, use the following command:
$ cargo install --path crates/iroha_cli --lockedkagami, the tool that generates cryotpgraphic keys, configuration files and other necessary data. To installkagamisystem-wide, use the following command:
$ cargo install --path crates/iroha_kagami --locked