Ruby on Rails: no such file to load -- openssl on RedHat Linux Enterprise

unknown (yahoo) picture unknown (yahoo) · Sep 18, 2008 · Viewed 14k times · Source

I am trying to do 'rake db:migrate' and getting the error message 'no such file to load -- openssl'. Both 'openssl' and 'openssl-devel' packages are installed. Others on Debian or Ubuntu seem to be able to get rid of this by installing 'libopenssl-ruby', which is not available for RedHat. Has anybody run into this and have a solution for it?

Answer

Joel picture Joel · Nov 16, 2008

I had this problem on Ubuntu, after upgrading to 8.10. The solution for Ubuntu was

sudo apt-get install libopenssl-ruby