how to install the new dmd on Mac M1?

MichaelBi shunjie.bi at gmail.com
Fri Aug 26 03:50:09 UTC 2022


On Thursday, 25 August 2022 at 15:19:56 UTC, Steven Schveighoffer 
wrote:
> On 8/25/22 10:44 AM, MichaelBi wrote:
>> On Thursday, 25 August 2022 at 14:37:01 UTC, Steven 
>> Schveighoffer wrote:
>>> [...]
>> 
>> it's simple as following:
>> 
>> -iMac ~ % curl -fsS https://dlang.org/install.sh | bash -s dmd
>> Unsupported Arch arm64
>
> So install.sh is checking the architecture, and failing because 
> the OS reports it as arm64.
>
> ```sh
> case $(uname -m) in
>     x86_64|amd64) ARCH=x86_64; MODEL=64;;
>     aarch64) ARCH=aarch64; MODEL=64;;
>     i*86) ARCH=x86; MODEL=32;;
>     *)
>         fatal "Unsupported Arch $(uname -m)"
>         ;;
> ```
>
> You could change the line that starts with `aarch64` to 
> `aarch64|arm64`
>
> That might work. I'm not sure, because really you want x86_64 
> for dmd (there is no aarch64 or arm64 build of dmd).
>
> Have you tried using the dmg package?
>
> -Steve

you are right, the package install is OK. but after running dub 
build --compiler=dmd, the error of "ld: library not found for - 
lssl" is still there...


More information about the Digitalmars-d-learn mailing list