I'm trying to host https://github.com/spark/spark-server on a Windows Server 2012 R2 box.
I installed git, node and python. When I get to the npm install
step, I get the following message:
MSBUILD : error MBS3428: Could not load the Visual C++ component
"VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2)
install Microsoft Visual Studio 2005 or 3) add the location of the
component to the system path if it is installed elsewhere.
[C:\nodejs\spark-server\js\mode_modules\ursa\build\binding.sln]
This isn't a dev box and I really don't want to install either. But if I do, I'd rather not install outdated SDKs and IDEs. What is the recommended way to deal with this?
EDIT: Found the answer. Install:
- Visual Studio 2013 Express for Windows Desktop
- Latest 64-bit version of OpenSSL
- Full version, not the light version
- Install to
C:\OpenSSL-Win64
(this is hardcoded in the ursa package) - May need to first install the VC++ 2008 runtime from the link in the OpenSSL list; the installer will tell you.
Best Answer
Some node packages incorporate native code and therefore must be compiled for the target system, so you need to have a compiler installed.
The free version of Visual Studio Express 2013 for Windows (not for Web) should be sufficient.
Once installed, run your installation within the Visual Studio Command Prompt (x64), and with a slight modification:
The real path of least resistance, of course, is to deploy to a Linux server. While the same is true of Linux, that you usually need a compiler, many distributions provide precompiled packages for the more popular software.