Re: Installing GHC on my MacBook Air
Steven Smith <[email protected]> Fri, 17 Mar 2023 08:08:21 -0400
| Newsgroups | gmane.comp.lang.haskell.glasgow.user,gmane.comp.lang.haskell.ghc.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============5915441437988885943== Content-Type: multipart/signed; boundary=Apple-Mail-892BDCEF-4D65-4BEB-B47F-835BE5C4FB56; protocol="application/pkcs7-signature"; micalg=sha-256 Content-Transfer-Encoding: 7bit --Apple-Mail-892BDCEF-4D65-4BEB-B47F-835BE5C4FB56 Content-Type: multipart/alternative; boundary=Apple-Mail-DD69A434-49FE-4815-9E58-31E77020F722 Content-Transfer-Encoding: 7bit --Apple-Mail-DD69A434-49FE-4815-9E58-31E77020F722 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D= utf-8"></head><body dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr">I r= ecommend using macOS package managers to take care of all this. There=E2=80=99= s a whole community of knowledgeable folks who have figured out all these bu= ild and install details, and I know that it=E2=80=99s simply a matter of doi= ng this to get a working version of the latest, on either x86_64 or arm64 ma= chines:</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">sudo port install g= hc</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">That=E2=80=99s using Mac= Ports. There are other options, but I strongly recommend MacPorts for severa= l reasons, especially for development tools.</div><div dir=3D"ltr"><br></div= ><div dir=3D"ltr"><br><div dir=3D"ltr"></div><blockquote type=3D"cite">On Ma= r 15, 2023, at 12:04, George Colpitts <[email protected]> wrot= e:<br><br></blockquote></div><blockquote type=3D"cite"><div dir=3D"ltr">=EF=BB= =BF<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"f= ont-family:"times new roman",serif;font-size:large">Hi Bill</div><= div class=3D"gmail_default" style=3D"font-family:"times new roman"= ,serif;font-size:large"><br></div><div class=3D"gmail_default" style=3D"font= -family:"times new roman",serif;font-size:large">I'm cc'ing GHC de= v and GHC users as someone else may have a better answer, catch a mista= ke I made etc. Please don't delete them.</div><div class=3D"gmail_default" s= tyle=3D"font-family:"times new roman",serif;font-size:large"><br><= /div><div class=3D"gmail_default" style=3D"font-family:"times new roman= ",serif;font-size:large">I believe you have encountered <a hr= ef=3D"https://gitlab.haskell.org/ghc/ghc/-/issues/21506#note_447206">https:/= /gitlab.haskell.org/ghc/ghc/-/issues/21506#note_447206</a></div><div class=3D= "gmail_default" style=3D"font-family:"times new roman",serif;font-= size:large"><br></div><div class=3D"gmail_default" style=3D"font-family:&quo= t;times new roman",serif;font-size:large">I believe the way to fix this= is to do the following:</div><div class=3D"gmail_default" style=3D"font-fam= ily:"times new roman",serif;font-size:large"><br></div></div><bloc= kquote style=3D"margin:0 0 0 40px;border:none;padding:0px"><span style=3D"fo= nt-family:"times new roman",serif;font-size:large">rm -fr /usr/loc= al/bin/ghc*</span><div><span style=3D"font-family:"times new roman"= ;,serif;font-size:large">rm -fr /usr/local/lib/ghc*</span></div><div><span s= tyle=3D"font-family:"times new roman",serif;font-size:large"><span= class=3D"gmail_default" style=3D"font-family:"times new roman",se= rif;font-size:large">./configure</span></span></div><div><span style=3D"font= -family:"times new roman",serif;font-size:large">sudo xattr -rc&nb= sp;<span class=3D"gmail_default" style=3D"font-family:"times new roman&= quot;,serif;font-size:large">.</span></span></div><div><font face=3D"times n= ew roman, serif" size=3D"4"><span class=3D"gmail_default" style=3D"font-fami= ly:"times new roman",serif;font-size:large">sudo make install</spa= n></font></div></blockquote><div><font face=3D"times new roman, serif" size=3D= "4"><span class=3D"gmail_default" style=3D"font-family:"times new roman= ",serif;font-size:large"><br></span></font></div><div><font face=3D"tim= es new roman, serif" size=3D"4"><span class=3D"gmail_default" style=3D"font-= family:"times new roman",serif;font-size:large">However I am unsur= e why you are encountering this as the issue is supposed to have been fixed.= </span></font></div><div><font face=3D"times new roman, serif" size=3D"4"><s= pan class=3D"gmail_default" style=3D"font-family:"times new roman"= ,serif;font-size:large"><br></span></font></div><div><font face=3D"times new= roman, serif" size=3D"4"><span class=3D"gmail_default" style=3D"font-family= :"times new roman",serif;font-size:large">Cheers</span></font></di= v><div><font face=3D"times new roman, serif" size=3D"4"><span class=3D"gmail= _default" style=3D"font-family:"times new roman",serif;font-size:l= arge">George</span></font></div><div><font face=3D"times new roman, serif" s= ize=3D"4"><span class=3D"gmail_default" style=3D"font-family:"times new= roman",serif;font-size:large"></span><br></font><blockquote style=3D"m= argin:0 0 0 40px;border:none;padding:0px"><div dir=3D"ltr"><div class=3D"gma= il_default" style=3D"font-family:"times new roman",serif;font-size= :large"><code><br></code></div><div class=3D"gmail_default" style=3D"font-fa= mily:"times new roman",serif;font-size:large"><code><br></code></d= iv></div></blockquote><div dir=3D"ltr"><div class=3D"gmail_default" style=3D= "font-family:"times new roman",serif;font-size:large"><br></div></= div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On W= ed, Mar 15, 2023 at 11:21=E2=80=AFAM William McEnaney <<a href=3D"mailto:= [email protected]" target=3D"_blank">[email protected]</a>= > wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0= px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div d= ir=3D"ltr">Hi, George,<div><br></div><div>I got this message when I ran make= install with the sudo command. What should I do?</div><div><br></div><= div><p style=3D"margin:0px;text-align:center;font-stretch:normal;font-size:1= 3px;line-height:normal;font-family:"Helvetica Neue";color:rgba(0,0= ,0,0.85)"><b>libHSterminfo-0.4.1.5-ghc9.4.4.dylib=E2=80=9D can=E2=80=99t be o= pened because Apple cannot check it for malicious software.</b></p><p style=3D= "margin:0px;text-align:center;font-stretch:normal;font-size:13px;line-height= :normal;font-family:"Helvetica Neue";color:rgba(0,0,0,0.85)"><b><b= r></b></p><p style=3D"text-align:left;margin:0px;font-stretch:normal;font-si= ze:13px;line-height:normal;font-family:"Helvetica Neue";color:rgba= (0,0,0,0.85)">What should I do now?</p><p style=3D"text-align:left;margin:0p= x;font-stretch:normal;font-size:13px;line-height:normal;font-family:"He= lvetica Neue";color:rgba(0,0,0,0.85)"><br></p><p style=3D"text-align:le= ft;margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-fam= ily:"Helvetica Neue";color:rgba(0,0,0,0.85)">Thanks.</p><p style=3D= "text-align:left;margin:0px;font-stretch:normal;font-size:13px;line-height:n= ormal;font-family:"Helvetica Neue";color:rgba(0,0,0,0.85)"><br></p= ><p style=3D"text-align:left;margin:0px;font-stretch:normal;font-size:13px;l= ine-height:normal;font-family:"Helvetica Neue";color:rgba(0,0,0,0.= 85)">Bill</p><p style=3D"margin:0px;text-align:center;font-stretch:normal;fo= nt-size:13px;line-height:normal;font-family:"Helvetica Neue";color= :rgba(0,0,0,0.85)"><b><br></b></p><p style=3D"margin:0px;text-align:center;f= ont-stretch:normal;font-size:13px;line-height:normal;font-family:"Helve= tica Neue";color:rgba(0,0,0,0.85)"><br></p></div></div><br><div class=3D= "gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Mar 15, 2023 at 9= :29=E2=80=AFAM William McEnaney <<a href=3D"mailto:bill.mcenaney.jr@gmail= .com" target=3D"_blank">[email protected]</a>> wrote:<br></div><= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le= ft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Hi George,<= div><br></div><div>Thank you for your reply. I forget what I did to install i= t. But the compiler and other ghc-related programs live in /usr/local/bin. S= ince I installed the wrong binaries, I changed the directory to /usr/local/b= in and tried to empty that directory with <i>rm -rf ghc*.*</i>, but that did= n't delete anything. So I wonder whether I'll need to remove those programs b= efore reinstalling ghc.</div><div><br></div><div>Thanks for your help, too.<= /div><div><br></div><div>Best,</div><div>Bill</div></div><br><div class=3D"g= mail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Mar 15, 2023 at 7:= 59=E2=80=AFAM George Colpitts <<a href=3D"mailto:[email protected]= m" target=3D"_blank">[email protected]</a>> wrote:<br></div><bloc= kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1= px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr= "><div style=3D"font-family:"times new roman",serif;font-size:larg= e">Hi Bill</div><div style=3D"font-family:"times new roman",serif;= font-size:large"><br></div><div style=3D"font-family:"times new roman&q= uot;,serif;font-size:large">Yes,GHC will run on your new MacBook Air. The cp= u in that is Apple Silicon , the aarch64-apple-darwin platform. Older M= acs run on Intel chips, the x86_64-apple-darwin platform. </div><d= iv style=3D"font-family:"times new roman",serif;font-size:large"><= br></div><div style=3D"font-family:"times new roman",serif;font-si= ze:large">I'm not sure how you installed the compiler. I believe the standar= d way is described on <a href=3D"https://www.haskell.org/ghcup/" target= =3D"_blank">https://www.haskell.org/ghcup/</a>. Can you tell us how you inst= alled it?</div><div style=3D"font-family:"times new roman",serif;f= ont-size:large"><br></div><div style=3D"font-family:"times new roman&qu= ot;,serif;font-size:large">Thanks </div><div style=3D"font-family:"= ;times new roman",serif;font-size:large">George</div><div style=3D"font= -family:"times new roman",serif;font-size:large"><br></div></div><= div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Mar 1= 5, 2023 at 8:22=E2=80=AFAM Simon Peyton Jones <<a href=3D"mailto:simon.pe= [email protected]" target=3D"_blank">[email protected]</a>> w= rote:<br></div><blockquote 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 style=3D"font-family:tahoma,sans-serif">Redirecting this query to g= hc-devs. Can anyone help William? Thanks!</div><div style=3D"fon= t-family:tahoma,sans-serif"><br></div><div style=3D"font-family:tahoma,sans-= serif"> <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex"><div>Will GHC run on my new= MacBook Air? After installing the compiler,=20 my laptop said its processor was wrong for the binary distribution I=20 chose. If there is a dmg file for MacOS 12.5.1, please please link your=20 reply to it.</div></blockquote> </div><div style=3D"font-family:tahoma,sans-serif"><br></div><div style=3D"f= ont-family:tahoma,sans-serif">Simon<br></div></div><br><div class=3D"gmail_q= uote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, 14 Mar 2023 at 23:33, Wi= lliam McEnaney <<a href=3D"mailto:[email protected]" target=3D"_= blank">[email protected]</a>> wrote:<br></div><blockquote class=3D= "gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(20= 4,204,204);padding-left:1ex"><div dir=3D"ltr">Dear Dr. Jones,<div><br></div>= <div>Will GHC run on my new MacBook Air? After installing the compiler, my l= aptop said its processor was wrong for the binary distribution I chose. If t= here is a dmg file for MacOS 12.5.1, please please link your reply to it.</d= iv><div><br></div><div>Thanks for your help.</div><div><br></div><div>Best,<= /div><div>Bill</div></div> </blockquote></div> _______________________________________________<br> ghc-devs mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= rg</a><br> <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/mailman/listi= nfo/ghc-devs</a><br> </blockquote></div> </div> </blockquote></div> </blockquote></div> </blockquote></div></div></div> <span>_______________________________________________</span><br><span>Glasgo= w-haskell-users mailing list</span><br><span>[email protected]= rg</span><br><span>http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-= haskell-users</span><br></div></blockquote></body></html>= --Apple-Mail-DD69A434-49FE-4815-9E58-31E77020F722-- --Apple-Mail-892BDCEF-4D65-4BEB-B47F-835BE5C4FB56 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCBjkw ggMJMIICj6ADAgECAgEBMAo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QQlnU3eBUad+dpVAZH/cXg1AjBsclOd3qNgKzmj3MHa4bCLw/JOlO5JqPGThJ58A7Ig mE/hZC7pvEUrUHfwXAzOXQoAAAAAAAA= --Apple-Mail-892BDCEF-4D65-4BEB-B47F-835BE5C4FB56-- --===============5915441437988885943== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KR2xhc2dvdy1o YXNrZWxsLXVzZXJzIG1haWxpbmcgbGlzdApHbGFzZ293LWhhc2tlbGwtdXNlcnNAaGFza2VsbC5v cmcKaHR0cDovL21haWwuaGFza2VsbC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL2dsYXNn b3ctaGFza2VsbC11c2Vycwo= --===============5915441437988885943==--