Thread overview
ldc2 1.18.0 snap package release
Dec 04, 2019
zoujiaqing
December 03, 2019
Hello folks,

Just to announce that there are now stable 1.18.0 releases for amd64 and i386 builds of the ldc2 snap package.  To install:

    sudo snap install --classic --stable ldc2

or upgrade:

    sudo snap refresh --classic --stable ldc2

There are also stable releases for all the recent 1.x releases (1.1 through 1.17).  To switch to these, use for example:

    sudo snap install --classic --channel=1.17/stable ldc2

or to switch an installed version:

    sudo snap refresh --classic --channel=1.16/stable ldc2

... or similarly for any other 1.x release you prefer.

These should work on any Ubuntu release more recent than 14.04, and any recent Debian, Arch, SuSE, Solus, and others.  For a full list of supported distros see:
https://snapcraft.io/docs/installing-snapd

Running the ldc2 snap requires gcc to be installed on the host system, as this is used for linking.

Hope this is useful, and please let me know if the snap package is useful for you.

Thanks & best wishes,

     -- Joe
December 04, 2019
On Tuesday, 3 December 2019 at 21:49:57 UTC, Joseph Rushton Wakeling wrote:
> Hello folks,
>
> Just to announce that there are now stable 1.18.0 releases for amd64 and i386 builds of the ldc2 snap package.  To install:
>
>     sudo snap install --classic --stable ldc2
>
> or upgrade:
>
>     sudo snap refresh --classic --stable ldc2
>
> There are also stable releases for all the recent 1.x releases (1.1 through 1.17).  To switch to these, use for example:
>
>     sudo snap install --classic --channel=1.17/stable ldc2
>
> or to switch an installed version:
>
>     sudo snap refresh --classic --channel=1.16/stable ldc2
>
> ... or similarly for any other 1.x release you prefer.
>
> These should work on any Ubuntu release more recent than 14.04, and any recent Debian, Arch, SuSE, Solus, and others.  For a full list of supported distros see:
> https://snapcraft.io/docs/installing-snapd
>
> Running the ldc2 snap requires gcc to be installed on the host system, as this is used for linking.
>
> Hope this is useful, and please let me know if the snap package is useful for you.
>
> Thanks & best wishes,
>
>      -- Joe

Thanks!!

Could support flatpak? :)
December 04, 2019
On Wednesday, 4 December 2019 at 10:52:58 UTC, zoujiaqing wrote:
> Thanks!!
>
> Could support flatpak? :)

I've commented on this before: https://forum.dlang.org/post/glpgelcitafzjayjegpu@forum.dlang.org

In short: unless anything has changed since the last time I looked, snap packages are better suited for compiler use-cases.

There are apparently some compiler flatpaks out there (e.g. one for swift: http://swift-linux.refi64.com/en/latest/install.html#flatpak), but that appears to be tied to a desktop use-case.  And, frankly, look how much extra manual work you have to do to get that working, compared to just

     sudo snap install ...

... and run the newly installed compiler.