solution for rake db:create

32 views
Skip to first unread message

satvat rani

unread,
Mar 14, 2012, 3:43:27 AM3/14/12
to Ruby on Rails: Talk
I ran into the following error:

WARNING: 'require 'rake/rdoctask'' is deprecated. Please use
'require 'rdoc/tas k' (in RDoc 2.4.2+)' instead.
at /usr/lib/ruby/vendor_ruby/rake/rdoctask.rb
rake aborted!
uninitialized constant Gem
----

Following that advice (which I also found by searching the web for the
error message) got me nowhere, however:


rake aborted!
no such file to load -- rdoc/task

anyone know the solution.

shyam

unread,
Mar 14, 2012, 5:24:11 AM3/14/12
to rubyonra...@googlegroups.com

check ur rake gem version and rubygems if installed or not.

Satvat Rani

unread,
Mar 14, 2012, 7:10:01 AM3/14/12
to rubyonra...@googlegroups.com
OK..C:\user\ran>gem list -d rake

*** LOCAL GEMS ***

rake (0.9.2.2, 0.9.2, 0.8.7, 0.8.3)
    Author: Jim Weirich
    Rubyforge: http://rubyforge.org/projects/rake
    Homepage: http://rake.rubyforge.org
    Installed at (0.9.2.2): C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
                 (0.9.2): C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
                 (0.8.7): C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8
                 (0.8.3): C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8

    Ruby based make-like utility.


C:\user\ran>bundle show rake
        C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/rake-0.9.2.2

C:\user\ran>rake db:create

rake aborted!
no such file to load -- rdoc/task



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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/L69_8gRq6LMJ.

To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Mohnish G j

unread,
Mar 14, 2012, 12:35:40 PM3/14/12
to rubyonra...@googlegroups.com
I guess, its a conflict with using mutiple versions of Rake Gem.

If you have many applications, which require different rake gem versions
to run..

Install RVM,

Do a rvm gemset create gemset_name

and then place appropriate gem versions of rake and other gems in those
project specific gemsets.. to avoid conflicts..

--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages