【问题标题】:How to run mono commands in msysgit?如何在 msysgit 中运行单声道命令?
【发布时间】:2015-08-11 08:18:00
【问题描述】:

我在 msysgit 控制台中运行单声道 CLI 命令时遇到问题。它在 Mono 安装程序添加的 windows 命令提示符下工作正常。我已经注意了单声道命令提示符中的path env 变量,并将C:\Program Files (x86)\Mono\bin\; 添加到我的系统路径的开头(并重新启动了 msysgit)。

尝试运行xbuild 时出现以下错误:

/c/Program Files (x86)/Mono/bin/xbuild: line 2: cygpath: command not found Cannot open assembly 'xbuild.exe': No such file or directory.

我从 msysgit 中缺少什么来帮助 mono 的 CLI 工具更好地工作?

【问题讨论】:

  • mono-sgen.exe --version 有效吗? xbuild 等命令只是 shell 脚本包装器,所以最好先排除它。

标签: command-line mono msysgit


【解决方案1】:

Windows 的 Mono 是用 cygwin + mingw (see Mono compile guide) 构建的。 我不确定它是否与 msys 完全兼容。从错误来看,我猜是路径有问题。您可能需要 cygpath.exe 在来自following link 的路径中。您可能应该从 Cygwin 或 cmd 调用 mono(通过 bat 提供的文件)。
即使 windows 的 mono 是用 mingw 编译的(因此不应该依赖于 cygwin),从你的错误中,我们可以看到仍然存在 cygwin 依赖项。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-26
    • 2012-02-20
    • 1970-01-01
    • 1970-01-01
    • 2014-05-11
    • 1970-01-01
    相关资源
    最近更新 更多