Installing ldc beta on macOS

Christian Köstlin christian.koestlin at gmail.com
Fri Apr 10 21:08:01 UTC 2026


On Monday, 22 September 2025 at 22:34:18 UTC, Joel wrote:
> On Monday, 22 September 2025 at 10:28:42 UTC, kinke wrote:
>> On Monday, 22 September 2025 at 09:40:45 UTC, Joel wrote:
>>> (see title)
>>> https://github.com/ldc-developers/ldc/releases/tag/v1.41.0-beta1
>>>
>>> I tried homebrew, and that compiles, but doesn't run. (I've 
>>> uninstalled it from there).
>>>
>
> I don't think home brew has the latest version. How do I 
> install ldc with out home brew?

I really like the installer script on dlang.org:

https://dlang.org/download.html
https://dlang.org/install.html

`curl -fsS https://dlang.org/install.sh | bash -s ldc`

this will install the selected version e.g. into 
$HOME/dlang/ldc-1.42.0.
There will be an activate.{sh,fish} scripts to setup all env 
variables correctly in your shell.
With that you can easily install different versions of the 
toolchain and switch on demand between them.

Kind regards,
Christian



More information about the digitalmars-d-ldc mailing list