我已經安裝rbenv並使用ruby-build下載了一個ruby,例如使用rbenv/ruby-build安裝bundler
rbenv global 1.9.3-p448
gem env # This show my customized ruby gem paths instead the system one,
# so it works!
然後我安裝捆綁,
# gem install --no-ri --no-rdoc bundler
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
如果我不使用rbenv,用我的系統紅寶石,我可以安裝捆綁。但是當我使用rbenv時如何安裝?
rbenv ruby選擇時,哪個ruby和哪個gem的輸出是什麼?使用ruby-build安裝ruby後,你做了'rbenv rehash'嗎? –
你在使用什麼操作系統? –