0

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

1
  • 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

1

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)!

https://github.com/mallapurbharat/cardano-tx-sample/blob/main/0_installation/preview_preprod_network/1_macos_m1_process.md

0

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)

https://github.com/mallapurbharat/cardano-tx-sample/tree/main/0_installation/preview_preprod_network

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.