RVM gemset create isn't working
The created gemsets don't show up
root@host:/# rvm gemset create foobar 'foobar' gemset created (/usr/local/lib/ruby/gems/1.8@fo开发者_开发问答obar). root@host:/# rvm gemset list gemsets for system (found in /usr/local/rvm/gems/system) * root@host:/#
why is that? help
You are trying to create a gemset for the system ruby, which RVM has no control over.
You need to use
a ruby version before you create the gemset. I use 1.8.7 as an example here, but this will depend on which rubies you have installed.
rvm use 1.8.7
rvm gemset create foobar
Now you get:
$ rvm use 1.8.7
Using /Users/dougal/.rvm/gems/ruby-1.8.7-p334
$ rvm gemset create foobar
'foobar' gemset created (/Users/dougal/.rvm/gems/ruby-1.8.7-p334@foobar).
$ rvm gemset list
gemsets for ruby-1.8.7-p334 (found in /Users/dougal/.rvm/gems/ruby-1.8.7-p334)
foobar
global
rails3
I have found that if you need 1.8.7 and 1.9.2 using the former for any applications by install it as part of the system and then installing 1.9.2 in your user directory and then point bash to the 1.9.2 version and using them separately is far better than trying to wrestle with that buggy POS named RVM.
It may work now, but sometime soon it will break when you install another Ruby or Gem and you will be back fighting it.
This works great for me as I use 1.8.7 for Kile, 1.9.2 and JRuby for my projects and RVM broke something every time I needed a new gem or update something. RVM is a good idea that was poorly implemented.
精彩评论