Re: Installing GHC on my MacBook Air

George Colpitts <[email protected]> Wed, 15 Mar 2023 13:40:48 -0300
Newsgroups gmane.comp.lang.haskell.glasgow.user,gmane.comp.lang.haskell.ghc.devel
Message-ID <CAB-d4A41BBJiU6Z-YCEP0e7j85pyAsoYjOpwPbn2q1TRdUJWSA@mail.gmail.com>
--===============6707782711170114055==
Content-Type: multipart/alternative; boundary="000000000000c51aed05f6f3036c"

--000000000000c51aed05f6f3036c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi William

I think it's best if you submit a bug as described here
<https://gitlab.haskell.org/ghc/ghc/-/wikis/report-a-bug>

Whether in email or in the bug report it is critical that you describe how
the reader can reproduce the bug, i.e. starting from the beginning,
describe what you did and what error message(s) you got.

Regards,
George


On Wed, Mar 15, 2023 at 1:34=E2=80=AFPM William McEnaney <bill.mcenaney.jr@=
gmail.com>
wrote:

> Hi, George,
>
> Yes, I did. But I must have made a mistake. After I pasted them into a
> Terminal window, the machine warned me that some program wanted to access
> my photos when I don't have any.
>
>
> On Wed, Mar 15, 2023 at 12:26=E2=80=AFPM George Colpitts <
> [email protected]> wrote:
>
>> Bill
>>
>> For your latest problem
>>
>>  libHSterminfo-0.4.1.5-ghc9.4.4.dylib=E2=80=9D can=E2=80=99t be opened b=
ecause Apple
>> cannot check it for malicious software.
>>
>> Did you try what I wrote in my last email:
>>
>>  rm -fr /usr/local/bin/ghc*
>> rm -fr /usr/local/lib/ghc*
>> ./configure
>> sudo xattr -rc .
>> sudo make install
>>
>> George
>>
>>
>>
>>
>> On Wed, Mar 15, 2023 at 1:20=E2=80=AFPM William McEnaney <
>> [email protected]> wrote:
>>
>>> Hi, everyone,
>>>
>>> Thank you for the help. Someone will tell me how to solve the problem, =
I
>>> hope because it stumped me.
>>>
>>> Bill
>>>
>>> On Wed, Mar 15, 2023 at 12:10=E2=80=AFPM Brandon Allbery <allbery.b@gma=
il.com>
>>> wrote:
>>>
>>>> That seems unlikely; it would report a permission error in that case,
>>>> not that it had the wrong architecture.
>>>>
>>>> On Wed, Mar 15, 2023 at 12:04=E2=80=AFPM George Colpitts
>>>> <[email protected]> wrote:
>>>> >
>>>> > Hi Bill
>>>> >
>>>> > I'm cc'ing GHC dev and GHC users as someone else may have a better
>>>> answer, catch a mistake I made etc. Please don't delete them.
>>>> >
>>>> > I believe you have encountered
>>>> https://gitlab.haskell.org/ghc/ghc/-/issues/21506#note_447206
>>>> >
>>>> > I believe the way to fix this is to do the following:
>>>> >
>>>> > rm -fr /usr/local/bin/ghc*
>>>> > rm -fr /usr/local/lib/ghc*
>>>> > ./configure
>>>> > sudo xattr -rc .
>>>> > sudo make install
>>>> >
>>>> >
>>>> > However I am unsure why you are encountering this as the issue is
>>>> supposed to have been fixed.
>>>> >
>>>> > Cheers
>>>> > George
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Wed, Mar 15, 2023 at 11:21=E2=80=AFAM William McEnaney <
>>>> [email protected]> wrote:
>>>> >>
>>>> >> Hi, George,
>>>> >>
>>>> >> I got this message when I ran make install with the sudo command.
>>>> What should I do?
>>>> >>
>>>> >> libHSterminfo-0.4.1.5-ghc9.4.4.dylib=E2=80=9D can=E2=80=99t be open=
ed because Apple
>>>> cannot check it for malicious software.
>>>> >>
>>>> >>
>>>> >> What should I do now?
>>>> >>
>>>> >>
>>>> >> Thanks.
>>>> >>
>>>> >>
>>>> >> Bill
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >> On Wed, Mar 15, 2023 at 9:29=E2=80=AFAM William McEnaney <
>>>> [email protected]> wrote:
>>>> >>>
>>>> >>> Hi George,
>>>> >>>
>>>> >>> Thank you for your reply. I forget what I did to install it. But
>>>> the compiler and other ghc-related programs live in /usr/local/bin. Si=
nce I
>>>> installed the wrong binaries, I changed the directory to /usr/local/bi=
n and
>>>> tried to empty that directory with rm -rf ghc*.*, but that didn't dele=
te
>>>> anything. So I wonder whether I'll need to remove those programs befor=
e
>>>> reinstalling ghc.
>>>> >>>
>>>> >>> Thanks for your help, too.
>>>> >>>
>>>> >>> Best,
>>>> >>> Bill
>>>> >>>
>>>> >>> On Wed, Mar 15, 2023 at 7:59=E2=80=AFAM George Colpitts <
>>>> [email protected]> wrote:
>>>> >>>>
>>>> >>>> Hi Bill
>>>> >>>>
>>>> >>>> Yes,GHC will run on your new MacBook Air. The cpu in that is Appl=
e
>>>> Silicon , the aarch64-apple-darwin platform. Older Macs run on Intel c=
hips,
>>>> the x86_64-apple-darwin platform.
>>>> >>>>
>>>> >>>> I'm not sure how you installed the compiler. I believe the
>>>> standard way is described on https://www.haskell.org/ghcup/. Can you
>>>> tell us how you installed it?
>>>> >>>>
>>>> >>>> Thanks
>>>> >>>> George
>>>> >>>>
>>>> >>>> On Wed, Mar 15, 2023 at 8:22=E2=80=AFAM Simon Peyton Jones <
>>>> [email protected]> wrote:
>>>> >>>>>
>>>> >>>>> Redirecting this query to ghc-devs.  Can anyone help William?
>>>> Thanks!
>>>> >>>>>
>>>> >>>>>> Will GHC run on my new MacBook Air? After installing the
>>>> compiler, my laptop said its processor was wrong for the binary
>>>> distribution I chose. If there is a dmg file for MacOS 12.5.1, please
>>>> please link your reply to it.
>>>> >>>>>
>>>> >>>>>
>>>> >>>>> Simon
>>>> >>>>>
>>>> >>>>> On Tue, 14 Mar 2023 at 23:33, William McEnaney <
>>>> [email protected]> wrote:
>>>> >>>>>>
>>>> >>>>>> Dear Dr. Jones,
>>>> >>>>>>
>>>> >>>>>> Will GHC run on my new MacBook Air? After installing the
>>>> compiler, my laptop said its processor was wrong for the binary
>>>> distribution I chose. If there is a dmg file for MacOS 12.5.1, please
>>>> please link your reply to it.
>>>> >>>>>>
>>>> >>>>>> Thanks for your help.
>>>> >>>>>>
>>>> >>>>>> Best,
>>>> >>>>>> Bill
>>>> >>>>>
>>>> >>>>> _______________________________________________
>>>> >>>>> ghc-devs mailing list
>>>> >>>>> [email protected]
>>>> >>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>>> >
>>>> > _______________________________________________
>>>> > ghc-devs mailing list
>>>> > [email protected]
>>>> > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>>>
>>>>
>>>>
>>>> --
>>>> brandon s allbery kf8nh
>>>> [email protected]
>>>>
>>>

