no such file to load -- openssl (RuntimeError)

I was trying to deploy an older Rails 2.2.2 app to a new server and when I started up the application, I ran into the following error:
in `require_frameworks': no such file to load -- openssl (RuntimeError)
Hmm...my app doesn't even use SSL. Whatever...(think this is because capistrano is involved?) To fix this, I installed openssl by running
sudo apt-get install libopenssl-ruby1.8
Success!