Tag Archive for 'rack'

Rack: OpenSSL Error

While programming for one of my projects using Sinatra, I encountered a problem when using Rack’s session.

LoadError: no such file to load — openssl

The error message states that they cannot find openssl, even though I currently have it installed on my machine. After reading advices from helpful forums, people who encountered the same problem stated that I need the library of OpenSSL. Here’s the code to install the OpenSSL library easily:

sudo apt-get install libopenssl-ruby1.9

I worked for me, and now I can continue working on my project.