Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

hc and holochain fail using holonix in WSL 1 #49

Open
pythagorean opened this issue Aug 13, 2019 · 5 comments
Open

hc and holochain fail using holonix in WSL 1 #49

pythagorean opened this issue Aug 13, 2019 · 5 comments

Comments

@pythagorean
Copy link

pythagorean commented Aug 13, 2019

I can build and run hc and holochain in the Windows Subsystem for Linux running Ubuntu 18 LTS. However when using holonix via nix-shell --pure https://holochain.love, the following error is produced when attempting to run these:

[nix-shell:~/fs/devel/hc/apps/tic-tac-toe]$ hc --version
bash: /nix/store/fjw6vzk7dvi1rq5cj3rrwm7qch7gn3b6-hc/bin/hc: cannot execute binary file: Exec format error

[nix-shell:~/fs/devel/hc/apps/tic-tac-toe]$ holochain --version
bash: /nix/store/5dsdc60gfc51a0vabbsfv1ivqw2lv0p8-holochain/bin/holochain: cannot execute binary file: Exec format error
@lukateras
Copy link
Contributor

Hi! I wonder if you're running 32-bit Windows? See how to check here. If that's the case, prebuilt binaries won't work, and should rightfully result in Exec format error.

@pythagorean
Copy link
Author

Definitely not.

@pythagorean
Copy link
Author

I've just updated to the most recent Holonix, and still have the same issue, but in watching the install this message suggested what could be the problem:

warning: working around a Linux kernel bug by creating a hole of 364544 bytes in ‘/nix/store/ch6mw5yph0lyab2xp9pf1qlnw904fla6-hc/bin/hc’

Since WSL (as opposed to the forthcoming WSL 2) does not use an actual Linux kernel this may make it break.

@thedavidmeister
Copy link
Collaborator

@pythagorean that comes from patchelf and would be avoided/fixed by holochain/holonix#52

@thedavidmeister thedavidmeister changed the title hc and holochain fail using holonix in WSL hc and holochain fail using holonix in WSL 1 Sep 15, 2019
@thedavidmeister
Copy link
Collaborator

i think this works in WSL 2 (i tried it quite recently) so i think this is a WSL 1 problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants