<p>I also do have Macbook with M1 chip and I use precompiled binaries that ship with Daedalus. It will save you a lot of trouble unless you really want to build it from source.</p>
<p>After you've installed your Daedalus you can sym link cardano-cli binary that comes with it and export <code>CARDANO_NODE_SOCKET_PATH</code> env variable and it should be ready to use.</p>
<p>For example if you want to sym link cardano-cli for testnet Daedauls you'd do this:</p>
<pre><code>ln -s /Applications/Daedalus Testnet.app/Contents/MacOS/cardano-cli /usr/local/bin/cardano-cli
</code></pre>
<p>and to export <code>CARDANO_NODE_SOCKET_PATH</code> env variable you would do this:</p>
<pre><code>export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Testnet/cardano-node.socket
</code></pre>
<p>Once you do this, and sync your node (by running you wallet) you should be ready to submit transactions and or query blockchain.</p>

CC BY-SA 4.0
2021-10-12T17:23:10.073Z
I think this is the most valid solution right now. Configuring the Testnet is just the same steps as it would be if you had built from the source. Good work around :)
Isaac Padberg
CC BY-SA 4.0
2023-08-30T02:32:26.213Z
It's now called Daedalus\ Preview just FYI
Joseph Astrahan
CC BY-SA 4.0
2021-10-12T05:41:08.293Z
2021-10-12T05:41:08.293Z
pyropy
<p><s>seems something simillar is necessary to do after <code>cabal configure...</code>. Mac doesn't have apt command, but I would assume you can get those libraries with homebrew</p>
<pre><code>sudo apt install llvm-9
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
</code></pre>
<p>source:
<a href="https://github.com/cardano-foundation/developer-portal/pull/437/commits/85f564177b773b63e4ee72428bda0768b427a05c#diff-0745839a94fa9b2a7c65f30e077253964dbbb6eb0811040d9f832cec3198a6d8" rel="nofollow noreferrer">https://github.com/cardano-foundation/developer-portal/pull/437/commits/85f564177b773b63e4ee72428bda0768b427a05c#diff-0745839a94fa9b2a7c65f30e077253964dbbb6eb0811040d9f832cec3198a6d8</a>
</s></p>
<p><strong>Edited 02-Jan-2022:</strong></p>
<p>So I was able to compile cardano-node on M1, main trick to install llvm + add some cabal options, before building.</p>
<p>To install llvm you will need:</p>
<pre><code>brew install llvm
</code></pre>
<p>Additionally you need to set cabal options after <code>cabal configure --with-compiler=ghc-8.10.7</code></p>
<pre><code>echo &quot;package trace-dispatcher&quot; &gt;&gt; cabal.project.local
echo &quot;  ghc-options: -Wwarn&quot; &gt;&gt; cabal.project.local
echo &quot;&quot; &gt;&gt; cabal.project.local
</code></pre>
<p>I got hint from here:
<a href="https://github.com/input-output-hk/cardano-node/issues/3395" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-node/issues/3395</a></p>
<p>Additionally I updated cardano-node instalation manual on <a href="https://developers.cardano.org/docs/get-started/installing-cardano-node" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/installing-cardano-node</a>, but it is not merged yet, here you can find full manual what I hope will be merged soon:</p>
<p><a href="https://github.com/cardano-foundation/developer-portal/blob/56898031b9f55608521ccb6d7f616579856d52b7/docs/get-started/installing-cardano-node.md#macos" rel="nofollow noreferrer">https://github.com/cardano-foundation/developer-portal/blob/56898031b9f55608521ccb6d7f616579856d52b7/docs/get-started/installing-cardano-node.md#macos</a></p>

CC BY-SA 4.0
2021-12-06T23:30:09.850Z
2022-01-02T11:52:10.503Z
2022-01-02T11:52:10.503Z
os11k
<p>I am able to confirm that the cardano-node that is packaged with the plutus-app git works find on an M1 apple.  Was able to mint tokens using the cli on the cardano testnet.  Cheers!</p>

