Why is Ruby 1.9.2 on Windows 7 using a 1.9.1 path for gems? it is using c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb

孤街醉人 提交于 2020-01-11 12:54:47

问题


I installed Ruby 1.9.2 using one click installer to c:\ruby192

It doesn't set any path, so I set it to include c:\ruby192 at the very beginning of the path.

But when it error on something (for Rails 3.0), the path says:

[Error message]
c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb

why is it 1.9.1 gems path for Ruby 1.9.2?


回答1:


From a little FAQ chapter to the release:

The standard library is installed in /usr/local/lib/ruby/1.9.1 This version number is "library compatibility version". Ruby 1.9.2 is mostly compatible with the 1.9.2, so its library is installed in the directory.



来源:https://stackoverflow.com/questions/3656815/why-is-ruby-1-9-2-on-windows-7-using-a-1-9-1-path-for-gems-it-is-using-c-ruby1

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