--000000000000c51aed05f6f3036c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:&quot;times new roman&quot;,serif;font-size:large">Hi William</div=
><div class=3D"gmail_default" style=3D"font-family:&quot;times new roman&qu=
ot;,serif;font-size:large"><br></div><div class=3D"gmail_default" style=3D"=
font-family:&quot;times new roman&quot;,serif;font-size:large">I think it&#=
39;s best if you submit a bug as described <a href=3D"https://gitlab.haskel=
l.org/ghc/ghc/-/wikis/report-a-bug">here</a></div><div class=3D"gmail_defau=
lt" style=3D"font-family:&quot;times new roman&quot;,serif;font-size:large"=
><br></div><div class=3D"gmail_default" style=3D"font-family:&quot;times ne=
w roman&quot;,serif;font-size:large">Whether in email or in the bug report =
it is critical that you describe=C2=A0how the reader can reproduce the bug,=
 i.e. starting from the beginning,=C2=A0 describe=C2=A0what you did and wha=
t error message(s) you got.</div><div class=3D"gmail_default" style=3D"font=
-family:&quot;times new roman&quot;,serif;font-size:large"><br></div><div c=
lass=3D"gmail_default" style=3D"font-family:&quot;times new roman&quot;,ser=
if;font-size:large">Regards,</div><div class=3D"gmail_default" style=3D"fon=
t-family:&quot;times new roman&quot;,serif;font-size:large">George</div><di=
v class=3D"gmail_default" style=3D"font-family:&quot;times new roman&quot;,=
serif;font-size:large"><br></div></div><br><div class=3D"gmail_quote"><div =
dir=3D"ltr" class=3D"gmail_attr">On Wed, Mar 15, 2023 at 1:34=E2=80=AFPM Wi=
lliam McEnaney &lt;<a href=3D"mailto:[email protected]">bill.mcena=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" =
style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pa=
dding-left:1ex"><div dir=3D"ltr">Hi, George,<div><br></div><div>Yes, I did.=
 But I must have made a=C2=A0mistake. After I pasted them into a Terminal w=
