Closed wzup closed 7 years ago
@smfreegard
Nope, it doesn't help. Do you have any other advice?
@smfreegard
Actual I have a question. All the answers in that SO question imply that the user has or has to install MS Visual Studio. This flag implies Visual Studio installed, doesn't it?
--msvs_version=2012
My question is. Can we install Haraka without installing VS? MS offers all build tools as standalone downloads https://www.microsoft.com/en-in/download/details.aspx?id=48159. Aren't they all the same tools used in VS? How may I install Haraka having all MSBuild tools installed?
It doesn't imply VisualStudio, just the build tools as you have found in your link.
I suspect if you install the 2015 build tools, you'll need --msvs_version=2015
instead.
I've never used Haraka on Windows (thankfully), so others might know a better answer to this then me.
Maybe try running: npm install --global --production windows-build-tools
On Wed, Nov 16, 2016 at 8:53 AM, Steve Freegard notifications@github.com wrote:
It doesn't imply VisualStudio, just the build tools as you have found in your link. I suspect if you install the 2015 build tools, you'll need --msvs_version=2015 instead.
I've never used Haraka on Windows (thankfully), so others might know a better answer to this then me.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/haraka/Haraka/issues/1721#issuecomment-260951802, or mute the thread https://github.com/notifications/unsubscribe-auth/AAobY35KzZPZdzAcS3WS1ru1N8P07Yilks5q-wrsgaJpZM4Kzuf2 .
I eventually succeeded to install Haraka.
First off, I don't have any ms visual studio installed. And didn't want to install it. I have installed two MS Build Tools. But just installing them doesn't solve the issue.
BuildTools_Full_2013.exe
BuildTools_Full_2015.exe
I had Python 2.7, had it in my PATH, but it doesn't solve the issue either.
This is what I did to solve the issue. From here https://github.com/nodejs/node-gyp
npm install --global --production windows-build-tools
The installation process took long time, about 25 mins.
It created a directory in my home/
dir: ~/.windows-build-tools/
and populated it with a lot of files (see screenshot below).
It also installed its own Python 2.7 in that directory. In spite of I already have Python 2.7 installed. It set its Python as a variable in global npm config file C:\Users\user\AppData\Roaming\npm\etc\npmrc
python=C:\Users\user\.windows-build-tools\python27\python.exe
I also had this settings in my local .npmrc
. But I'm not sure if it was set by windows-build-tools
. I think I set them by myself manually while trying out different approaches. Delete or set them if anything.
C:\Users\user\.npmrc
python=python2.7
msvs_version=2015
It also created Microsoft.Cpp/
directory in C:\Program Files (x86)\MSBuild\
. Before there was no such directory there:
Then I ran the command and Haraka was installed all right at last.
$ npm i -g Haraka
As you can see from the scroll bar it is only half of the files that windows-build-tools
installation created.
None of those answers and advises were helpful, didn't work for me. Probably, they'll be helpful for others. http://stackoverflow.com/a/22411007/1114926 http://stackoverflow.com/a/16854333/1114926 http://stackoverflow.com/a/21421759/1114926 https://github.com/kin9puppy/vcbuildFixForNode https://github.com/nodejs/node-gyp/issues/972 and many more out there
Just useful links. They shed light on the matter: https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md https://github.com/nodejs/node-gyp/issues/629 https://github.com/felixrieseberg/windows-build-tools
Thanks for the follow-up wzup; I'll put some Windows instructions in the README later.
system info
node: v6.3.1 Windows 10 Pro x64-based npm: 3.10.3
Expected behavior
Haraka installs globally.
Observed behavior
Steps to reproduce