[英]“gem install bundler” won't work with a project that includes a gemset(rvm) in Mac OS x 10.8.1
My problem is summarized in the following lines: 我的问题总结在以下几行中:
Joses-MacBook-Pro:~ jose$ cd Estate/
Using /Users/jose/.rvm/gems/ruby-1.9.2-p290 with gemset realstate
Joses-MacBook-Pro:Estate jose$ bundle
ERROR: Gem bundler is not installed, run `gem install bundler` first.
Joses-MacBook-Pro:Estate jose$ gem install bundler
Successfully installed bundler-1.2.1
1 gem installed
Installing ri documentation for bundler-1.2.1...
Installing RDoc documentation for bundler-1.2.1...
Joses-MacBook-Pro:Estate jose$ bundle
ERROR: Gem bundler is not installed, run `gem install bundler` first.
Joses-MacBook-Pro:Estate jose$
Here's the output for my Gem Env: 这是我的宝石环境的输出:
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-darwin12.1.0]
- INSTALLATION DIRECTORY: /Users/jose/.rvm/gems/ruby-1.9.3-p194
- RUBY EXECUTABLE: /Users/jose/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
- EXECUTABLE DIRECTORY: /Users/jose/.rvm/gems/ruby-1.9.3-p194/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-12
- GEM PATHS:
- /Users/jose/.rvm/gems/ruby-1.9.3-p194
- /Users/jose/.rvm/gems/ruby-1.9.3-p194@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
I've tried to solve this problem by using many answers I've seen around here, like: Ruby: "gem install bundler" not installing bundler 我试图通过使用我在这里看到的许多答案来解决此问题,例如: Ruby:“ gem install bundler”而不是安装bundler
But unfortunately so far I've not been able to solve the problem, I hope somebody can help me out figuring this out. 但不幸的是,到目前为止,我还无法解决问题,希望有人能帮助我解决这个问题。 I'm a Mac OS X newcomer.
我是Mac OS X新手。
Thanks in advance ! 提前致谢 !
EDIT: 编辑:
which bundle: 哪个捆绑包:
Joses-MacBook-Pro:Estate jose$ which bundle
/Users/jose/.rvm/bin/bundle
$(which bundle) $(哪个捆绑包)
which gem, etc 哪个宝石等
Joses-MacBook-Pro:Estate jose$ which gem || type gem | head -n 1
/Users/jose/.rvm/bin/gem
Joses-MacBook-ProEstate jose$ hash -r
Joses-MacBook-Pro:Estate jose$
您需要显式使用ruby:
rvm use 1.9.3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.