New to Ruby and am having trouble with LOAD_PATH

后端 未结 1 885
独厮守ぢ
独厮守ぢ 2021-01-21 19:24

I recently installed Ruby 2.0.0 on OS X 10.8.3 by compiling from source code. I checked the version with

$ ruby --version
ruby 2.0.0p195 (2013-05-14 revision 407         


        
相关标签:
1条回答
  • 2021-01-21 19:41

    Ruby 1.8.7 is shipped with OS X. It seems that gem is seeing that version instead of your manually installed 2.0.0. As others already suggested, using RVM or rbenv (which one depends on personal preference) makes handling different ruby environments much easier. You can find those tools and descriptions for them in the following places:

    RVM: https://rvm.io/

    rbenv: https://github.com/sstephenson/rbenv

    0 讨论(0)
提交回复
热议问题