'cl'不被识别为内部或外部命令 [英] 'cl' is not recognized as an internal or external command

查看:87
本文介绍了'cl'不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我在Windows7中对编译器运行"scons"时的错误消息:

Below is the error message when I run "scons" to compiler in windows7:

-----------------------------------------------------------------------------------
'cl' is not recognized as an internal or external command,
operable program or batch file.
scons: *** [out\windows-x86-MD-unicode-vs2008-rel\obj-static\src\featuresets\ada                                      pters\im-history\AddToChatRoomHistoryVisitor.obj] Error 1
scons: building terminated because of errors.
-----------------------------------------------------------------------------------

我已经添加了环境变量的路径,但是仍然遇到了这个问题.

I have added path to environment variables already, but still met this problem.

以下是环境变量的PATH信息:

Below is the PATH info of environment variables:

--------------------------------------------------------------------------------------------
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v
1.0\;C:\Program Files\CREDANT\Shield v7.1\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Fil
es\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Python27;C:\cygwin64\bin
;C:\Python27\scons-2.3.1;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program File
s\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Progra
m Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Python27\Scripts;C:\Program Files (x86)\Microso
ft Visual Studio 10.0\VC\lib;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include
--------------------------------------------------------------------------------------------

推荐答案

cl.exe可执行文件的位置不在系统 PATH 环境变量中.

The location of the cl.exe executable is not in the system PATH environment variable.

换句话说,已要求cmd.exe命令行处理器运行cl.exe可执行文件,但找不到它.它不在 PATH 中或未安装.

In other words the cmd.exe command line processor has been asked to run the cl.exe executable but it can't find it. It is either not in the PATH or not installed.

我已经添加了环境变量的路径,但是仍然遇到了这个问题.

I have added path to environment variables already, but still met this problem.

要对此进行测试,请打开命令提示符并输入:

To test this open a command prompt and type in:

cl.exe-?

这篇关于'cl'不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