Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
August 21, 2016 Is it's possible to install DMD/LDC/GDC on CoreOS? | ||||
---|---|---|---|---|
| ||||
I would like to create small VPS instance with Linux distrib on VPS. Can I use CoreOS as image? Would it possible to install dlang there? |
August 21, 2016 Re: Is it's possible to install DMD/LDC/GDC on CoreOS? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | On Sunday, 21 August 2016 at 11:38:09 UTC, Suliman wrote: > I would like to create small VPS instance with Linux distrib on VPS. Can I use CoreOS as image? Would it possible to install dlang there? For LDC, you can just download the latest release from https://github.com/ldc-developers/ldc/releases and you are good to go. Just make sure you have "gcc" available on your system for linking. — David |
August 21, 2016 Re: Is it's possible to install DMD/LDC/GDC on CoreOS? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | On Sunday, 21 August 2016 at 11:38:09 UTC, Suliman wrote:
> I would like to create small VPS instance with Linux distrib on VPS. Can I use CoreOS as image? Would it possible to install dlang there?
An alternative would be to compile your application locally, then copy it over to your container. I don't know how similar CoreOs to a typical Linux distribution is, but if it comes with the typical shared libraries (libm.so, libc.so, lipthread.so), this should be possible ;-)
|
August 21, 2016 Re: Is it's possible to install DMD/LDC/GDC on CoreOS? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Sunday, 21 August 2016 at 14:57:15 UTC, Seb wrote:
> An alternative would be to compile your application locally, then copy it over to your container. I don't know how similar CoreOs to a typical Linux distribution is, but if it comes with the typical shared libraries (libm.so, libc.so, lipthread.so), this should be possible ;-)
LDC also allows you to create fully statically linked executables (-static). It allows you to sidestep issues with shared library version incompatibilities, but of course there has been a few technical issues and lot more politicking regarding fully statically linked executables on Linux.
— David
|
August 21, 2016 Re: Is it's possible to install DMD/LDC/GDC on CoreOS? | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On Sunday, 21 August 2016 at 15:25:59 UTC, David Nadlinger wrote: > On Sunday, 21 August 2016 at 14:57:15 UTC, Seb wrote: >> An alternative would be to compile your application locally, then copy it over to your container. I don't know how similar CoreOs to a typical Linux distribution is, but if it comes with the typical shared libraries (libm.so, libc.so, lipthread.so), this should be possible ;-) > > LDC also allows you to create fully statically linked executables (-static). It allows you to sidestep issues with shared library version incompatibilities, but of course there has been a few technical issues and lot more politicking regarding fully statically linked executables on Linux. > > — David Oh I totally forgot about this, despite I think it's a great feature. Btw @Suliman fully static linking with LDC is used for the DLang Tour, which is built with Vibe.d and deployed using a docker container (based on busybox). Maybe that's worth looking at: https://github.com/stonemaster/dlang-tour/blob/master/Dockerfile https://github.com/stonemaster/dlang-tour/blob/master/dub.sdl https://github.com/stonemaster/dlang-tour/blob/master/.travis.yml (it adds a bit more, because the dockerized DLang Tour runs docker containers for each run) |
Copyright © 1999-2021 by the D Language Foundation