indow, the machine warned me that some program wanted to access my photos w=
hen I don&#39;t have any.</div><div><br></div></div><br><div class=3D"gmail=
_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Mar 15, 2023 at 12:26=
=E2=80=AFPM George Colpitts &lt;<a href=3D"mailto:[email protected]=
" target=3D"_blank">[email protected]</a>&gt; wrote:<br></div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"l=
tr"><div style=3D"font-family:&quot;times new roman&quot;,serif;font-size:l=
arge">Bill=C2=A0</div><div style=3D"font-family:&quot;times new roman&quot;=
,serif;font-size:large"><br></div><div style=3D"font-family:&quot;times new=
 roman&quot;,serif;font-size:large">For your latest problem</div><div style=
=3D"font-family:&quot;times new roman&quot;,serif;font-size:large"><br></di=
v></div><blockquote style=3D"margin:0px 0px 0px 40px;border:none;padding:0p=
x"><div dir=3D"ltr"><div style=3D"font-family:&quot;times new roman&quot;,s=
erif;font-size:large"><span style=3D"font-family:Arial,Helvetica,sans-serif=
;font-size:small">=C2=A0libHSterminfo-0.4.1.5-ghc9.4.</span><span style=3D"=
font-family:Arial,Helvetica,sans-serif;font-size:small">4.dylib=E2=80=9D ca=
n=E2=80=99t be opened because Apple cannot check it for malicious software.=
</span><br></div><div style=3D"font-family:&quot;times new roman&quot;,seri=
f;font-size:large"><span style=3D"font-family:Arial,Helvetica,sans-serif;fo=
nt-size:small"><br></span></div></div></blockquote><div style=3D"font-famil=
y:&quot;times new roman&quot;,serif;font-size:large">Did you try what I wro=
te in my last email:</div><div style=3D"font-family:&quot;times new roman&q=
uot;,serif;font-size:large"><br></div><blockquote style=3D"margin:0px 0px 0=
px 40px;border:none;padding:0px"><div style=3D"font-family:&quot;times new =
roman&quot;,serif;font-size:large"></div>=C2=A0rm -fr /usr/local/bin/ghc*<b=
r>rm -fr /usr/local/lib/ghc*<br>./configure<br>sudo xattr -rc .<br>sudo mak=
e install<br><br></blockquote><div style=3D"font-family:&quot;times new rom=
an&quot;,serif;font-size:large">George</div><div style=3D"font-family:&quot=
;times new roman&quot;,serif;font-size:large"></div><br><blockquote style=
=3D"margin:0px 0px 0px 40px;border:none;padding:0px"><br></blockquote><br><=
br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed,=
 Mar 15, 2023 at 1:20=E2=80=AFPM William McEnaney &lt;<a href=3D"mailto:bil=
[email protected]" target=3D"_blank">[email protected]</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p=
x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div d=
ir=3D"ltr">Hi, everyone,<div><br></div><div>Thank you for the help. Someone=
 will tell me how to solve the=C2=A0problem, I hope because it stumped me.<=
/div><div><br></div><div>Bill</div></div><br><div class=3D"gmail_quote"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Wed, Mar 15, 2023 at 12:10=E2=80=AFPM=
 Brandon Allbery &lt;<a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);padding-left:1ex">That seems unlikely; it would report a permission err=
or in that case,<br>
not that it had the wrong architecture.<br>
<br>
On Wed, Mar 15, 2023 at 12:04=E2=80=AFPM George Colpitts<br>
&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">george.c=
[email protected]</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Bill<br>
&gt;<br>
&gt; I&#39;m cc&#39;ing GHC dev and GHC users as someone else may have a be=
tter answer, catch a mistake I made etc. Please don&#39;t delete them.<br>
&gt;<br>
&gt; I believe you have encountered <a href=3D"https://gitlab.haskell.org/g=
hc/ghc/-/issues/21506#note_447206" rel=3D"noreferrer" target=3D"_blank">htt=
ps://gitlab.haskell.org/ghc/ghc/-/issues/21506#note_447206</a><br>
&gt;<br>
&gt; I believe the way to fix this is to do the following:<br>
&gt;<br>
&gt; rm -fr /usr/local/bin/ghc*<br>
&gt; rm -fr /usr/local/lib/ghc*<br>
&gt; ./configure<br>
&gt; sudo xattr -rc .<br>
&gt; sudo make install<br>
&gt;<br>
&gt;<br>
&gt; However I am unsure why you are encountering this as the issue is supp=
osed to have been fixed.<br>
&gt;<br>
&gt; Cheers<br>
&gt; George<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Mar 15, 2023 at 11:21=E2=80=AFAM William McEnaney &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">bill.mcenaney.jr@g=
mail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi, George,<br>
&gt;&gt;<br>
&gt;&gt; I got this message when I ran make install with the sudo command. =
What should I do?<br>
&gt;&gt;<br>
&gt;&gt; libHSterminfo-0.4.1.5-ghc9.4.4.dylib=E2=80=9D can=E2=80=99t be ope=
ned because Apple cannot check it for malicious software.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; What should I do now?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Bill<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Mar 15, 2023 at 9:29=E2=80=AFAM William McEnaney &lt;<a hr=
ef=3D"mailto:[email protected]" target=3D"_blank">bill.mcenaney.jr=
@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi George,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thank you for your reply. I forget what I did to install it. B=
ut the compiler and other ghc-related programs live in /usr/local/bin. Sinc=
e I installed the wrong binaries, I changed the directory to /usr/local/bin=
 and tried to empty that directory with rm -rf ghc*.*, but that didn&#39;t =
delete anything. So I wonder whether I&#39;ll need to remove those programs=
 before reinstalling ghc.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks for your help, too.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Best,<br>
&gt;&gt;&gt; Bill<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Mar 15, 2023 at 7:59=E2=80=AFAM George Colpitts &lt;<a=
 href=3D"mailto:[email protected]" target=3D"_blank">george.colpitt=
[email protected]</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hi Bill<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Yes,GHC will run on your new MacBook Air. The cpu in that =
is Apple Silicon , the aarch64-apple-darwin platform. Older Macs run on Int=
el chips, the x86_64-apple-darwin platform.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I&#39;m not sure how you installed the compiler. I believe=
 the standard way is described on <a href=3D"https://www.haskell.org/ghcup/=
" rel=3D"noreferrer" target=3D"_blank">https://www.haskell.org/ghcup/</a>. =
Can you tell us how you installed it?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt;&gt; George<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Wed, Mar 15, 2023 at 8:22=E2=80=AFAM Simon Peyton Jones=
 &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">simon=
[email protected]</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Redirecting this query to ghc-devs.=C2=A0 Can anyone h=
elp William?=C2=A0 Thanks!<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Will GHC run on my new MacBook Air? After installi=
ng the compiler, my laptop said its processor was wrong for the binary dist=
ribution I chose. If there is a dmg file for MacOS 12.5.1, please please li=
nk your reply to it.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Simon<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Tue, 14 Mar 2023 at 23:33, William McEnaney &lt;<a =
href=3D"mailto:[email protected]" target=3D"_blank">bill.mcenaney.=
[email protected]</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Dear Dr. Jones,<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Will GHC run on my new MacBook Air? After installi=
ng the compiler, my laptop said its processor was wrong for the binary dist=
ribution I chose. If there is a dmg file for MacOS 12.5.1, please please li=
nk your reply to it.<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Thanks for your help.<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; Best,<br>
&gt;&gt;&gt;&gt;&gt;&gt; Bill<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; ghc-devs mailing list<br>
&gt;&gt;&gt;&gt;&gt; <a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a><br>
&gt;&gt;&gt;&gt;&gt; <a href=3D"http://mail.haskell.org/cgi-bin/mailman/lis=
tinfo/ghc-devs" rel=3D"noreferrer" target=3D"_blank">http://mail.haskell.or=
g/cgi-bin/mailman/listinfo/ghc-devs</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; ghc-devs mailing list<br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank">ghc-devs@has=
kell.org</a><br>
&gt; <a href=3D"http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" =
rel=3D"noreferrer" target=3D"_blank">http://mail.haskell.org/cgi-bin/mailma=
n/listinfo/ghc-devs</a><br>
<br>
<br>
<br>
-- <br>
brandon s allbery kf8nh<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
m</a><br>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>

--000000000000c51aed05f6f3036c--

--===============6707782711170114055==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KR2xhc2dvdy1o
YXNrZWxsLXVzZXJzIG1haWxpbmcgbGlzdApHbGFzZ293LWhhc2tlbGwtdXNlcnNAaGFza2VsbC5v
cmcKaHR0cDovL21haWwuaGFza2VsbC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL2dsYXNn
b3ctaGFza2VsbC11c2Vycwo=

--===============6707782711170114055==--