CC BY-SA 4.0
2022-02-28T04:59:10.503Z
2022-02-28T04:59:10.503Z
specpro
<p>Try this guide. Worked for me using Debian in a VM</p>
<p><a href="https://gist.github.com/d0n13/d286b36d630fa6820c40b534fb56986a" rel="nofollow noreferrer">https://gist.github.com/d0n13/d286b36d630fa6820c40b534fb56986a</a></p>
<p>Unlike the Daedalus wallet these are arm64 binaries which are faster</p>
<p><strong>cardano-cli</strong>:  ELF 64-bit LSB executable, ARM aarch64</p>
<p><strong>cardano-node</strong>: ELF 64-bit LSB executable, ARM aarch64</p>

CC BY-SA 4.0
2021-11-06T22:28:30.877Z
2021-11-06T22:35:57.387Z
2021-11-06T22:35:57.387Z
d0n13
<p>Though, did you tried installing the node anyway ? I've been trying and it stops at the <code>cabal build all</code> commands, here's the error :</p>
<pre><code>    [3 of 3] Compiling Criterion.Measurement ( src/Criterion/Measurement.hs, dist/build/Criterion/Measurement.o, dist/build/Criterion/Measurement.dyn_o )

cbits/cycles.c:55:2: error:
     error: Unsupported OS/architecture/compiler!
   |
55 | #error Unsupported OS/architecture/compiler!
   |  ^
#error Unsupported OS/architecture/compiler!
 ^
1 error generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)
cabal: Failed to build criterion-measurement-0.1.2.0 (which is required by
test:cardano-api-test from cardano-api-1.30.1). See the build log above for
details.
</code></pre>
<p>Using Rosetta doesn't work either, an error occurs, not the same that without Rosetta :</p>
<pre><code>/var/folders/w5/wm5j4z5s4s9ff4hmkm2bfb4m0000gn/T/ghc17359_0/ghc_1.s:15:2: error:
     error: unrecognized instruction mnemonic, did you mean: eret, ret?
            retq
            ^
   |
15 |         retq
   |  ^

&lt;no location info&gt;: error:
    Error running clang! you need clang installed to use the LLVM backend
    (or GHC tried to execute clang incorrectly)
`clang' failed in phase `Clang (Assembler)'. (Exit code: 1)
</code></pre>
<p>Although I have installed llvm... I am still trying to figure how to go through all this but I don't have plenty of times</p>

