www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Is it's possible to install DMD/LDC/GDC on CoreOS?

reply Suliman <evermind live.ru> writes:
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
next sibling parent David Nadlinger <code klickverbot.at> writes:
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
prev sibling parent reply Seb <seb wilzba.ch> writes:
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
parent reply David Nadlinger <code klickverbot.at> writes:
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
parent Seb <seb wilzba.ch> writes:
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)
Aug 21 2016