为什么Windows 7上的Ruby 1.9.2使用1.9.1路径作为gem?它正在使用c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb [英] 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

查看:89
本文介绍了为什么Windows 7上的Ruby 1.9.2使用1.9.1路径作为gem?它正在使用c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一键安装程序将Ruby 1.9.2安装到c:\ ruby​​192

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

它没有设置任何路径,因此我将其设置为在路径的最开始包含c:\ ruby​​192.

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

但是当它在某些地方出错(对于Rails 3.0)时,该路径会显示:

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

为什么Ruby 1.9.2是1.9.1 gems路径?

why is it 1.9.1 gems path for Ruby 1.9.2?

推荐答案

来自常见问题解答一章发布:

标准库安装在/usr/local/lib/ruby/1.9.1中 该版本号是库兼容性版本". Ruby 1.9.2是 大部分与1.9.2兼容,因此其库已安装在 目录.

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.

这篇关于为什么Windows 7上的Ruby 1.9.2使用1.9.1路径作为gem?它正在使用c:/ruby192/lib/ruby/gems/1.9.1/gems/railties-3.0.0/lib/rails/commands.rb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