<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 16/11/21 12:27 am, Onorio Catenacci
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACW5TXQ79MRYas43-cJm_a_-fRDgGxevXzVjTbmtUPoX2=gb8w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>When I attempt to install Erlang 21 on a new Apple Silicon
chip I get this message:</div>
<div><br>
</div>
<div>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Cascadia
Mono
PL";color:rgb(83,104,112);background-color:rgba(252,244,220,0.96)"><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures">onorio.catenacci$
brew install erlang@21</span></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Cascadia
Mono
PL";color:rgb(83,104,112);background-color:rgba(252,244,220,0.96)"><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures">erlang@21:
The x86_64 architecture is required for this software.</span></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Cascadia
Mono
PL";color:rgb(83,104,112);background-color:rgba(252,244,220,0.96)"><span
class="gmail-s2"
style="font-variant-ligatures:no-common-ligatures;color:rgb(175,32,23)">Error:</span><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures">
erlang@21: An unsatisfied requirement failed this build.</span></p>
</div>
<div><br>
</div>
<div>I found this: </div>
<div><a href="https://stackoverflow.com/a/67098973/2820"
moz-do-not-send="true">https://stackoverflow.com/a/67098973/2820</a><br
clear="all">
<div><br>
</div>
<div>But it doesn't seem to do the trick. When I attempt to
run it I get this message:</div>
<div><br>
</div>
<div>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Cascadia
Mono
PL";color:rgb(83,104,112);background-color:rgba(252,244,220,0.96)"><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures">onorio.catenacci$
arch -x86_64 brew install erlang@21</span></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Cascadia
Mono
PL";color:rgb(83,104,112);background-color:rgba(252,244,220,0.96)"><span
class="gmail-s2"
style="font-variant-ligatures:no-common-ligatures;color:rgb(175,32,23)">Error:</span><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures">
Cannot install under Rosetta 2 in ARM default prefix
(/opt/homebrew)!</span></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Cascadia
Mono
PL";color:rgb(83,104,112);background-color:rgba(252,244,220,0.96)"><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures">To
rerun under ARM use:</span></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Cascadia
Mono
PL";color:rgb(83,104,112);background-color:rgba(252,244,220,0.96)"><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures"><span
class="gmail-Apple-converted-space"> </span>arch
-arm64 brew install ...</span></p>
<p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Cascadia
Mono
PL";color:rgb(83,104,112);background-color:rgba(252,244,220,0.96)"><span
class="gmail-s1"
style="font-variant-ligatures:no-common-ligatures">To
install under x86_64, install Homebrew into /usr/local.</span></p>
</div>
<div><br>
</div>
</div>
</div>
</blockquote>
<p>Homebrew installs architecture-specific binaries in different
hierarchies, <font face="monospace">/usr/local</font> for x86-64
and <font face="monospace">/opt/homebrew</font> for AS. Both can
be installed simultaneously, but each hierarchy is maintained by a
different instance of the Homebrew software, i.e. <font
face="monospace">/usr/local/bin/brew</font> manages x86-64
bottles, while <font face="monospace">/opt/homebrew/bin/brew</font>
manages the AS ones.<br>
</p>
<p>In your case, you can do this:</p>
<pre>arch -x86_64 bash -c "$(curl -fsSL <a class="moz-txt-link-freetext" href="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh">https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh</a>)"</pre>
<p>to install x86_64 Homebrew alongside your existing AS one, then:</p>
<pre>/usr/local/bin/brew install erlang@21</pre>
<p>will get you what you want.</p>
<p>Best Regards,<br>
Adrian<br>
</p>
</body>
</html>