Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Since Amazon Linux can't run outside of EC2 (if it can please explain) what is the closest platform that I should use when compiling code that should run on a EC2 instance running Amazon Linux?

I tried CentOS 6.3 and it seems to work fine but I want to be sure I won't hit a corner-case where it breaks,they both seem to use glibc 2.12 and are RHEL based.

The constrians I have is that I can't put my code on Amazon instances and they run Amazon Linux.

share|improve this question
Given your constraints, you almost certainly should not use Amazon Linux, but some other distribution. –  Michael Hampton Jan 9 '13 at 21:48
I totally agree with you but that is the given state that I can't change,I am asking what to do given this state. –  Uriel Katz Jan 10 '13 at 22:23
If you can't build your own code on Amazon Linux, not even your own instances, then the problem can't be solved (by technology). –  Michael Hampton Jan 10 '13 at 22:25
I think you are a bit exaggerating :) I can always create a chroot of amazon linux by copying all root partition but I was wondering if I can avoid that... or run amazon linux on VirtualBox/VMWare or just being sure that compiling on centos 6.3 is enough –  Uriel Katz Jan 11 '13 at 14:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.