【发布时间】:2016-04-05 13:16:54
【问题描述】:
我正在尝试创建一个测试数据库。 我使用了以下命令:
rake db:schema:create
还尝试了各种版本的代码,例如
sudo bundle exec rake db:create
我不断收到同样的错误:
rake aborted!
LoadError: no such file to load -- bundler/setup
/home/eshel/test/test_db/config/boot.rb:4:in `<top>'
/home/eshel/test/test_db/config/application.rb:1:in `<top>'
/home/eshel/test/test_db/config/application.rb:1:in `<top>'
/home/eshel/test/test_db/Rakefile:1:in `(root)'
/home/eshel/test/test_db/Rakefile:5:in `(root)'
(See full trace by running task with --trace)
尝试多次安装捆绑包,但到目前为止没有任何效果。
我错过了什么?
【问题讨论】:
-
你安装了bundler吗?
-
捆绑安装工作正常吗?
-
运行
gem install bundler并重试。 旁注:在您了解sudo的用途之前,请不要使用sudo。 -
是的,我使用了这个命令:sudo bundle install
-
@Eshel:请指定您正在使用的 Rails 版本。
标签: ruby-on-rails ruby ubuntu rubygems rakefile