digitalmars.D.learn - Is it's possible to install DMD/LDC/GDC on CoreOS?
- Suliman (3/3) Aug 21 2016 I would like to create small VPS instance with Linux distrib on
- David Nadlinger (7/10) Aug 21 2016 For LDC, you can just download the latest release from
- Seb (6/9) Aug 21 2016 An alternative would be to compile your application locally, then
- David Nadlinger (7/12) Aug 21 2016 LDC also allows you to create fully statically linked executables
- Seb (11/23) Aug 21 2016 Oh I totally forgot about this, despite I think it's a great
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?
Aug 21 2016
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
Aug 21 2016
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 ;-)
Aug 21 2016
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
Aug 21 2016
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: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)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
Aug 21 2016