Setup without Nix (currently unsupported)
If you ended up here because you ran into problems with the Nix based quick installation guide, we would greatly appreciate if you let us know what went wrong by creating a bug report so that we can look into it.
Holonix is the recommended way to set up your development environment. We don’t provide support for installing Holochain without Holonix.
Install Holochain without Holonix
In case you don’t want to use Holonix to set up your development environment, here are the steps provided to install Holochain binaries directly from the crate registry. At first the required Rust toolchain and features are installed, followed by the actual Holochain dependencies.
Ubuntu-based Linux distributions
Install the Rust toolchain and build dependencies
- Follow the official Rust toolchain installation
- Install the required target to build WebAssembly binaries
rustup target add wasm32-unknown-unknown
- Linux build tools
sudo apt-get install build-essential
sudo apt-get install libssl-dev
- Build dependency for Cargo libraries
sudo apt-get install pkg-config
Install Holochain binaries
The following commands will compile and install the binaries into your user’s profile. It will overwrite any pre-existing binaries, also in the case where its already the latest version.
cargo install --force holochain
cargo install --force holochain_cli
cargo install --force lair_keystore
cargo install --force holochain_cli_launch
cargo install --force holochain_scaffolding_cli