I wanted to run jekyll on Amazon Linux, it should have been so simple to implement..
The best place to start is checking with Amazon Web Services to find the latest released Amazon Linux AMI here as they are updated regularly, I used ami-70edb016 to launch an instance in eu-west-1 region.
Launch your instance and patch to ensure kernel & packages are latest, powercycle.
Install common devtools for Amazon Linux and Ruby (with development packages).
Makes life much easier if we install packages from now with RubyGemsthe package manager for Ruby. So now we install Jekyll and Bundler.
Let’s quickly check we are running the latest version.
Ask Jekyll to magically create us a new site, but we have problems! It’s complaining it doesn’t have io-console installed.
So let’s install it now and cleanup before trying again
It seems to have worked made the site but for some reason won’t start the webserver
After digging and doing some research I found this is a bug caused from existing pre-compiled gems that might not be Ruby compatible, so we just need to remove and force recompilation.