Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot install node modules that require compilation on Windows 7 x64/VS2012
    primarykey
    data
    text
    <p>I cannot install any of the modules that require compilation. All they fail with the following error:</p> <pre><code>MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". ... </code></pre> <p>My environment:</p> <ul> <li>Windows 7 Enterprise x64, version 6.1.7601</li> <li>node x86 0.8.16</li> <li>npm 1.2.0</li> <li>node-gyp 0.8.2</li> <li>Visual Studio 2012 and numerous packages</li> </ul> <p>Related environment variables:</p> <pre><code>Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShel l\v1.0;C:\Program Files\TortoiseGit\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;c:\tools;c:\tools\node </code></pre> <p>No INCLUDE, LIB, LIBPATH, etc.</p> <p>I did a short investigation of the issue and figure out that with the following setup the manual compilation (calling VCBuild.exe and msbuild.exe directly) succeed for the manually cloned git://github.com/einaros/ws.git:</p> <pre><code>SET Configuration=Release SET PATH=%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\vcpackages SET PATH=%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\bin;%PATH% SET PATH=%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\Common7\IDE;%PATH% SET PATH=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Bin;%PATH% SET PATH=%SystemRoot%\system32;%PATH% SET INCLUDE=%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\include SET INCLUDE=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Include;%INCLUDE% SET LIB=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A\Lib SET LIB=%ProgramFiles(x86)%\Microsoft Visual Studio 11.0\VC\lib;%LIB% SET MSBUILD="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" VCBuild.exe C:\Tools\node\ws\build\bufferutil.vcproj "Release|Win32" /useenv VCBuild.exe C:\Tools\node\ws\build\validation.vcproj "Release|Win32" /useenv %MSBUILD% build/binding.sln /verbosity:diagnostic /nologo /p:Configuration=Release;Platform=Win32 </code></pre> <p>I've tried to call node-gyp with the same variables and it failed:</p> <pre><code>C:\!&gt; git clone https://github.com/einaros/ws.git C:\!&gt; cd ws C:\!\ws&gt;node-gyp configure ... C:\!\ws&gt;node-gyp build gyp info it worked if it ends with ok gyp info using node-gyp@0.8.2 gyp info using node@0.8.16 | win32 | ia32 gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe gyp info spawn args [ 'build/binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=Win32' ] Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. C:\Users\User\.node-gyp\0.8.16\deps\uv\include\uv.h(55): fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory [C:\!\ ws\build\binding.sln] C:\Users\User\.node-gyp\0.8.16\deps\uv\include\uv.h(55): fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory [C:\!\ ws\build\binding.sln] gyp ERR! build error gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (c:\Tools\node\node_modules\node-gyp\lib\build.js:255:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17) gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "c:\\Tools\\node\\\\node.exe" "c:\\Tools\\node\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" gyp ERR! cwd C:\!\ws gyp ERR! node -v v0.8.16 gyp ERR! node-gyp -v v0.8.2 gyp ERR! not ok </code></pre> <p>Maybe you will have some ideas about it?</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload