Installing GHC on my MacBook Air

George Colpitts george.colpitts at gmail.com
Wed Mar 15 16:22:59 UTC 2023


cc'ing others

On Wed, Mar 15, 2023 at 1:20 PM George Colpitts <george.colpitts at gmail.com>
wrote:

> Thanks Brandon. There were some earlier emails that somehow got dropped
> from this.
>
> I believe we have already solved the wrong architecture issue; this is the
> next issue.
>
> Here is the earlier email:
>
> I  just noticed that you said you installed a binary distribution. If for
> example you chose the 9.4.4 distribution at
> https://www.haskell.org/ghc/download_ghc_9_4_4.html#macosx_x86_64 you
> should choose one of:
>
>
>    - ghc-9.4.4-aarch64-apple-darwin.tar.xz
>       <https://downloads.haskell.org/~ghc/9.4.4/ghc-9.4.4-aarch64-apple-darwin.tar.xz> (187.0
>       MB, sig
>       <https://downloads.haskell.org/~ghc/9.4.4/ghc-9.4.4-aarch64-apple-darwin.tar.xz.sig>
>       )
>       - ghc-9.4.4-aarch64-apple-darwin.tar.bz2
>       <https://downloads.haskell.org/~ghc/9.4.4/ghc-9.4.4-aarch64-apple-darwin.tar.bz2> (300.0
>       MB, sig
>       <https://downloads.haskell.org/~ghc/9.4.4/ghc-9.4.4-aarch64-apple-darwin.tar.bz2.sig>
>       )
>
> rather than
>
>
>    - ghc-9.4.4-x86_64-apple-darwin.tar.xz
>       <https://downloads.haskell.org/~ghc/9.4.4/ghc-9.4.4-x86_64-apple-darwin.tar.xz> (177.9
>       MB, sig
>       <https://downloads.haskell.org/~ghc/9.4.4/ghc-9.4.4-x86_64-apple-darwin.tar.xz.sig>
>       )
>       - ghc-9.4.4-x86_64-apple-darwin.tar.bz2
>       <https://downloads.haskell.org/~ghc/9.4.4/ghc-9.4.4-x86_64-apple-darwin.tar.bz2> (281.9
>       MB, sig
>       <https://downloads.haskell.org/~ghc/9.4.4/ghc-9.4.4-x86_64-apple-darwin.tar.bz2.sig>
>       )
>
>
> On Wed, Mar 15, 2023 at 1:10 PM Brandon Allbery <allbery.b at gmail.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 PM George Colpitts
>> <george.colpitts at gmail.com> 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 AM William McEnaney <
>> bill.mcenaney.jr at gmail.com> 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” can’t be opened because Apple
>> cannot check it for malicious software.
>> >>
>> >>
>> >> What should I do now?
>> >>
>> >>
>> >> Thanks.
>> >>
>> >>
>> >> Bill
>> >>
>> >>
>> >>
>> >>
>> >> On Wed, Mar 15, 2023 at 9:29 AM William McEnaney <
>> bill.mcenaney.jr at gmail.com> 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. Since 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't delete
>> anything. So I wonder whether I'll need to remove those programs before
>> reinstalling ghc.
>> >>>
>> >>> Thanks for your help, too.
>> >>>
>> >>> Best,
>> >>> Bill
>> >>>
>> >>> On Wed, Mar 15, 2023 at 7:59 AM George Colpitts <
>> george.colpitts at gmail.com> wrote:
>> >>>>
>> >>>> Hi Bill
>> >>>>
>> >>>> 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 Intel chips,
>> 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 AM Simon Peyton Jones <
>> simon.peytonjones at gmail.com> 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 <
>> bill.mcenaney.jr at gmail.com> 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
>> >>>>> ghc-devs at haskell.org
>> >>>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>> >
>> > _______________________________________________
>> > ghc-devs mailing list
>> > ghc-devs at haskell.org
>> > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>
>>
>>
>> --
>> brandon s allbery kf8nh
>> allbery.b at gmail.com
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20230315/7e7e900b/attachment-0001.html>


More information about the ghc-devs mailing list