<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: phathdt</title>
    <description>The latest articles on DEV Community by phathdt (@phathdt).</description>
    <link>https://dev.to/phathdt</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F231359%2F638a12b2-ff2b-40e8-8acc-e1eb5e564e0c.jpeg</url>
      <title>DEV Community: phathdt</title>
      <link>https://dev.to/phathdt</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phathdt"/>
    <language>en</language>
    <item>
      <title>Installing Erlang &amp; Elixir on M1 Macs</title>
      <dc:creator>phathdt</dc:creator>
      <pubDate>Thu, 09 Dec 2021 16:59:26 +0000</pubDate>
      <link>https://dev.to/onpointvn/installing-erlang-elixir-on-m1-macs-1b8g</link>
      <guid>https://dev.to/onpointvn/installing-erlang-elixir-on-m1-macs-1b8g</guid>
      <description>&lt;p&gt;This week I have a new macbook pro M1, an amazing computer. After several times install erlang and elixir with but dont have any luck. Then I have a solution is install erlang by brew, then reshim to asdf, this solution was suggested by this &lt;a href="https://github.com/asdf-vm/asdf-erlang/issues/221#issuecomment-958621514"&gt;comment&lt;/a&gt; on GitHub&lt;/p&gt;

&lt;p&gt;I assume you have installed asdf already, but here is the full installation command I use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install asdf autoconf wxmac openssl@1.1 fop coreutils automake libyaml readline libxslt libtool unixodbc unzip curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Please note that you should install and using &lt;a href="mailto:openssl@1.1"&gt;openssl@1.1&lt;/a&gt; because Erlang doesn't support openssl 3 yet. If you already install the latest version, please try unlink and link version &lt;a href="mailto:openssl@1.1"&gt;openssl@1.1&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew unlink openssl@3 
brew link openssl@1.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next is add plugin erlang asdf&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you are ready to install Erlang 24 and Elixir 1.12.3 using brew and reshim to asdf&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install erlang@24 
cp -r /opt/homebrew/opt/erlang@24/lib/erlang ~/.asdf/installs/erlang/24.1.7
asdf reshim erlang 24.1.7
asdf global erlang 24.1.7 
asdf install elixir 1.12.3-otp-24
asdf global elixir 1.12.3-otp-24
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to install another version ( 23 for me )&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew unlink erlang@24 
brew install erlang@23 
cp -r /opt/homebrew/opt/erlang@23/lib/erlang ~/.asdf/installs/erlang/23.3.4.9
asdf reshim erlang 23.3.4.9
asdf global erlang 23.3.4.9 
asdf install elixir 1.10.4-otp-23
asdf global elixir 1.10.4-otp-23
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Please remember switch version erlang before install elixir &lt;/p&gt;

&lt;p&gt;after these step, you can use asdf to switch version erlang instead of using brew &lt;/p&gt;

&lt;p&gt;PS: you could check detail version erlang install brew at &lt;a href="https://formulae.brew.sh/formula/erlang"&gt;this&lt;/a&gt;&lt;br&gt;
PS: you could try update to Mac Monterey, it will fix some issue with rosetta&lt;/p&gt;

</description>
      <category>erlang</category>
      <category>elixir</category>
      <category>macos</category>
      <category>homebrew</category>
    </item>
  </channel>
</rss>