CC BY-SA 4.0
2021-10-07T20:04:41.163Z
I get a similar error to the build where you did not use Rosetta. Mine says this ```cabal: Failed to build plutus-core-0.1.0.0```.  Some guy on the Cardano-node discord said he got it working when building from the source, so I don't know what to do.
Isaac Padberg
CC BY-SA 4.0
2021-10-07T20:44:29.107Z
Ive decided its not worth my time to figure this out when I can use a Linux Vm. Lemme know if you figure it out though :)
Isaac Padberg
CC BY-SA 4.0
2021-10-08T21:09:23.557Z
Well, i still find nothing about it, it looks like it is too soon haha. I managed to [make cardano-node and cardano-cli usable](https://www.reddit.com/r/cardano/comments/oszivp/comment/h6ykjou/?utm_source=share&utm_medium=web2x&context=3) through Daedalus App so i might be alright now ! :)
farnese
CC BY-SA 4.0
2021-10-09T03:12:49.480Z
Oh hell yah dude! Im gonna do the same. Did you end up using rosetta as well?
Isaac Padberg
CC BY-SA 4.0
2021-10-09T13:07:57.517Z
I am using rosetta yes, well it's not really a problem, if anything needs to be done without it i'll just uncheck that checkbox in the Read informations page of the terminal
farnese
CC BY-SA 4.0
2021-10-07T02:34:31.413Z
2021-10-07T14:14:25.943Z
2021-10-07T14:14:25.943Z
farnese
<p>I have created an elegant solution where you can run cardano-cli from any network easily.</p>
<p>Firstly, download preview and pre-prod here:</p>
<p><a href="https://docs.cardano.org/cardano-testnet/daedalus-testnet/" rel="nofollow noreferrer">https://docs.cardano.org/cardano-testnet/daedalus-testnet/</a></p>
<p>Download mainnet here:</p>
<p><a href="https://daedaluswallet.io/en/download/" rel="nofollow noreferrer">https://daedaluswallet.io/en/download/</a></p>
<p>Once you have done this navigate to <code>/usr/local/bin</code></p>
<p>Using <code>sudo</code> create 3 new files with the following names and shell script inside it.</p>
<p><strong>cardano-cli-preview</strong></p>
<pre><code>#!/bin/sh

export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Preview/cardano-node.socket

/Applications/Daedalus\ Preview.app/Contents/MacOS/cardano-cli &quot;$@&quot;
</code></pre>
<p><strong>cardano-cli-preprod</strong></p>
<pre><code>#!/bin/sh

export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Pre-Prod/cardano-node.socket

/Applications/Daedalus\ Pre-Prod.app/Contents/MacOS/cardano-cli &quot;$@&quot;
</code></pre>
<p><strong>cardano-cli-mainnet</strong></p>
<pre><code>#!/bin/sh

export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Mainnet/cardano-node.socket

/Applications/Daedalus\ Mainnet.app/Contents/MacOS/cardano-cli &quot;$@&quot;
</code></pre>
<p>Note the &quot;@&quot; will take all the arguments passed to it and pass it onto the real cardano-cli.</p>
<p>Make sure to give them execution permissions</p>
<pre><code>sudo chmod +x /usr/local/bin/cardano-cli-preview

sudo chmod +x /usr/local/bin/cardano-cli-preprod

sudo chmod +x /usr/local/bin/cardano-cli-mainnet
</code></pre>
<p>Now you can simply call cardano-cli-preview to connect to the preview network whenever you want, or call cardano-cli-preprod to connect to preproduction and cardano-cli-mainnet for the mainnet.</p>
<p>To test each of these you can run the following commands</p>
<pre><code>cardano-cli-preview query tip --testnet-magic 2

cardano-cli-preprod query tip --testnet-magic 1

cardano-cli-mainnet query tip --mainnet
</code></pre>

CC BY-SA 4.0
2023-08-30T03:42:41.267Z
2023-08-30T03:42:41.267Z
Joseph Astrahan
<p>I am trying to get a cardano node started on a Mac with the new M1 chip. Ive looked through the <a href="https://developers.cardano.org/docs/get-started/installing-cardano-node" rel="noreferrer">Installing a Cardano-node</a> walk-through and found that they specify that the Mac install is for Intel chips only. They do say that they are working on a guide for the M1 chip, so this leads me to believe that it is possible. Does anybody have a lead or suggestions as to what the different steps might be?</p>

CC BY-SA 4.0
2021-12-03T18:51:03.847Z
@Srdjan - cardano.blue i'm getting an error using `ln -s /Applications/Daedalus Testnet.app/Contents/MacOS/cardano-cli /usr/local/bin/cardano-cli
` error says `ln: /usr/local/bin/cardano-cli: No such file or directory` How can I fix that?
Cezar
<cardano-node><m1><macos><install>
Installing Cardano-node on an M1 Mac
# Installing Cardano-node on an M1 Mac

(Asked by: username_0 on 2021-10-06)

I am trying to get a cardano node started on a Mac with the new M1 chip. Ive looked through the [Installing a Cardano-node](https://developers.cardano.org/docs/get-started/installing-cardano-node) walk-through and found that they specify that the Mac install is for Intel chips only. They do say that they are working on a guide for the M1 chip, so this leads me to believe that it is possible. Does anybody have a lead or suggestions as to what the different steps might be?

**Tags:** cardano-node, m1, macos, install
> **Comments:**
> **username_1**: @Srdjan - cardano.blue i'm getting an error using `ln -s /Applications/Daedalus Testnet.app/Contents/MacOS/cardano-cli /usr/local/bin/cardano-cli ` error says `ln: /usr/local/bin/cardano-cli: No such file or directory` How can I fix that?  

---

## 6 answers

### Answer by username_2 on 2021-10-12. Score: 11 | Accepted answer

I also do have Macbook with M1 chip and I use precompiled binaries that ship with Daedalus. It will save you a lot of trouble unless you really want to build it from source.
After you've installed your Daedalus you can sym link cardano-cli binary that comes with it and export CARDANO_NODE_SOCKET_PATH env variable and it should be ready to use.
For example if you want to sym link cardano-cli for testnet Daedauls you'd do this:
ln -s /Applications/Daedalus Testnet.app/Contents/MacOS/cardano-cli /usr/local/bin/cardano-cli

and to export CARDANO_NODE_SOCKET_PATH env variable you would do this:
export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Testnet/cardano-node.socket

Once you do this, and sync your node (by running you wallet) you should be ready to submit transactions and or query blockchain.

> **Comments:**
> **username_0**: I think this is the most valid solution right now. Configuring the Testnet is just the same steps as it would be if you had built from the source. Good work around :)  
> **username_3**: It's now called Daedalus\ Preview just FYI  

---

### Answer by username_4 on 2021-12-06. Score: 3

seems something simillar is necessary to do after cabal configure.... Mac doesn't have apt command, but I would assume you can get those libraries with homebrew
sudo apt install llvm-9
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

source:
https://github.com/cardano-foundation/developer-portal/pull/437/commits/85f564177b773b63e4ee72428bda0768b427a05c#diff-0745839a94fa9b2a7c65f30e077253964dbbb6eb0811040d9f832cec3198a6d8

Edited 02-Jan-2022:
So I was able to compile cardano-node on M1, main trick to install llvm + add some cabal options, before building.
To install llvm you will need:
brew install llvm

Additionally you need to set cabal options after cabal configure --with-compiler=ghc-8.10.7
echo "package trace-dispatcher" >> cabal.project.local
echo "  ghc-options: -Wwarn" >> cabal.project.local
echo "" >> cabal.project.local

I got hint from here:
https://github.com/input-output-hk/cardano-node/issues/3395
Additionally I updated cardano-node instalation manual on https://developers.cardano.org/docs/get-started/installing-cardano-node, but it is not merged yet, here you can find full manual what I hope will be merged soon:
https://github.com/cardano-foundation/developer-portal/blob/56898031b9f55608521ccb6d7f616579856d52b7/docs/get-started/installing-cardano-node.md#macos


---

### Answer by username_5 on 2022-02-28. Score: 1

I am able to confirm that the cardano-node that is packaged with the plutus-app git works find on an M1 apple. Was able to mint tokens using the cli on the cardano testnet. Cheers!


---

### Answer by username_6 on 2021-11-06. Score: 1

Try this guide. Worked for me using Debian in a VM

<https://gist.github.com/d0n13/d286b36d630fa6820c40b534fb56986a>

Unlike the Daedalus wallet these are arm64 binaries which are faster

**cardano-cli**: ELF 64-bit LSB executable, ARM aarch64

**cardano-node**: ELF 64-bit LSB executable, ARM aarch64


---

### Answer by username_7 on 2021-10-07. Score: 0

Though, did you tried installing the node anyway ? I've been trying and it stops at the cabal build all commands, here's the error :
    [3 of 3] Compiling Criterion.Measurement ( src/Criterion/Measurement.hs, dist/build/Criterion/Measurement.o, dist/build/Criterion/Measurement.dyn_o )

cbits/cycles.c:55:2: error:
     error: Unsupported OS/architecture/compiler!
   |
55 | #error Unsupported OS/architecture/compiler!
   |  ^
#error Unsupported OS/architecture/compiler!
 ^
1 error generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)
cabal: Failed to build criterion-measurement-0.1.2.0 (which is required by
test:cardano-api-test from cardano-api-1.30.1). See the build log above for
details.

Using Rosetta doesn't work either, an error occurs, not the same that without Rosetta :
/var/folders/w5/wm5j4z5s4s9ff4hmkm2bfb4m0000gn/T/ghc17359_0/ghc_1.s:15:2: error:
     error: unrecognized instruction mnemonic, did you mean: eret, ret?
            retq
            ^
   |
15 |         retq
   |  ^

: error:
    Error running clang! you need clang installed to use the LLVM backend
    (or GHC tried to execute clang incorrectly)
`clang' failed in phase `Clang (Assembler)'. (Exit code: 1)

Although I have installed llvm... I am still trying to figure how to go through all this but I don't have plenty of times

> **Comments:**
> **username_0**: I get a similar error to the build where you did not use Rosetta. Mine says this ```cabal: Failed to build plutus-core-0.1.0.0```.  Some guy on the Cardano-node discord said he got it working when building from the source, so I don't know what to do.  
> **username_0**: Ive decided its not worth my time to figure this out when I can use a Linux Vm. Lemme know if you figure it out though :)  
> **username_7**: Well, i still find nothing about it, it looks like it is too soon haha. I managed to [make cardano-node and cardano-cli usable](https://www.reddit.com/r/cardano/comments/oszivp/comment/h6ykjou/?utm_source=share&utm_medium=web2x&context=3) through Daedalus App so i might be alright now ! :)  
> **username_0**: Oh hell yah dude! Im gonna do the same. Did you end up using rosetta as well?  
> **username_7**: I am using rosetta yes, well it's not really a problem, if anything needs to be done without it i'll just uncheck that checkbox in the Read informations page of the terminal  

---

### Answer by username_3 on 2023-08-30. Score: 0

I have created an elegant solution where you can run cardano-cli from any network easily.
Firstly, download preview and pre-prod here:
https://docs.cardano.org/cardano-testnet/daedalus-testnet/
Download mainnet here:
https://daedaluswallet.io/en/download/
Once you have done this navigate to /usr/local/bin
Using sudo create 3 new files with the following names and shell script inside it.
cardano-cli-preview
#!/bin/sh

export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Preview/cardano-node.socket

/Applications/Daedalus\ Preview.app/Contents/MacOS/cardano-cli "$@"

cardano-cli-preprod
#!/bin/sh

export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Pre-Prod/cardano-node.socket

/Applications/Daedalus\ Pre-Prod.app/Contents/MacOS/cardano-cli "$@"

cardano-cli-mainnet
#!/bin/sh

export CARDANO_NODE_SOCKET_PATH=~/Library/Application\ Support/Daedalus\ Mainnet/cardano-node.socket

/Applications/Daedalus\ Mainnet.app/Contents/MacOS/cardano-cli "$@"

Note the "@" will take all the arguments passed to it and pass it onto the real cardano-cli.
Make sure to give them execution permissions
sudo chmod +x /usr/local/bin/cardano-cli-preview

sudo chmod +x /usr/local/bin/cardano-cli-preprod

sudo chmod +x /usr/local/bin/cardano-cli-mainnet

Now you can simply call cardano-cli-preview to connect to the preview network whenever you want, or call cardano-cli-preprod to connect to preproduction and cardano-cli-mainnet for the mainnet.
To test each of these you can run the following commands
cardano-cli-preview query tip --testnet-magic 2

cardano-cli-preprod query tip --testnet-magic 1

cardano-cli-mainnet query tip --mainnet


---

