我正在尝试从github下载一个Rails应用程序,并使其在我的PC上运行。我已阅读其他帖子,说您必须运行bundle install
,rake db:create
然后rake db:migrate
,我会做所有事情,但当我尝试运行rake db:create
时,我收到此错误:< / p>
rake aborted!
Gem::LoadError: You have already activated rake 10.4.2, but your Gemfile requires rake 10.3.2. Prepending `bundle exec` to your command may solve this.
D:/art-website/config/boot.rb:4:in `<top (required)>'
D:/art-website/config/application.rb:1:in `<top (required)>'
D:/art-website/Rakefile:4:in `<top (required)>'
LoadError: cannot load such file -- bundler/setup
D:/art-website/config/boot.rb:4:in `<top (required)>'
D:/art-website/config/application.rb:1:in `<top (required)>'
D:/art-website/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
答案 0 :(得分:2)
您的宝石rake
在您安装的版本中存在冲突,即您的rake
所需的宝石Gemfile
版本为10.3.2
,而您的机器上有宝石已获得版本10.4.2
和10.3.2
。