I am using Rails 3.1.1 and ruby 1.9.2-p290.
When I try to generate model with command:
rails generate model Car name:string
I got the error message:
.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require': no such file to load -- openssl (LoadError)
I tried to get rid of it by using method
and also tried :
cd to ~.rvm/src/ruby-1.9.2-p290/ext/openssl
ruby extconf.rb
make
make install
But, neither of them help. Anyone has any ideas about this error?
Is seems you are missing libraries for openssl.
Try installing these packages.
if you are using rvm then and getting same error then try following