为什么在 Ruby 1.8.7 中编译 IronRuby 时出现错误?
我似乎无法在 ruby 1.8.7 中编译ironruby。 我总是收到此错误:
no such file to load -- windows/path
这是否意味着ironruby 与ruby 1.8.7 不兼容?
I can't seem to compile ironruby in ruby 1.8.7. I always get this error:
no such file to load -- windows/path
Does this mean that ironruby is not compatible with ruby 1.8.7?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来在 pathname2 的东西成功之前需要 gem windows-pr 。 我在 Ruby 1.8.7 安装中执行了
gem install windows-pr
,然后成功地在 IronRuby 中运行rake --tasks
(之前失败并出现相同的“没有要加载的文件”错误)。It looks like the gem windows-pr is required before the pathname2 stuff succeeds. I did a
gem install windows-pr
in my Ruby 1.8.7 install and then was successfully able to runrake --tasks
in IronRuby (it previously failed with the same "no such file to load" error).IronRuby 本身不需要安装任何 ruby 解释器。 因此询问它是否与 MRI 1.8.7 兼容有点用词不当。 这听起来像是 1.8.7 不包含 Rakefile 使用的库。
顺便说一句,IronRuby 确实以 1.8.6 兼容性为目标。
IronRuby itself does not require any ruby interpreter to be installed. So asking if it's compatible with MRI 1.8.7 is a bit of a misnomer. What this sounds like is that 1.8.7 does not include a library that the Rakefile uses.
As an aside, IronRuby does target 1.8.6 compatiblity.
我想说你需要在 ruby 1.8.7 安装中安装 gem pathname2 。
I would say that you need to install the gem pathname2 in your ruby 1.8.7 install.