# Compile from source on Apple M1 without Rosetta 2

**URL:** <https://forum.dynare.org/t/compile-from-source-on-apple-m1-without-rosetta-2/17811>\
**Category:** Installation and Setup\
**Created:** [7 April 2021 07:50 UTC](https://forum.dynare.org/t/compile-from-source-on-apple-m1-without-rosetta-2/17811 "2021-04-07T07:50:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmutschl](https://forum.dynare.org/user_avatar/forum.dynare.org/wmutschl/32/18464_2.png) [@wmutschl](https://forum.dynare.org/u/wmutschl)\
**Post date:** [7 April 2021 07:50 UTC](https://forum.dynare.org/t/compile-from-source-on-apple-m1-without-rosetta-2/17811/1 "2021-04-07T07:50:46Z")

</div>

The instructions to [compile from source on MacOS](https://git.dynare.org/Dynare/dynare#macos) work for Intel-Macs but not directly on the new Apple Silicon M1 ARM-architecture. So we will need to update the instructions and any help here is appreciated as I am the only one of the team that has access to a M1 machine right now, but I have never used Macs before :-/

Has anyone successfully compiled from source? As far as I see, when running everything (terminal and homebrew) under Rosetta 2 everything compiles fine given the instructions on the page above (with additional --disable-doc flag when you don’t have pdflatex installed). As Matlab is still not available natively on Apple Silicon/ARM I guess this will work for most users. I still have to investigate which packages have not been translated yet within homebrew, but I actually think the most important ones should work. As far as I see, homebrew puts the ARM-native in /opt/homebrew and not in /usr/local. /usr/local is used for Intel based packages. Is this a correct assessment?

So any help is much appreciated.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [31 December 2021 10:25 UTC](https://forum.dynare.org/t/compile-from-source-on-apple-m1-without-rosetta-2/17811/2 "2021-12-31T10:25:30Z")

</div>

The related ticket is [Compile from source on Mac M1 Apple Silicon architecture (#1780) · Issues · Dynare / dynare · GitLab](https://git.dynare.org/Dynare/dynare/-/issues/1780)

---

<div class="post-metadata">

**Author:** ![wmutschl](https://forum.dynare.org/user_avatar/forum.dynare.org/wmutschl/32/18464_2.png) [@wmutschl](https://forum.dynare.org/u/wmutschl)\
**Post date:** [4 January 2022 13:47 UTC](https://forum.dynare.org/t/compile-from-source-on-apple-m1-without-rosetta-2/17811/3 "2022-01-04T13:47:08Z")

</div>

Until MATLAB releases a version that runs natively on Apple Silicon, we will also use Rosetta 2 for Dynare. Note that the performance with a M1 under Rosetta 2 is even better than with Intel chips (at least for me).
