2012-03-06 60 views
0

我遇到了一個與this question非常相似的問題,但不是在重新啓動時忘記了,rvm似乎並沒有意識到gemset的位置。立即遺忘RVM gemset

我有創建了幾個gemsets,並且確實正在創建的目錄和使用時,我$ rvm install rails -v 3.1.1或什麼,但$ rvm gemset list產生這樣的:

gemsets for system (found in /Network/Servers/xxx/Volumes/ServerData/Home/yyy/.rvm/gems/system) 
* 

我可以rvm use [email protected]和RVM切換到該紅寶石,與相關的寶石;當我運行時,我得到了下面粘貼的內容,但是$ bundle install拋出了依賴性錯誤,使得它看起來好像沒有找到gemset。

此外,我已將用戶帳戶添加到rvm組,並且在創建gemsets或向他們安裝gem時沒有任何權限錯誤,並且所有gem實際上都會下載並存儲在適當的gemsets中。

[email protected]: 

    system: 
    uname:  "Darwin www.yyy.zzz 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64" 
    bash:  "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)" 
    zsh:   "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)" 

    rvm: 
    version:  "rvm 1.10.3 by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.beginrescueend.com/]" 
    updated:  "1 day 2 hours 32 minutes 20 seconds ago" 

    ruby: 
    interpreter: "ruby" 
    version:  "1.9.2p318" 
    date:   "2012-02-14" 
    platform:  "x86_64-darwin11.3.0" 
    patchlevel: "2012-02-14" 
    full_version: "ruby 1.9.2p318 (2012-02-14) [x86_64-darwin11.3.0]" 

    homes: 
    gem:   "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]" 
    ruby:   "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318" 

    binaries: 
    ruby:   "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/bin/ruby" 
    irb:   "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/bin/irb" 
    gem:   "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/bin/gem" 
    rake:   "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]/bin/rake" 

    environment: 
    PATH:   "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql84/bin" 
    GEM_HOME:  "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]" 
    GEM_PATH:  "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/[email protected]" 
    MY_RUBY_HOME: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318" 
    IRBRC:  "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/rubies/ruby-1.9.2-p318/.irbrc" 
    RUBYOPT:  "" 
    gemset:  "rails311" 

非常感謝您提供的任何見解。

回答

0

這看起來像一個已知RVM問題https://github.com/wayneeseguin/rvm/issues/762

我應該得到一些時間,兩個星期之內解決這個問題,請查看車票和給/發表評論你認爲可能是重要

+0

非常感謝任何見解,欣賞頭。所以除了rvm沒有意識到gemset之外,rvm是否也不知道真正的寶石? – Jamie 2012-03-07 01:47:15

+0

實際上所有的gemsets/gems都應該到位,這個問題只涉及rvm命令來列出/刪除gemssets – mpapis 2012-03-07 02:31:37