在 Windows XP、Ruby 1.9.2p180 和 devkit 上安装 padrino-cache gem 时出错
gem update padrino-cache
Updating installed gems
Updating padrino-cache
ERROR: While executing gem ... (Errno::EINVAL)
Invalid argument - C:/Ruby192/lib/ruby/gems/1.9.1/gems/padrino-cache-0.9.25/test/tmp/#<class:0x0000010084e5a8>
ruby -v
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
知道如何解决这个问题吗?
谢谢你!
gem update padrino-cache
Updating installed gems
Updating padrino-cache
ERROR: While executing gem ... (Errno::EINVAL)
Invalid argument - C:/Ruby192/lib/ruby/gems/1.9.1/gems/padrino-cache-0.9.25/test/tmp/#<class:0x0000010084e5a8>
ruby -v
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
Any idea on how to fix this?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题是 gem 以及它的规范(清单)是如何生成的。
您可以看到 gem 内容执行
gem spec padrino-cache -v 0.9.25 files
您将看到类似这样的内容:
Gem 中包含的文件包含冒号,在 Windows 上用于指示驱动器号且 不允许作为文件名的一部分。
我建议将此问题报告给 Padrino Framework 错误跟踪器:
https://github.com/padrino/padrino-框架/问题
The problem is the gem and how it's specification (manifest) was generated.
You can see the gem contents doing
gem spec padrino-cache -v 0.9.25 files
You will see something like this:
The files included in the gem contains colons, which is used on Windows to indicate drive letters and are not allowed as part of file name.
I will recommend report this to Padrino Framework bug tracker:
https://github.com/padrino/padrino-framework/issues
此问题已在修补程序版本 0.9.26 中修复。在这里阅读更多信息:http://www.padrinorb.com/blog /padrino-0-9-26-hotfix-release
This has been fixed in hotfix release 0.9.26. Read more here: http://www.padrinorb.com/blog/padrino-0-9-26-hotfix-release