【问题标题】:error installing padrino-cache gem on windows xp, ruby 1.9.2p180 and devkit在 windows xp、ruby 1.9.2p180 和 devkit 上安装 padrino-cache gem 时出错
【发布时间】:2011-04-28 19:12:01
【问题描述】:
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]

知道如何解决这个问题吗?

谢谢!

【问题讨论】:

    标签: ruby windows installation padrino


    【解决方案1】:

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

    你可以在gem spec padrino-cache -v 0.9.25 files看到gem内容

    你会看到这样的:

    - 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-framework/issues

    【讨论】:

      【解决方案2】:

      此问题已在修补程序版本 0.9.26 中得到修复。在这里阅读更多:http://www.padrinorb.com/blog/padrino-0-9-26-hotfix-release

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-05-05
        • 2013-04-24
        • 2013-04-22
        • 1970-01-01
        • 2021-05-03
        • 1970-01-01
        相关资源
        最近更新 更多