How do I use RVM to run Ruby files in a particular version? -
i'm trying use rvm run programs in particular version. running script puts ruby_version, outputs 1.8.7:
$ ruby --version ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] the following command shows different versions of ruby installed:
$ rvm list rvm rubies =* ruby-1.9.2-p290 [ x86_64 ] ruby-1.9.3-p448 [ x86_64 ] # => - current # =* - current && default # * - default how run ruby script in ruby-1.9.2?
try this:
rvm ruby-1.9.2-p290 ruby --version that said, looks system ruby has higher path precedence rvm. might try doing rvm reinstall or uninstalling system ruby make sure system paths managed properly.
Comments
Post a Comment