On Sunday, September 11, 2016 23:12:15 crimaniak via Digitalmars-d-learn wrote: > Hi all! > > I made vibe-d application, and client give me already taken > hosting for it on Amazon aws ec2, uname -a: > Linux ip-xxx-xx-xx-xx 4.4.11-23.53.amzn1.x86_64 #1 SMP Wed Jun 1 > 22:22:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux > > Compiled on my Ubuntu binary don't run because of different > versions of libraries (on Amazon they older). > > I can try to install dmd to ec2 instance but don't think this is > good idea. I want to compile binary on my developing machine (may > be in specific OS in VirtualBox). > How to resolve this problem by right way? > > Can I get VirtualBox image of ec2 version of Linux and use it on > my machine? > Can I compile all libraries used as static and make more > independent binary? > Something else?
I've never used EC2, so I don't know what it would take to be able to build in the same environment locally (though I would certainly think that there would be a way do to so, and I would assume that Amazon's documentation talks about it somewhere). However, you can try just grabbing the .zip file for dmd and putting that on your EC2 instance and using that to build your program there - especially if you're in a hurry. You can also try fully statically linking, but it's a bit of a pain, since last time I checked it doesn't work right if you let dmd do the linking command, which means that you have to use it to generate the object files and then manually link them using gcc. https://issues.dlang.org/show_bug.cgi?id=6952 - Jonathan M Davis