When attempting to create some Rails components using below command, I
receive
the following errors:
[root@localhost blog]# rake db:create
(in /root/work/blog)
db/development.sqlite3 already exists
[root@localhost blog]# script/generate controller home index
/usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb:
271:in `rescue in require_frameworks'': no such file to load -- openssl
(RuntimeError)
from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/
initializer.rb:268:in `require_frameworks''
from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/
initializer.rb:134:in `process''
from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/
initializer.rb:113:in `run''
from /root/work/blog/config/environment.rb:9:in `<top
(required)>''
from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/
commands/generate.rb:1:in `require''
from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/
commands/generate.rb:1:in `<top (required)>''
from script/generate:3:in `require''
from script/generate:3:in `<main>''
Suggestions for resolution? - GregN
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2010-Mar-16 23:14 UTC
Re: Error created with using "script/generate" command...
On Tue, Mar 16, 2010 at 10:40 AM, GregN <greg_w_neely-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> When attempting to create some Rails components using below command, I > receive > the following errors: > > [root@localhost blog]# rake db:create > (in /root/work/blog) > db/development.sqlite3 already existsNot an error, it means exactly what it says. But, as an aside, why in the name of #{DEITY} are you doing this as root?? Seems like a really dicey idea...> [root@localhost blog]# script/generate controller home index > /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.3.5/lib/initializer.rb: > 271:in `rescue in require_frameworks'': no such file to load -- openssl > (RuntimeError)So was your version of Ruby built with OpenSSL? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.