我是新来的Rails。我安装了Rails正常,但如果我增加额外的宝石到Gemfile中(所有,任何宝石已经不是在那里),然后运行bundle install
,我得到这个错误:'捆绑install`甚至宝石返回错误已经安装
$ bundle install
/home/mcrittenden/Dropbox/Code/omgwtf/Gemfile:40:in ``': No such file or directory - rmagick (Errno::ENOENT)
from /home/mcrittenden/Dropbox/Code/omgwtf/Gemfile:40:in `evaluate'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/dsl.rb:7:in `instance_eval'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/dsl.rb:7:in `evaluate'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/definition.rb:17:in `build'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler.rb:138:in `definition'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/cli.rb:219:in `install'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/vendor/thor/base.rb:386:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/bin/bundle:13:in `<top (required)>'
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19:in `<main>'
出现这种情况,即使它在抱怨宝石已经安装。在这种情况下,gem已正确安装在/usr/lib/ruby/gems/1.9.1/gems/中。
关于我可能做错什么的想法?
注:我知道我应该使用RVM,而我,但是对于这篇文章的目的,我不包括它,这样它可以作为一个可能的罪魁祸首被排除。
你尝试过平常故障意味着像'宝石更新--system'?哪个版本的rails是这个? – prusswan 2012-02-16 16:09:46