Skip to content

Instantly share code, notes, and snippets.

@d0n13
Last active February 16, 2022 11:00
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d0n13/d286b36d630fa6820c40b534fb56986a to your computer and use it in GitHub Desktop.
Save d0n13/d286b36d630fa6820c40b534fb56986a to your computer and use it in GitHub Desktop.
Install Cardano node on M1 Mac using Debian VM

Installing cardano-node on M1 mac

sudo apt install curl

Install will fail running command

$ cabal build cardano-node cardano-cli

...citing "can't find llvm v9"

Install the following packages and modifications

$ sudo apt install clang-9 libnuma-dev
$ sudo ln -s /usr/bin/llvm-config-9 /usr/bin/llvm-config
$ sudo ln -s /usr/bin/opt-9 /usr/bin/opt
$ sudo ln -s /usr/bin/llc-9 /usr/bin/llc
$ sudo ln -s /usr/bin/clang-9 /usr/bin/clang

You can now run cardano build

$ cabal build cardano-node cardano-cli

Continue with instructions at the cardano node and cli developer page

... Install the newly built node and CLI commands to the $HOME/.local/bin directory:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment