# Rake error

**URL:** <https://www.ruby-forum.com/t/rake-error/162393>\
**Category:** Rails\
**Created:** [March 9, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/rake-error/162393 "2009-03-09T15:34:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lox32](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@lox32](https://www.ruby-forum.com/u/lox32)\
**Post date:** [March 9, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/rake-error/162393/1 "2009-03-09T15:34:47Z")

</div>

when i try to run rake i get an eroor that goes like this:

(in /home/dwain/project/stuad)  
/home/dwain/project/stuad/config/boot.rb:29:Warning: require\_gem is  
obsolete. Use gem instead.  
rake aborted!  
Test failures

(See full trace by running task with --trace)

then i run a trace and i get this:

dwain@personal:~/project/stuad$ rake --trace  
(in /home/dwain/project/stuad)  
/home/dwain/project/stuad/config/boot.rb:29:Warning: require\_gem is  
obsolete. Use gem instead.  
\*\* Invoke default (first\_time)  
\*\* Invoke test (first\_time)  
\*\* Execute test  
\*\* Invoke test:units (first\_time)  
\*\* Invoke db:test:prepare (first\_time)  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
\*\* Execute db:test:prepare  
\*\* Invoke db:test:clone (first\_time)  
\*\* Invoke db:schema:dump (first\_time)  
\*\* Invoke environment  
\*\* Execute db:schema:dump  
\*\* Invoke db:test:purge (first\_time)  
\*\* Invoke environment  
\*\* Execute db:test:purge  
\*\* Execute db:test:clone  
\*\* Invoke db:schema:load (first\_time)  
\*\* Invoke environment  
\*\* Execute db:schema:load  
\*\* Execute test:units  
\*\* Invoke test:functionals (first\_time)  
\*\* Invoke db:test:prepare  
\*\* Execute test:functionals  
\*\* Invoke test:integration (first\_time)  
\*\* Invoke db:test:prepare  
\*\* Execute test:integration  
rake aborted!  
Test failures  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/tasks/testing.rake:50  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `call' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in`execute’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in`execute’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in`synchronize’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in`invoke\_prerequisites’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in`send’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in`invoke\_prerequisites’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in`synchronize’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in`run’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in`run’  
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7  
/usr/local/bin/rake:16:in `load’  
/usr/local/bin/rake:16

can some one help me with a step by step guide because i am new to ruby,  
so please be careful.

---

<div class="post-metadata">

**Author:** ![lox32](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@lox32](https://www.ruby-forum.com/u/lox32)\
**Post date:** [March 9, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/rake-error/162393/2 "2009-03-09T18:15:11Z")

</div>

On Mon, Mar 9, 2009 at 9:34 AM, Chre Thoma  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> when i try to run rake i get an eroor that goes like this:
> 
> (in /home/dwain/project/stuad)  
> /home/dwain/project/stuad/config/boot.rb:29:Warning: require\_gem is  
> obsolete. Use gem instead.

Change line 29 of /home/dwain/project/stuad/config/boot.rb to use gem  
instead of require\_gem.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
