我是新來的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