簡體   English   中英

“ gem安裝捆綁程序”不適用於Mac OS x 10.8.1中包含gemset(rvm)的項目

[英]“gem install bundler” won't work with a project that includes a gemset(rvm) in Mac OS x 10.8.1

我的問題總結在以下幾行中:

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$

這是我的寶石環境的輸出:

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/

我試圖通過使用我在這里看到的許多答案來解決此問題,例如: Ruby:“ gem install bundler”而不是安裝bundler

但不幸的是,到目前為止,我還無法解決問題,希望有人能幫助我解決這個問題。 我是Mac OS X新手。

提前致謝 !

編輯:

哪個捆綁包:

Joses-MacBook-Pro:Estate jose$ which bundle
/Users/jose/.rvm/bin/bundle

$(哪個捆綁包)

哪個寶石等

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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM