SCons,MSys,“未被识别为内部或外部命令”错误

时间:2012-01-11 22:27:42

标签: python scons msys

我正在尝试使用SCons在Windows 7上设置一个用于编译的项目。在MSys shell中,我cd到相应的文件夹并运行:

scons target=setup

...我得到以下输出:

scons: Reading SConscript files ...
SCons 2.0.1
OS="'{' is not recognized as an internal or external command,
operable program or batch file."
Compiler version check failed - need gcc 3.x or later:
CC: gcc None
CXX: g++ None

目录中SConscript文件的开头是:

import os, sys, commands, string
from makeversion import get_version
# OS Detection:
OS = commands.getoutput('uname')

在我看来,最后一行是错误的来源。为什么我会收到错误以及如何解决?

0 个答案:

没有答案