我是rails初学者的红宝石,我试图在我的本地mac上运行rails应用程序。我已经设置了环境和MySQL数据库,直到最后一个设置步骤:db:migrate rake
,它才是完整的。我收到以下错误:
cannot load such file -- bundler/setup
/Users/snailwalker/vietnam/snailwalker/config/boot.rb:7:in `<top (required)>'
/Users/snailwalker/vietnam/snailwalker/config/application.rb:2:in `<top (required)>'
/Users/snailwalker/vietnam/snailwalker/Rakefile:5:in `<top (required)>'
我错过了什么?
答案 0 :(得分:2)
无法加载此类文件 - bundler / setup
此问题的原因很可能是您没有bundler
。您应该安装bundler然后尝试再次运行迁移。
gem install bundler
bundle install
bundle exec rake db:migrate
希望它会帮助你。