我遇到的问题与this question非常相似,但是在重新启动时,rvm似乎并没有意识到gemset。
我已经创建了几个gemset,这些目录确实是在$ 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 1.9.2@rails311
,并且rvm使用其关联的gemset切换到该ruby;当我运行$ rvm info
时,我得到下面粘贴的内容,但是$ bundle install
会抛出依赖性错误,使得它看起来好像没有找到gemset。
此外,我已将用户帐户添加到rvm组,并且在创建gemsets或向其安装gem时我没有获得任何权限错误,并且所有gem实际上都已下载并存储在正确的gemsets中。
ruby-1.9.2-p318@rails311:
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 <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [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/ruby-1.9.2-p318@rails311"
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/ruby-1.9.2-p318@rails311/bin/rake"
environment:
PATH: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318@rails311/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318@global/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/ruby-1.9.2-p318@rails303/bin:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318@rails313/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/ruby-1.9.2-p318@rails311"
GEM_PATH: "/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318@rails311:/Network/Servers/www/Volumes/ServerData/Home/yyy/.rvm/gems/ruby-1.9.2-p318@global"
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 :(得分:0)
这看起来像已知的RVM问题https://github.com/wayneeseguin/rvm/issues/762
我应该花一些时间在一两周内修复它,请查看机票并给出/评论您认为可能很重要的任何见解