/ bin / sh:cl:在cygwin中找不到usig make命令

时间:2018-11-07 20:08:26

标签: windows makefile cygwin

我正在Windows 7计算机上使用Intel Pin。根据Pin用户指南的建议,我下载了Cygwin,其中包含所需的软件包,例如gcc,g ++和make,但是当我尝试执行命令“ make”以构建一个工具时(在这种情况下为Insmix,与任何其他Pin工具相同),出现以下错误:

make[1]: Entering directory '/cygdrive/c/Users/IEUser/Downloads/pin-3.2-81205-msvc-windows/source/tools/Insmix'

cl /MT /EHs- /EHa- /wd4530 /DTARGET_WINDOWS /DBIGARRAY_MULTIPLIER=1 /nologo /Gy /Oi- /GR- /GS- /D__PIN__=1 /DPIN_CRT=1 /D_WINDOWS_H_PATH_="" /D__i386__ /DTARGET_IA32 /DHOST_IA32  /I../../../source/include/pin /I../../../source/include/pin/gen -I../../../extras/stlport/include -I../../../extras -I../../../extras/libstdc++/include -I../../../extras/crt/include -I../../../extras/crt -I../../../extras/crt/include/arch-x86 -I../../../extras/crt/include/kernel/uapi -I../../../extras/crt/include/kernel/uapi/asm-x86 /FIinclude/msvc_compat.h /I../../../extras/components/include /I../../../extras/xed-ia32/include/xed /I../../../source/tools/InstLib /O2  /c /Foobj-ia32/insmix.obj insmix.cpp

**/bin/sh: cl: command not found**

make[1]: *** [../../../source/tools/Config/makefile.default.rules:192: obj-ia32/insmix.obj] Error 127

我尝试对Google进行搜索,但均未成功。有人知道如何解决此问题吗?

非常感谢您的帮助

1 个答案:

答案 0 :(得分:0)

cl 几乎是一种Microsoft工具。安装一些Visual Studio版本,然后在C:\Program Files\Microsoft Visual Studio\...\bin\ bin 目录中的某个位置具有该 cl 工具,现在在环境Path变量中设置该目录。瞧这样可行。