dapptools on macOS M1
Update: dapp
is no longer maintained. It’s recommended to use
instead. Foundry
In this quick tutorial, I will show you how to install dapptools on your macOS M1. You will be able to use dapptools right away after this tutorial.
Make sure you have enabled Rosetta on your macOS.
If you are using iTerm you can enabled it via the settings. Go to “Get Info” then enable the Rosetta.
To double check, you can run the following command:
✦ uname -a
Make sure it shows x86_64
at the end of the line, not arm64
.
This is crucial step, most of the error is because dapptools doesn’t work well with the latest version of nix.
You can install nix 2.5 by running the following command:
✦ sh <(curl -L https://releases.nixos.org/nix/nix-2.5.1/install)
Follow the instruction then wait the installation finished.
Run the following command to install dapptools:
curl https://dapp.tools/install | sh
DONE.
You should have dapptools installed.
To double check the installation, run the following command:
✦ dapp --version
dapp 0.35.0
solc, the solidity compiler commandline interface
Version: 0.8.6+commit.11564f7e.Darwin.appleclang
hevm 0.49.0
If you got error: file 'REPEAT' was not found
like the following:
error: file 'REPEAT' was not found in the Nix search path (add it using $NIX_PATH or -I)
at /nix/store/xgasnl190vw8a9qakqd4h8wv11xv1m63-env-manifest.nix:1:2734:
To fix this error, you need to edit the .nix
file manually: Replace <REPEAT>
with "REPEAT"
.
TAGS
*post-tags*
- [1]
LINKS
*post-links*
- [1]