4 ms·
This truly opens up a world of possibilities. My only itch in the wound is the lock into Amazon linux compatible executables. If they can run exe's compiled on
by pinkunicorn 12y ago
This truly opens up a world of possibilities. My only itch in the wound is the lock into Amazon linux compatible executables. If they can run exe's compiled on a Ubuntu box, that would be awesome!
- justincormack 12y agoYou could run them under Wine, or use C#...
- ranman 12y agoFrom an executable standpoint there's not a ton of lockin -- anything running a certain version of libc should behave the same way. You can compile an executable that will work on both Ubuntu and Amazon Linux.
- sreque 12y agoLinux userland binary compatibility in general is surprisingly fragmented, thanks to the introduction of so symbol versions about a decade ago. http://harmful.cat-v.org/software/dynamic-linking/versioned-symbols http://harmful.cat-v.org/software/dynamic-linking/versioned-... https://refspecs.linuxfoundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/symversion.html https://refspecs.linuxfoundation.org/LSB_3.1.0/LSB-Core-gene... I don't believe Amazon Linux is any worse than other Linux distributions in this regard. If you build a binary on an older Linux distribution (like CentOS 5), then there's a good chance it will run on most new distributions. The opposite is unfortunately not true. Also, some libraries, like libcurl, don't seem to have consistent symbol versions across distributions. If your application links against libcurl, chances are you won't be able to create a single binary that runs on very many distributions.
- nivertech 12y agoI compiled a Golang static executable on Ubuntu uploaded it to AWS Lambda (which is Amazon Linux) and it works. Didn't tried with C/C++.