I'm facing error with the llvm install, i tried all the llvm@11;12;13 even the 14 and still a come across error when i move to step "cabal build all" my set up is a M1 pro. Help! enter image description here thank you

  • The M1 Mac is likely to be the issue. I don't use Mac so I can't help. Commented Aug 4, 2022 at 10:30

2 Answers 2


Could you try to run open ~/.zshrc in your terminal and in that file add export PATH="/usr/local/opt/llvm/bin:$PATH"?

Once you've done that open a new terminal and try to run cabal build all. If the llvm error disappears and show another error related to HsOpenSSL run brew install openssl. Then go to cabal.project in the cardano-node directory and add this:

package HsOpenSSL
  extra-include-dirs: /opt/homebrew/opt/openssl@3/include
  extra-lib-dirs: /opt/homebrew/opt/openssl@3/lib

NOTE: recent versions of homebrew have changed the path from /opt/homebrew/opt to /usr/local/opt. Please do a manual check to see where your brew installs are getting placed.

Here's a comprehensive document that shows the installation process for Mac (M1 as well)!



Looks like you might have installed llvm but it isn't in the path. Just to be on the safe side, try the steps in the guide below.

This is adapted from the standard installation documentation, but with some steps added as required based upon various suggestions etc.

This worked for me just a day or two ago on MacOS with M1 chip for 1.35.3, and today I reset based upon IOG's recommendation to 1.35.2 with the same steps, so it is vetted twice over!

UPDATE: Extensively updated the document with various checks that worked for quite a few of my learners with various issues that they faced. Updated for Preview, Preprod networks (and legacy network as well to some extent)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.