找不到 vcvarsall.bat [英] unable to find vcvarsall.bat

查看:190
本文介绍了找不到 vcvarsall.bat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道还有一个关于它的问题这里 已经,但我无法遵循答案.根据这个答案,我只需要添加一个变量.但是,我不知道变量的创建位置和位置.通常,我只处理文件和文件夹,所以我不知道如何添加变量.由于我认为该变量可能在 bat 文件中,所以我查看了 vcvarsall.bat、vsvars32.bat 和 vsDevCmd.bat.在后两个文件中,我发现行说 set VS110COMNTOOLS=,所以在我把 @set VS90COMNTOOLS= C:\Program Files\Microsoft Visual Studio 11.0\Common7\Tools 后直接放在行上\ 正如答案所说.然而,同样的错误发生了.我尝试安装 Visual Studio 2010,因为答案是 2010,但由于我已经安装了 VS 2012,所以我无法安装.

I know there's another question about it here already, but I can't follow the answer. According to this answer, I just need to add a variable. However, i don't know where the variable is created and where it's located. Normally, I work with files and folders only, so i don't know how to get add a variable. Since i thought the variable might be inside the bat files, i looked in vcvarsall.bat, vsvars32.bat, and vsDevCmd.bat. In the latter two files, i found lines saying set VS110COMNTOOLS=, so on the line directly after i put @set VS90COMNTOOLS= C:\Program Files\Microsoft Visual Studio 11.0\Common7\Tools\ as the answer said. However, the same error occured. I tried to install Visual Studio 2010 as the answer is for 2010, but since i already have VS 2012 i wasn't able to.

总而言之,环境变量到底在哪里 VS10COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\?谢谢!

To summarize, where is exactly is the environment variable VS10COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\ ? Thanks!

抱歉,我将 VS 11 与 2011 混淆了

edit: sorry i confused VS 11 with 2011

推荐答案

将变量 VS110COMNTOOLS 设置为 [...]Microsoft Visual Studio 11.0\Common7\Tools\

在一些 qt 项目中使用 vc 编译器时遇到了同样的问题.您必须将每个丢失的文件复制到 [...]Microsoft Visual Studio 11.0\Common7\Tools\ 文件夹.

Had the same problem in some qt project while using vc compiler. You have to copy each missing file to [...]Microsoft Visual Studio 11.0\Common7\Tools\ folder.

只是:- 读取新错误- 复制位于 [...]Microsoft Visual Studio 11.0\VC\ 文件夹中的丢失文件

Just: - Read new error - copy the missing file located somewhere in [...]Microsoft Visual Studio 11.0\VC\ folder

直到没有错误

您在您的案例 (VS2011) 中使用了 VS110VS100VS90,即 VS110

You used VS110, VS100 and VS90 in your case (VS2011) that would be VS110

这篇关于找不到 vcvarsall.bat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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