Not able to install it on Windows7
maku opened this issue · 18 comments
When I try to install it with "npm install grunt-angular-gettext" on a Windows 7 / 64 system I get the following error:
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or
2) install Microsoft Visual Studio 2008. [D:\temp\angular-gettext-example-master\node_modules\grunt-angular-gettext\node_modules\jquery\node_modules\contextify\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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:\temp\angular-gettext-example-master\node_modules\grunt-angular-gettext\node_modules\jquery\node_modules\contextify
gyp ERR! node -v v0.10.19
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
This issue isn't specific to grunt-angular-gettext
, it's the contextify
module, which is a dependency of jquery
that can't be installed.
There's a clue on what to do in the error message:
MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or
2) install Microsoft Visual Studio 2008.
Let me know if that helps you further.
Funny:
- I have .NET installed (4.0)
- I have MS Visual Studio installed (2012)
It is no option to do great experiments in this area...
Further: on executing "npm install grunt-angular-gettext --save-dev" it is required to have a python version < 3.0
This is also not really good because I have a python version 3.x installed.
So I really like the concept behind your lib. But from my point of view it is not ready to use it in a comfortable way. At least when I have to use Windows and whe it has to run on serveral developer machines...
From a Node based tool I expect no troubles (means no further software installation and so on)
On 30 Sep 2013, at 08:42, Martin notifications@github.com wrote:
Funny:
- I have .NET installed (4.0)
- I have MS Visual Studio installed (2012)
It is no option to do great experiments in this area...
Further: on executing "npm install grunt-angular-gettext --save-dev" it is required to have a python version < 3.0
This is also not really good because I have a python version 3.x installed.Hmmm, where does that come from? Could you paste the error related to that? Can't recall a need for Python.
So I really like the concept behind your lib. But from my point of view it is not ready to use it in a comfortable way. At least when I have to use Windows and whe it has to run on serveral developer machines...
From a Node based tool I expect no troubles (means no further software installation and so on)
It shouldn't give any trouble and you are absolutely correct in expecting that. However, this isn't really caused by grunt-angular-gettext, it seems to be an install issue with the contextify
module.
Probably best to open an issue here: https://github.com/brianmcd/contextify/issues
I'd love to help debugging this, but I currently do not have access to a Windows machine with a developer environment set up.
In the long run, I'll have a look at getting rid of that dependency alltogether.
Ruben Vermeersch
Rocketeer
Phone: +32.495338869
It does not make sense to investigate further options. node-gyp (which is used by contextify) requires python 2.7 and Visual Studio 2010 on windows systems.
I have to decide the solution for the text/translation problem rather soon. So I guess I have to use angular-translate (although I find your approach easier to use and better to maintain)
This might be a good replacement for jQuery: https://github.com/component/dom
Does not require any native dependencies and should solve the same problem.
jQuery is only used in the extractHtml
function, so it should be trivial to swap it out. I don't have time to look into this right now, so if you need that, you'll have to give it a go (if all the unit tests keep working, it should be good).
Putting it on my calendar for soon though. You're not the first to run into this problem and I want it fixed.
Great
Oh no that won't work, it's a client-side package. Wrapping it in jsdom
will require contextify
again.
I would really advise you to ping the contextify
maintainer, this could be a very trivial problem with an easy fix.
O.k., I created an issue (brianmcd/contextify#90)
But I don't think that a solution can be expected....
Let's see
Have you seen this page? https://github.com/brianmcd/contextify/wiki/Windows-Installation-Guide
On 30 Sep 2013, at 11:05, Martin notifications@github.com wrote:
O.k., I created an issue (brianmcd/contextify#90)
But I don't think that a solution can be expected....
Let's see—
Reply to this email directly or view it on GitHub.
Ruben Vermeersch
Rocketeer
Phone: +32.495338869
Yeah I've seen it (https://github.com/brianmcd/contextify/wiki/Windows-Installation-Guide). But it is no option to install it on every developer machine. I don't want such heavyweight dependencies
Understandable. If you happen to run into a good DOM parser without a dependency on contextify
, I'll happily switch it over.
Yeah, thank you for your commitment
This might be an option: https://github.com/MatthewMueller/cheerio
@maku I've switched the DOM parser so there's no longer any dependency on contextify
. You should have no problems installing on Windows as soon as I release the new version (which I will do in a minute).
Released 0.1.0
.
Great I'll give it a try tomorrow...
Now it works as expected. Thank you....