I have set up a ruby and ruby on rails environment on my Mac running Yosemite and am trying to work my way through a tutorial. I am stopped from doing so immediately when I do the following in my bash terminal:
$ rvm use ruby-2.2.1@ learn-rails --create
Unknown ruby interpreter version (do not know how to handle): learn-rails.
I believe everything is set up correctly. Here's what I get when I do the following:
$ rvm list
rvm rubies
ruby-2.2.0 [ x86_64 ]
=* ruby-2.2.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
and:
$ ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
$ rails -v
Rails 4.2.1
$ rvm -v
rvm 1.26.10 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
$ echo $PATH
/Users/jeff/.rvm/gems/ruby-2.2.1/bin:/Users/jeff/.rvm/gems/ruby-2.2.1@global/bin:/Users/jeff/.rvm/rubies/ruby-2.2.1/bin:/usr/local/heroku/bin:/Users/jeff/.rbenv/shims:/Users/jeff/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jeff/.rvm/bin
Thanks for your help in advance!
There should be no space between the @ character and learn-rails. The extra space is causing RVM to misinterperet learn-rails as a version of Ruby to use. The line should read:
rvm use ruby-2.2.1@learn-rails --create
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With