Failing to install holochain

Hi,

When I run nix-shell https://holochain.love, it runs, but there are various errors during the install. Can someone help?

The main nuch of errors seem to be here:

install: copying directory /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/share/doc/rust/html

Rust is ready to roll.

Patching interpreter of ELF executables and libraries in /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/cargo
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/cargo-clippy
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/cargo-fmt
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/clippy-driver
warning: working around a Linux kernel bug by creating a hole of 1130496 bytes in ā€˜/nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/clippy-driverā€™
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/rls
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/rustc
warning: working around a Linux kernel bug by creating a hole of 1888256 bytes in ā€˜/nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/rustcā€™
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/rustdoc
warning: working around a Linux kernel bug by creating a hole of 1273856 bytes in ā€˜/nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/rustdocā€™
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/bin/rustfmt
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/libLLVM-9-rust-1.41.0-nightly.so
cannot find section .interp
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/librustc_driver-682b082830c1c29f.so
cannot find section .interp
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/librustc_macros-902e39cc31df3733.so
cannot find section .interp
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/libstd-353bd06d9817dba2.so
cannot find section .interp
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/libtest-1abe8a7844ac38e9.so
cannot find section .interp
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so
cannot find section .interp
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libLLVM-9-rust-1.41.0-nightly.so
cannot find section .interp
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-353bd06d9817dba2.so
cannot find section .interp
setting interpreter of /nix/store/dn5ssvfrrm1262mzdfa3dx6zncwjssdw-rust/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-1abe8a7844ac38e9.so
cannot find section .interp
post-installation fixup

And then when I run hc package, I get this error:

[nix-shell:~/my_new_app]$ hc package
/nix/store/2h5dvmcmd885m1h06cxvm2cz3fvzrxzy-rust-1.41.0-nightly-2019-11-15-1bd30ce2a/bin/cargo: 1: Syntax error: ā€œ)ā€ unexpected

CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR "
/home/paul/target
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR
ā€œCARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIRā€
bash: /nix/store/2h5dvmcmd885m1h06cxvm2cz3fvzrxzy-rust-1.41.0-nightly-2019-11-15-1bd30ce2a/bin/cargo: cannot execute binary file: Exec format error
Error: Couldnā€™t traverse DNA in directory ā€œ/home/paul/my_new_appā€: command CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR was not successful

Iā€™d really like to get into this technology but it seems a minefield to even get it installed and set up.

Thanks,

Paul.

Hi @PaulRadbone! Good to meet you.

So I donā€™t know what exact error you are having, but it looks like you are trying to get started with holochain redux, the old version of holochain. Iā€™m just saying this because this old version is now depecrated and everything is moving towards holochain RSM, here is the link to get started:

Although keep in mind, usability in holochain RSM is not great at the moment (there is no CLI or tooling, nor good documentation or tutorials) but all of this is getting ready at the moment.

Thanks,

Iā€™ll give it a go!

Hi,

I get so far and then this command fails when trying to create configs.

[nix-shell:~/holochain]$ holochain -i

  • [[ -n ā€˜ā€™ ]]
  • test -d /home/paul/holochain
  • test -w /home/paul/holochain
  • export HC_TARGET_PREFIX=/home/paul/holochain
  • HC_TARGET_PREFIX=/home/paul/holochain
  • crate=holochain
  • shift
  • cargo run --target-dir=/home/paul/holochain/target --manifest-path=/home/paul/holochain/crates/holochain/Cargo.toml ā€“ -i
    /nix/store/6p5ava71scdwrr056q02agf0kxrgfhhd-hc-run-crate/bin/hc-run-crate: line 18: /nix/store/58s1wvgfb6x2gcs203fn4jvgw8iby7pq-rust-1.48.0-2020-11-16-7eac88abb/bin/cargo: cannot execute binary file: Exec format error

Paul.

Hi!

So thatā€™s a weird error. What platform are you on? Linux is the best supported, I know there have been problems with the other ones.

You can also try installing it without nix-shell, but that would require you to install rust and cargo locally and do cargo install --path crates/holochain inside the repository folder.

Iā€™m using linux under windows 10 WSL Ubuntu.

It think itā€™s an issue with the Rust install.

Iā€™ll have another go installing everything again later. 3rd times a charm? :slight_smile:

Paul.

1 Like

It doesnā€™t seem to matter which flavour of linux I use, the build fails :frowning:

Trying the same on OpenSuse:

paul@DESKTOP-OBS2054:~/holochain> cargo install --path crates/holochain
Installing holochain v0.0.100 (file:///home/paul/holochain/crates/holochain)
error: failed to compile holochain v0.0.100 (file:///home/paul/holochain/crates/holochain), intermediate artifacts can be found at /home/paul/holochain/target

Caused by:
failed to parse lock file at: /home/paul/holochain/Cargo.lock

Caused by:
invalid serialized PackageId for key package.dependencies

Paul.

Oh no ideaā€¦ I havenā€™t encountered that issue.

As I said, right now things are still a little roughā€¦ I know people have had much better experiences with a linux virtual machine or native OS.

Hi again,

I scrapped WSL and Iā€™ve tried with Ubuntu on a virtual machine. Everything worked and built as should this time - so note to others - WSL does not work at the moment with Holochain.

However, when I run up the Conductor, I get another error - can you help me with this?

[nix-shell:~/holochain]$ holochain -i

  • [[ -n ā€˜ā€™ ]]
  • test -d /home/paul/holochain
  • test -w /home/paul/holochain
  • export HC_TARGET_PREFIX=/home/paul/holochain
  • HC_TARGET_PREFIX=/home/paul/holochain
  • crate=holochain
  • shift
  • cargo run --target-dir=/home/paul/holochain/target --manifest-path=/home/paul/holochain/crates/holochain/Cargo.toml ā€“ -i
    Finished dev [unoptimized + debuginfo] target(s) in 1.79s
    Running target/debug/holochain -i
    Jan 07 18:04:19.282 ERROR lair_keystore_client: error=IpcClientConnectError("/home/paul/.local/share/lair/socket", Os { code: 111, kind: ConnectionRefused, message: ā€œConnection refusedā€ }) file="/home/paul/holochain/.cargo/registry/src/github.com-1ecc6299db9ec823/lair_keystore_client-0.0.1-alpha.10/src/lib.rs" line=42
    Conductor ready.

Thanks,

Paul.

Actually that error is not really anything bad, itā€™s just saying that the conductor is not finding the lair-keystore and running it on its own. So that conductor ready phrase means everything is working fine, itā€™s ready to be used.

1 Like

HI I am having problems installing holochain on my MacBook Pro. The installation fails with the error shown below. Any help on how to resolve this problem will be greatly appreciated.

Thanks
Ozman

Building build.rs (libc)
Running rustc --crate-name build_script_build build.rs --crate-type bin -C opt-level=3 -C codegen-units=4 --cfg feature=ā€œuse_stdā€ --cfg feature=ā€œdefaultā€ --out-dir target/build/libc --emit=dep-info,link -L dependency=target/buildDeps --cap-lints allow --color always
error: linking with cc failed: exit code: 1
|
= note: ā€œccā€ ā€œ-m64ā€ ā€œ-Lā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/libā€ ā€œtarget/build/libc/build_script_build.build_script_build.7rcbfp3g-cgu.0.rcgu.oā€ ā€œtarget/build/libc/build_script_build.build_script_build.7rcbfp3g-cgu.1.rcgu.oā€ ā€œtarget/build/libc/build_script_build.build_script_build.7rcbfp3g-cgu.2.rcgu.oā€ ā€œtarget/build/libc/build_script_build.build_script_build.7rcbfp3g-cgu.3.rcgu.oā€ ā€œ-oā€ ā€œtarget/build/libc/build_script_buildā€ ā€œtarget/build/libc/build_script_build.1enide7h7a8vrbgy.rcgu.oā€ ā€œ-Wl,-dead_stripā€ ā€œ-nodefaultlibsā€ ā€œ-Lā€ ā€œtarget/buildDepsā€ ā€œ-Lā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/libā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libstd-c6ca9251a199aa27.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-39ec93fd4165c255.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace-a948cb44f048597a.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-9f041fb877b98c64.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-3c4a5c551a922378.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-2c195470cc27ba70.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-38fc89345f49f6a1.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libunwind-e60112f814e80d3d.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-ebddb7552a11bbd5.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/liblibc-46d8e16ab2813df4.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc-349e6b1effd8559c.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-1a46406c8cbb31ae.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libcore-2922fa7cbacf5093.rlibā€ ā€œ/nix/store/8icyzpvrcsmc3sv4hapr73hfgbsqwb1v-rustc-1.37.0/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-96d54cc5512fa6bf.rlibā€ ā€œ-lSystemā€ ā€œ-lresolvā€ ā€œ-lcā€ ā€œ-lmā€
= note: ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

Hey, there is work in progress on Holonix to include Holochain RSM. If you would like to try it out while we progress towards releasing it you can do so using the following command:

$(nix-build https://nightly.holochain.love --no-link -A pkgs.holonix)/bin/holonix

Please be aware of the changes of this unreleased version, which are being logged here: https://github.com/holochain/holonix/blob/develop/CHANGELOG-UNRELEASED.md

1 Like