简体   繁体   中英

rake db:create issue

I have just started working on one project, and I have configured my system according to the requirement of the project ie

rails v => 2.3.11
ruby v => 1.8.7

When i run command "rake db:create" it comes up with error as

rake aborted!
no such file to load -- rake/rdoctask
/home/jeet/Desktop/Projects/myapp/Rakefile:8

here i am adding the content of Rakefile

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require(File.join(File.dirname(__FILE__), 'config', 'boot'))

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

require 'tasks/rails'

I have checked the answer of this , but its not working for me.

Please suggest me a better solution

I have seen the same problem.

Possible solution: by adding gem 'rdoc' to my Gemfile and then run bundle install .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM