dapphub / dapptools

Dapp, Seth, Hevm, and more

Home Page:https://dapp.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DappTools takes far too long to install

daweth opened this issue · comments

curl https://dapp.tools/install | sh is taking over 30 minutes to install . Is this normal behavior?

Update:

the installation is stuck on [ 2 of 32] Compiling EVM.FeeSchedule ( src/EVM/FeeSchedule.hs, dist/build/EVM/FeeSchedule.o, dist/build/EVM/FeeSchedule.dyn_o )

no, this means you have a cachix problem

@MrChico , not sure what that is. How do I fix it?

@daweth are you sitting behind a firewall or do you have some other security measures in place?

I saw the same issue with a machine that had "security software" installed (which blocks some domains) the other day.

Edit: I just updated to the most recent version and now it's also stuck on my end at patching script interpreter paths in /nix/store/8amxdfq9cc2f07y5c7xzgnrgy70d4rph-ethsign-0.17.1.

None that I’m aware of. Btw, I’m using the latest version of MacOS with a m1 max

Yeah, I run an Intel Mac however I also do run the latest version of macOS 12.0.1.

Oddly enough Dapp Tools c43ea2a6240b6e49c0b79b067ab703e018f617c8 runs without any issues.

I have the same issue here on M1 mac. Terminal running under rosetta but gets stuck at [ 2 of 32] Compiling EVM.FeeSchedule ( src/EVM/FeeSchedule.hs, dist/build/EVM/FeeSchedule.o, dist/build/EVM/FeeSchedule.dyn_o ).

Ok, found the solution. Install older version of nix:
https://releases.nixos.org/?prefix=nix/

I installed nix-2.3.16-x86_64-darwin.tar.xz.

How to:
Unzip the installed file, run ./install.
You may need to delete your old nix by sudo rm -rf /nix
Finally, install dapp tools. You can install the latest version.

Thanks for providing a fix @REGO350 👍

Hmm that's a little bit unfortunate (I use Nix as my main package manager on macOS). Hopefully DappTools will work with newer Nix versions soon.

commented

I have the same issue, as @REGO350 mentioned installing the older version of Nix solved the problem.

U can simply use the following command to install Nix specific version:

sh <(curl -L https://releases.nixos.org/nix/nix-2.3.16/install) --darwin-use-unencrypted-nix-store-volume

This doesn't work.

I am executing:

    $ sudo mkdir -pv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user

to make the basic directory structure of Nix (part 1)

mkdir: /nix: Read-only file system
mkdir: /nix/var: Read-only file system
mkdir: /nix/var/log: Read-only file system
mkdir: /nix/var/log/nix: Read-only file system
mkdir: /nix/var/log/nix/drvs: Read-only file system
mkdir: /nix/var/nix: Read-only file system
mkdir: /nix/var/nix/db: Read-only file system
mkdir: /nix/var/nix/gcroots: Read-only file system
mkdir: /nix/var/nix/profiles: Read-only file system
mkdir: /nix/var/nix/temproots: Read-only file system
mkdir: /nix/var/nix/userpool: Read-only file system
mkdir: /nix/var/nix/gcroots/per-user: Read-only file system
mkdir: /nix/var/nix/profiles/per-user: Read-only file system

@daweth : hi, did you find the solution for this? I have the same issue on Macbook Pro 2019 (not M1)

I have the same issue,
Someone solved this problem or solution for this?

[ 1 of 32] Compiling EVM.Demand       ( src/EVM/Demand.hs, dist/build/EVM/Demand.o, dist/build/EVM/Demand.dyn_o )
[ 2 of 32] Compiling EVM.FeeSchedule  ( src/EVM/FeeSchedule.hs, dist/build/EVM/FeeSchedule.o, dist/build/EVM/FeeSchedule.dyn_o )

Device Info:
Macbook Pro 2015 Intel
macOS Monterey

@piavgh @jokerstudio just use foundry, it has much better support