在 Windows XP、Ruby 1.9.2p180 和 devkit 上安装 padrino-cache gem 时出错

发布于 2024-11-04 03:16:42 字数 348 浏览 4 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

帝王念 2024-11-11 03:16:42

问题是 gem 以及它的规范(清单)是如何生成的。

您可以看到 gem 内容执行 gem spec padrino-cache -v 0.9.25 files

您将看到类似这样的内容:

- test/tmp/#<class:0x108b3b4e8>/cache/%2Ffoo
- test/tmp/#<class:0x108b3b588>/cache/%2Ffoo
- test/tmp/#<class:0x108b3b718>/cache/%2Ffoo
- test/tmp/#<class:0x108b46640>/cache/test
- test/tmp/#<class:0x108b5fdc0>/cache/test
- test/tmp/#<class:0x108b60c98>/cache/bar
- test/tmp/#<class:0x108b60c98>/cache/foo
- test/tmp/#<class:0x108b61b20>/cache/test

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:

- test/tmp/#<class:0x108b3b4e8>/cache/%2Ffoo
- test/tmp/#<class:0x108b3b588>/cache/%2Ffoo
- test/tmp/#<class:0x108b3b718>/cache/%2Ffoo
- test/tmp/#<class:0x108b46640>/cache/test
- test/tmp/#<class:0x108b5fdc0>/cache/test
- test/tmp/#<class:0x108b60c98>/cache/bar
- test/tmp/#<class:0x108b60c98>/cache/foo
- test/tmp/#<class:0x108b61b20>/cache/test

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

假面具 2024-11-11 03:16:42

此问题已在修补程序版本 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文