2010-12-11 21 views
7

içine kurulduğunda uygun şekilde takılmaz rvm, bundler ve gemsets ile sorun yaşıyorum. Ben 3 yakut RVM içinde yüklediniz:RVM'yi kullanarak, taşlar farklı bir yakut sürümü

rvm rubies 

    macruby-0.7.1 [ x86_64 ] 
    ree-1.8.7-2010.02 [ x86_64 ] 
=> ruby-1.9.2-p0 [ x86_64 ] 

Ve gemsets şöyle:

rvm gemsets 

    macruby-0.7.1 [ x86_64 ] 
    ree-1.8.7-2010.02 [ x86_64 ] 
    [email protected] [ x86_64 ] 
    [email protected] [ x86_64 ] 
    [email protected] [ x86_64 ] 
    [email protected]_rails [ x86_64 ] 
    ruby-1.9.2-p0 [ x86_64 ] 
=> [email protected] [ x86_64 ] 
    [email protected] [ x86_64 ] 

Ben 1.9.2 yakut geçer bir .rvmrc ve "Instapaper" gemset vardır:

rvm use [email protected] 

Ben bundler kullanmak istiyorum, bu yüzden el ile bu gemset içinde bundler yüklemek ve iyi çalışıyor. Ben çalıştırdığınızda Sonra ree 1.8.7'de gördüğü taşlar kullandığı "bohça yükle"

source "http://rubygems.org" 
gem "mechanize" 
gem "highline" 
gem "www-delicious" 

:

benim Gemfile inşa

Using highline (1.6.1) 
Using nokogiri (1.4.4) 
Using mechanize (1.0.0) 
Using www-delicious (0.4.0) 
Using bundler (1.0.7) 
Your bundle is complete! It was installed into /Users/kold/.rvm/gems/ree-1.8.7-2010.02 

ben "rvm info" çalıştırırsanız tamam bilgi tükürür ve hatta sorun olmadan elle mücevher yüklemek mümkün değilim: Ben sadece emin değilim

[email protected] [master*]$ rvm info 

[email protected]: 

    system: 
    uname:  "Darwin Kevin-Olds-MacBook-Pro.local 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386 i386" 
    bash:  "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)" 
    zsh:   "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)" 

    rvm: 
    version:  "rvm 1.1.0 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]" 

    ruby: 
    interpreter: "ruby" 
    version:  "1.9.2p0" 
    date:   "2010-08-18" 
    platform:  "x86_64-darwin10.4.0" 
    patchlevel: "2010-08-18 revision 29036" 
    full_version: "ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]" 

    homes: 
    gem:   "/Users/kold/.rvm/gems/[email protected]" 
    ruby:   "/Users/kold/.rvm/rubies/ruby-1.9.2-p0" 

    binaries: 
    ruby:   "/Users/kold/.rvm/rubies/ruby-1.9.2-p0/bin/ruby" 
    irb:   "/Users/kold/.rvm/rubies/ruby-1.9.2-p0/bin/irb" 
    gem:   "/Users/kold/.rvm/rubies/ruby-1.9.2-p0/bin/gem" 
    rake:   "/Users/kold/.rvm/rubies/ruby-1.9.2-p0/bin/rake" 

    environment: 
    PATH:   "/Users/kold/.rvm/gems/[email protected]/bin:/Users/kold/.rvm/gems/[email protected]/bin:/Users/kold/.rvm/rubies/ruby-1.9.2-p0/bin:/Users/kold/.rvm/bin:/usr/local/bin:/usr/local/mysql/bin:/opt/local/bin:/Users/kold/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin" 
    GEM_HOME:  "/Users/kold/.rvm/gems/[email protected]" 
    GEM_PATH:  "/Users/kold/.rvm/gems/[email protected]:/Users/kold/.rvm/gems/[email protected]" 
    MY_RUBY_HOME: "/Users/kold/.rvm/rubies/ruby-1.9.2-p0" 
    IRBRC:  "/Users/kold/.rvm/rubies/ruby-1.9.2-p0/.irbrc" 
    RUBYOPT:  "" 
    gemset:  "instapaper" 

neden bunu' bu mücevherleri gemsetin dışına yerleştirmek.

Güncelleme 1:

$ rvm use [email protected] && which bundle 
Using /Users/kold/.rvm/gems/ruby-1.9.2-p0 with gemset instapaper 
/Users/kold/.rvm/gems/[email protected]/bin/bundle 

[email protected] [master*]$ bundle --verbose check 
Using highline (1.6.1) from /Users/kold/.rvm/gems/ree-1.8.7-2010.02/specifications/highline-1.6.1.gemspec 
Using nokogiri (1.4.4) from /Users/kold/.rvm/gems/ree-1.8.7-2010.02/specifications/nokogiri-1.4.4.gemspec 
Using mechanize (1.0.0) from /Users/kold/.rvm/gems/ree-1.8.7-2010.02/specifications/mechanize-1.0.0.gemspec 
Using www-delicious (0.4.0) from /Users/kold/.rvm/gems/ree-1.8.7-2010.02/specifications/www-delicious-0.4.0.gemspec 
Using bundler (1.0.7) from /Users/kold/.rvm/gems/[email protected]/gems/bundler-1.0.7/lib/bundler 
Your bundle is complete! It was installed into /Users/kold/.rvm/gems/ree-1.8.7-2010.02 
+0

siz şu aldığım çıktıyı gönderebilir miyim: – bowsersenior

+0

Yep bundle' 'rvm kullanımı [email protected] &&, bu "Güncelleme 1" –

cevap

5

IRC#bundler üzerinde "dolaylı" ile konuştuktan sonra benim BUNDLE_PATH /Users/kold/.rvm/gems/ree-1.8.7-2010.02 ayarlı olduğunu belirledi. Bir kez unset BUNDLE_PATH yaptım her şey gerektiği gibi çalıştı!

+1

Sen RVM yazarına ping ve varsa görebileceğiniz altında yayınlanan her bundler RVM'nin ayarlarını "devralması" için bir yol. Wayne'in e-postasını 'rvm -v' kullanarak alabilirsiniz. –

+3

Burada BUNDLE_PATH’nın nasıl kaldırılacağı ile ilgili ayrıntılı bir soru var: http://stackoverflow.com/questions/5039938/bundle-install-to-development – Schneems

İlgili konular