Re: Installing GHC on my MacBook Air

2023-03-17 Thread George Colpitts
Type the following at the command line:

xcode-select --install

and then try ghci again.

I'm not sure what you mean by "the software" in the phrase "Should I delete
and reinstall the software you told me to install?" but in any case don't
delete anything. Please try to be as specific as possible.

When you first encounter a problem you should Google for a solution. If
that doesn't work you can send mail to me but also cc ghc-d...@haskell.org
and  glasgow-haskell-users@haskell.org

Cheers
George


On Thu, Mar 16, 2023 at 11:09 PM William McEnaney <
bill.mcenaney...@gmail.com> wrote:

> Hi, George,
>
> Sorry to bother you. Though ghc seems to run properly, here's what ghci
> prints on my screen. What mistake did I make? Should I delete and reinstall
> the software you told me to install?
>
> "GHCi, version 9.4.4: https://www.haskell.org/ghc/  :? for help
>
> xcrun: error: invalid active developer path
> (/Library/Developer/CommandLineTools), missing xcrun at:
> /Library/Developer/CommandLineTools/usr/bin/xcrun
>
> `gcc' failed in phase `gcc'. (Exit code: 1)
>
> williammcenaney@Williams-Air bin"
>
>
> Thanks.
>
>
> Bill
>
>
> Bill
>
> On Wed, Mar 15, 2023 at 7:59 AM George Colpitts 
> 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.peytonjo...@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...@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-d...@haskell.org
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>>>
>>
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users


Re: Installing GHC on my MacBook Air

2023-03-17 Thread Steven Smith
I recommend using macOS package managers to take care of all this. There’s a whole community of knowledgeable folks who have figured out all these build and install details, and I know that it’s simply a matter of doing this to get a working version of the latest, on either x86_64 or arm64 machines:sudo port install ghcThat’s using MacPorts. There are other options, but I strongly recommend MacPorts for several reasons, especially for development tools.On Mar 15, 2023, at 12:04, George Colpitts  wrote:Hi BillI'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_447206I believe the way to fix this is to do the following:rm -fr /usr/local/bin/ghc*rm -fr /usr/local/lib/ghc*./configuresudo xattr -rc .sudo make installHowever I am unsure why you are encountering this as the issue is supposed to have been fixed.CheersGeorgeOn Wed, Mar 15, 2023 at 11:21 AM William McEnaney  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.BillOn Wed, Mar 15, 2023 at 9:29 AM William McEnaney  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,BillOn Wed, Mar 15, 2023 at 7:59 AM George Colpitts  wrote:Hi BillYes,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 GeorgeOn Wed, Mar 15, 2023 at 8:22 AM Simon Peyton Jones  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.

SimonOn Tue, 14 Mar 2023 at 23:33, William McEnaney  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-d...@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs





___Glasgow-haskell-users mailing listGlasgow-haskell-users@haskell.orghttp://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users

smime.p7s
Description: S/MIME cryptographic signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users