Ruby on rails 在任何源中都找不到builder-2.1.2

Ruby on rails 在任何源中都找不到builder-2.1.2,ruby-on-rails,bundle,builder,Ruby On Rails,Bundle,Builder,我在遵循指南,但我遇到了一个问题: bash-4.1$ bundle install Using rake (0.8.7) Using abstract (1.0.0) Using activesupport (3.0.3) Using builder (2.1.2) Using i18n (0.5.0) Using activemodel (3.0.3) Using erubis (2.6.6) Using rack (1.2.1) Using rack-mount (0.6.

我在遵循指南,但我遇到了一个问题:

bash-4.1$ bundle install
Using rake (0.8.7) 
Using abstract (1.0.0) 
Using activesupport (3.0.3) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.3) 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.13) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.24) 
Using actionpack (3.0.3) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.2.14) 
Using actionmailer (3.0.3) 
Using arel (2.0.7) 
Using activerecord (3.0.3) 
Using activeresource (3.0.3) 
Using bundler (1.0.7) 
Using thor (0.14.6) 
Using railties (3.0.3) 
Using rails (3.0.3) 
Using sqlite3-ruby (1.3.2) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
bash-4.1$ rake db:create
(in /Users/user/Documents/blog)
Could not find builder-2.1.2 in any of the sources
Try running `bundle install`.
bash-4.1$ bundle show builder
/Users/user/.gem/ruby/1.8/gems/builder-2.1.2

我还尝试将Builder作为RubyGem安装,但这没有改变任何事情。

尝试通过
bundle exec
运行它,以确保gem文件中指定的所有gem都有正确的版本:
bundle exec rake db:create
您可以验证安装的gem对bundle可见,如下所示:

bundle show builder

/usr/lib/ruby/gems/1.8/gems/builder-2.1.2
我也有同样的问题,
bundle exec-rake
仍然无法看到已安装的gem。

我的rake版本(安装在/usr/bin/rake)指向的是旧版本的Ruby 1.8

修改rake的第一行以指向正确版本的Ruby。您还可以清除“供应商”目录下的捆绑缓存,或将捆绑移动到另一个本地目录:

bundle安装——路径gems

在命令行中,找到默认的“ruby”和“rake”命令,并检查ruby的版本:

哪个红宝石

哪个耙子

ruby-v

在/usr/bin/rake(第1行)中:

#!/opt/local/bin/ruby


如何安装一个旧版本的宝石?在GEMFILE中:<代码> GEM“FO”,“1.2.3”< /代码>保罗,你认为这个问题的答案是什么?你似乎只是在说我也有同样的问题,作为对这个问题的评论,这更合适。