I’m new to Ruby and RVM, but I’ve managed to get both set up on my system by following a simple tutorial. In the tutorial, commands like
gem install rails
which gem
bundle install
are used, without much explanation of the Ruby management ecosystem. My confusion is where all these utility programs come from?
I only installed ruby 1.9.3 and rvm, but somehow ‘gem’, ‘which’, and ‘bundle’ are executable programs in my path. How exactly did they get there and where can I read about the arguments they take and similar utilities I may not have discovered yet. There are no man-pages for them.
Finally, I believe rvm is analogous to virtualenv in Python and gem is analogous to pip?
Thanks for the help getting started.
In Ruby 1.9 the Rubygems package manager is included with standard Ruby, so that’s where
gemcomes from. More info withgem -hor and http://guides.rubygems.org/.whichis a standard utility in unixoid systems and has nothing to do with Ruby (man 1 whichfor details).bundlecomes from Bundler, which is a commonly used gem for managing an application’s dependencies. You generally have to install this manually, unless RVM does that nowadays.bundle -hhas more info for you.