在windows xp,ruby 1.9.2p180和devkit上安装padrino-cache gem时出错

时间:2011-04-28 19:12:01

标签: ruby windows install padrino

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]

有关如何解决这个问题的想法吗?

谢谢!

2 个答案:

答案 0 :(得分:0)

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

您可以看到正在执行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-framework/issues

答案 1 :(得分:0)

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