Ruby 1.9.2 not installing on OSX?

你。 提交于 2020-01-17 01:40:15

问题


  1. I've got Xcode 3.2.1
  2. I've installed Git and RVM
  3. I've installed Ruby 1.9.2, it's installed 100%
  4. I run ruby -v but instead of seeing

    ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
    

    I see

    ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
    

I don't see what I could be going wrong


回答1:


Try

rvm 1.9.2

Or

rvm --default 1.9.2

It is possible to use a .rvmrc to do that for the directory you cd into as well.




回答2:


Have you selected the version of ruby you want to use with rvm? As in this? Note the "rvm 1.9.2" line hidden away after the rvm and ruby installs.




回答3:


Type in 'rvm 1.9.2' and then type 'ruby -v'... did you do that? It looks like the Ruby 1.8.7 on your machine is the one included with OS X.



来源:https://stackoverflow.com/questions/3909622/ruby-1-9-2-not-installing-on-osx

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!