<div dir="auto">I am using brew install ldc so never have any issue</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Dne so 5. 7. 2025 12:40 uživatel Peter Alexander via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had to install D on a new Mac machine. The initial experience <br>
is pretty poor right now. Tried searching, but didn't see any <br>
other threads about this?<br>
<br>
<br>
1. <a href="http://dlang.org" rel="noreferrer noreferrer" target="_blank">dlang.org</a> directs you to download the DMD2.pkg - however, <br>
MacOS will not allow you to open this: "Apple could not verify <br>
'DMD2.pkg' is free of malware that may harm your Mac or <br>
compromise your privacy." - you have to work around this by going <br>
to system privacy settings and enabling it. Not a good first <br>
impression though.<br>
<br>
2. Once installed, dmd just insta-crashes:<br>
<br>
$ dmd<br>
zsh: segmentation fault dmd<br>
<br>
This is due to a known (and fixed on nightly) issue with TLS <br>
changes on the most recent Mac, but you'll only find out about <br>
this if you go googling for the error.<br>
<br>
3. Finally, since dmd doesn't support arm64 yet, unless you are <br>
careful you are very likely to run into various linking issues <br>
with e.g. libraries installed with arm64 with homebrew.<br>
<br>
<br>
This is all a bit unfortunate, especially when we see e.g. the <br>
recent thread on hackernews for folks excited about D. I'm sure <br>
more than a handful of people decided to try out D after that <br>
post, and probably we lost a bunch of them due to these issue.<br>
<br>
In terms of solutions:<br>
<br>
1. Looks like we just need to notarise the .pkg? Probably needs <br>
the foundation to setup an Apple Developer account if it doesn't <br>
already have one, then it should just be a matter of running some <br>
Apple command-line tools as part of deployment.<br>
<br>
2. Really, this should have been hot-fixed once the fix made it <br>
to nightly. I understand a new compiler is coming soon, so maybe <br>
this won't be a problem for long, but perhaps worth retrospecting <br>
on how this managed to stay broken for so long (appears to be a <br>
few months now that latest dmd crashes on latest Mac).<br>
<br>
3. I think this has been discussed before, but perhaps we should <br>
direct people to ldc2 for now as the main download? Or perhaps <br>
just make it clear on the website that dmd is x86_64 only for now <br>
and provide the alternatives on the homepage.<br>
<br>
</blockquote></div>