gpt4 book ai didi

ruby - Grit 是否适用于 Windows 7?

转载 作者:太空宇宙 更新时间:2023-11-03 16:34:45 25 4
gpt4 key购买 nike

我在最后一天尝试使用 Ruby gem git(版本 1.2.5),但我不确定它是否运行良好。我偶然发现了 grit,它更活跃,但无法在 Windows 7 下运行。您是否在 Windows 7 下使用过 grit,尤其是使用方法状态添加和其他?

我的工作环境:

  • Windows 7 64 位
  • ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
    • git 1.2.5
    • 勇气 2.4.1
  • 我只在 shell/IRB 环境中使用了这两个,以了解其中一个是否适合。然后我希望将它集成到我的 Rails 应用程序中(作为 Rake 任务的一部分)。

最佳答案

不幸的是,此时您的问题的答案显然是“否”。 grit gem需要 posix-spawn gem,根据 project page , 目前不支持 Windows:

Potentially portable - abstracts lower-level process and stream management APIs so the class can be made to work on platforms like Java and Windows where UNIX process spawning and stream APIs are not supported.

上面的关键是“可以在像... Windows 这样的平台上工作”

关于ruby - Grit 是否适用于 Windows 7?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9554556/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com