Sunday 15 May 2011

Getting OpenSSL Ruby support running on Amazon EC2 Linux AMI instances

I was trying to get OmniAuth in Sinatra up and running on a vanilla Amazon Linux AMI with RVM-installed Ruby 1.9.2. I'd installed the basic development build tools, but kept getting an openssl error when trying to startup my Sinatra app:

`require': no such file to load -- openssl (LoadError)

Turns out I needed to install the OpenSSL development libs. Make sure you have all the necessary build tools installed:

sudo yum groupinstall development-tools

Then install the OpenSSL libs:

sudo yum install openssl-devel

Or,alternatively, all of the development libs:

sudo yum groupinstall development-libs

Make sure you uninstall any existing ruby RVM builds:


rvm uninstall 1.9.2
rvm cleanup all


Then reinstall:

rvm install 1.9.2

And it should now be good to go.

No comments: