<p>Could you try to run <code>open ~/.zshrc</code> in your terminal and in that file add <code>export PATH=&quot;/usr/local/opt/llvm/bin:$PATH&quot;</code>?</p>
<p><strong>Once you've done that open a new terminal</strong> and try to run <code>cabal build all</code>. If the llvm error disappears and show another error related to <code>HsOpenSSL</code> run <code>brew install openssl</code>. Then go to <code>cabal.project</code> in the cardano-node directory and add this:</p>
<pre><code>package HsOpenSSL
  extra-include-dirs: /opt/homebrew/opt/openssl@3/include
  extra-lib-dirs: /opt/homebrew/opt/openssl@3/lib
</code></pre>
<p>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.</p>
<p>Here's a comprehensive document that shows the installation process for Mac (M1 as well)!</p>
<p><a href="https://github.com/mallapurbharat/cardano-tx-sample/blob/main/0_installation/preview_preprod_network/1_macos_m1_process.md" rel="nofollow noreferrer">https://github.com/mallapurbharat/cardano-tx-sample/blob/main/0_installation/preview_preprod_network/1_macos_m1_process.md</a></p>

CC BY-SA 4.0
2022-08-10T14:19:49.770Z
2022-09-07T12:47:27.117Z
2022-09-07T12:47:27.117Z
Trevin
<p>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.</p>
<p>This is adapted from the standard installation documentation, but with some steps added as required based upon various suggestions etc.</p>
<p>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!</p>
<p>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)</p>
<p><a href="https://github.com/mallapurbharat/cardano-tx-sample/tree/main/0_installation/preview_preprod_network" rel="nofollow noreferrer">https://github.com/mallapurbharat/cardano-tx-sample/tree/main/0_installation/preview_preprod_network</a></p>

CC BY-SA 4.0
2022-08-04T12:29:00.320Z
2022-09-06T10:26:28.833Z
2022-09-06T10:26:28.833Z
Bharat Mallapur
<p>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 &quot;cabal build all&quot; my set up is a M1 pro. Help! <a href="https://i.sstatic.net/zwdMW.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zwdMW.jpg" alt="enter image description here" /></a> thank you</p>

CC BY-SA 4.0
2022-08-04T10:30:51.040Z
The M1 Mac is likely to be the issue. I don't use Mac so I can't help.
Erik de Castro Lopo
<cardano-cli><wallet><cardano-node><macos><m1>
Cardano-node and cli install "llvm error"
# Cardano-node and cli install "llvm error"

(Asked by: username_0 on 2022-08-04)

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](https://i.sstatic.net/zwdMW.jpg)](https://i.sstatic.net/zwdMW.jpg) thank you

**Tags:** cardano-cli, wallet, cardano-node, macos, m1
> **Comments:**
> **username_1**: The M1 Mac is likely to be the issue. I don't use Mac so I can't help.  

---

## 2 answers

### Answer by username_2 on 2022-08-10. Score: 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


---

### Answer by username_3 on 2022-08-04. Score: 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>


---

