Rails Error: `require’: cannot load such file — openssl (LoadError)

Rails, Ruby Voice your views   , ,

When I try to create a new project($ rails new first_app) it gives following error after creating directory structure.

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

Here is my documentation on how i solved the issue,

Assuming RVM is in use:

rvm pkg install openssl

Remove ruby

rvm remove 1.9.3

And finally recompile Ruby with openssl

rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm/usr

Finally

rvm use 1.9.3 --default

Hope this solved the problem!

Add a Comment

%d bloggers like this: