I'm testing out an Amazon EC2 instance (Amazon Linux AMI 2011.09, EBS boot, 32-bit architecture with Amazon EC2 AMI Tools.) to see if it'll serve my purposes.
I've written a small backend in Ruby (which runs great on my Mac), using eventmachine and em-http-request.
When I try to run this on the EC2 instance, I get the following error:
what(): Encryption not available on this event-machine
I'm pretty sure this has something to do with the em-http-request, because I get a log output which is just before a https request.
I've read online it something to do with event-machine linking to openssl properly and I'm wondering how I should do that?
At the moment, I'm installing the dev tools with:
sudo yum groupinstall "Development Tools"
Ruby:
sudo yum install ruby-devel
I'm then installing rubygems with this:
wget http://...rubygems.1.8.15.tgz
tar -xvf rubygems.1.8.15
cd rubygems.1.8.15
ruby setup.rb
Installing the gems:
sudo gem install eventmachine
sudo gem install em-http-request
This all seems to work just fine, no errors so far. The error comes when I attempt to run the ruby file.
Any ideas?
if EM.ssl? puts "yes" else puts "no" end. If you get "no" then you need to compile your own eventmachine. – harrymc Jan 19 at 11:29