# Error created with using "script/generate" command

**URL:** <https://www.ruby-forum.com/t/error-created-with-using-script-generate-command/185258>\
**Category:** Rails\
**Created:** [March 16, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/error-created-with-using-script-generate-command/185258 "2010-03-16T23:24:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregnewman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a9a28c/32.png) [@gregnewman](https://www.ruby-forum.com/u/gregnewman)\
**Post date:** [March 16, 2010, 11:24pm UTC](https://www.ruby-forum.com/t/error-created-with-using-script-generate-command/185258/1 "2010-03-16T23:24:17Z")

</div>

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 `’

Suggestions for resolution? - GregN

---

<div class="post-metadata">

**Author:** ![gregnewman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a9a28c/32.png) [@gregnewman](https://www.ruby-forum.com/u/gregnewman)\
**Post date:** [March 17, 2010, 12:16am UTC](https://www.ruby-forum.com/t/error-created-with-using-script-generate-command/185258/2 "2010-03-17T00:16:22Z")

</div>

On Tue, Mar 16, 2010 at 10:40 AM, GregN [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 exists

Not 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 S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan
