0
我在使用rbenv和bundler時遇到了一些麻煩。當我將安裝捆綁到我的應用程序時,出現錯誤,說安裝Rake時發生錯誤。即使rake似乎存在,爲什麼bundler無法安裝rake?
我在想這與rbenv沒有指向寫寶石的路徑 - 但我不積極。
爲什麼bundler在耙子出現時不能安裝耙子?
控制檯輸出
[email protected]:/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.
[email protected]:/u/apps/telemed_solutions/current$
[email protected]:/u/apps/telemed_solutions/current$ rbenv version
1.9.3-p125 (set by /home/deploy/.rbenv/version)
[email protected]:/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)