I downloaded the new dmd 2.1 on Mac, but with fail message of "unsupported Arch arm64". how can I do? thanks.
Thread overview | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
August 25, 2022 how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
August 25, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to MichaelBi | On 8/25/22 10:19 AM, MichaelBi wrote: >I downloaded the new dmd 2.1 on Mac, but with fail message of "unsupported Arch arm64". how can I do? thanks. DMD is x86 only. M1 macs can run x86 via rosetta. I haven't had this specific problem. Can you list the actual commands you are running, and the output from the system? -Steve |
August 25, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Thursday, 25 August 2022 at 14:37:01 UTC, Steven Schveighoffer wrote: >On 8/25/22 10:19 AM, MichaelBi wrote: >I downloaded the new dmd 2.1 on Mac, but with fail message of "unsupported Arch arm64". how can I do? thanks. DMD is x86 only. M1 macs can run x86 via rosetta. I haven't had this specific problem. Can you list the actual commands you are running, and the output from the system? -Steve it's simple as following: -iMac ~ % curl -fsS https://dlang.org/install.sh | bash -s dmd |
August 25, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to MichaelBi | On 8/25/22 10:44 AM, MichaelBi wrote: >On Thursday, 25 August 2022 at 14:37:01 UTC, Steven Schveighoffer wrote: >On 8/25/22 10:19 AM, MichaelBi wrote: >I downloaded the new dmd 2.1 on Mac, but with fail message of "unsupported Arch arm64". how can I do? thanks. DMD is x86 only. M1 macs can run x86 via rosetta. I haven't had this specific problem. Can you list the actual commands you are running, and the output from the system? -Steve it's simple as following: -iMac ~ % curl -fsS https://dlang.org/install.sh | bash -s dmd So install.sh is checking the architecture, and failing because the OS reports it as arm64.
You could change the line that starts with 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 |
August 25, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | 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: >On 8/25/22 10:19 AM, MichaelBi wrote: Is there a reason you want to use DMD specifically? If you use homebrew then |
August 26, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Jones | On Thursday, 25 August 2022 at 16:06:49 UTC, Ben Jones wrote: >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: >On 8/25/22 10:19 AM, MichaelBi wrote: Is there a reason you want to use DMD specifically? If you use homebrew then when using ldc2, has this error "ld: library not found for -lssl" after dub build --compiler=ldc2 |
August 26, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to MichaelBi | On Friday, 26 August 2022 at 00:34:30 UTC, MichaelBi wrote: >when using ldc2, has this error "ld: library not found for -lssl" after dub build --compiler=ldc2 So where is your ssl library located and how (if at all) are you telling the compiler/linker where to find it? |
August 26, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | 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 So install.sh is checking the architecture, and failing because the OS reports it as arm64.
You could change the line that starts with 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... |
August 26, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nicholas Wilson | On Friday, 26 August 2022 at 00:55:05 UTC, Nicholas Wilson wrote: >On Friday, 26 August 2022 at 00:34:30 UTC, MichaelBi wrote: >when using ldc2, has this error "ld: library not found for -lssl" after dub build --compiler=ldc2 So where is your ssl library located and how (if at all) are you telling the compiler/linker where to find it? I installed openssl and also export the path of lib, but still got that errors... |
August 26, 2022 Re: how to install the new dmd on Mac M1? | ||||
---|---|---|---|---|
| ||||
Posted in reply to MichaelBi | On 8/25/22 11:50 PM, MichaelBi wrote: >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... I've not had problems since updating to the M1, but my system was upgraded through many years, so I don't know if it's because I just have old cruft leftover. I'd try installing the dev tools from apple, probably you'd get the ssl library then? -Steve |