我在使用 rbenv 和 bundler 时遇到了一些问题。当我在我的应用程序上捆绑安装时,我收到一条错误消息,指出安装 Rake 时发生错误。
我认为这与 rbenv 没有指向 gems 的写入路径有关——但我并不积极。
为什么当 rake 出现时,bundler 无法安装 rake?
控制台输出
deploy@telemed-test:/u/apps/telemed_solutions/current$ bundle install
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
NoMethodError: private method `open' called for Gem::Package:Class
An error occured while installing rake (0.9.2), and Bundler cannot continue.
Make sure that `gem install rake -v '0.9.2'` succeeds before bundling.
deploy@telemed-test:/u/apps/telemed_solutions/current$
deploy@telemed-test:/u/apps/telemed_solutions/current$ rbenv version
1.9.3-p125 (set by /home/deploy/.rbenv/version)
deploy@telemed-test:/u/apps/telemed_solutions/current$ gem list
*** LOCAL GEMS ***
bigdecimal (1.1.0)
bundler (1.1.3)
io-console (0.3)
json (1.6.6, 1.5.4)
minitest (2.12.1, 2.5.1)
rake (0.9.2)
rdoc (3.12, 3.9.4)