Closed khuongduybui closed 10 years ago
They are of STD, so take out "tr1/".
Compiled after changing to below:
unordered_map.hpp
unordered_set.hpp
I'm having the same problem on Windows 8.1 64 bit with Visual Studio 2013 Express. It looks like the above comment is a solution, but I don't understand, what does it mean: "They are of STD, so take out tr1/" ?
I'm actually trying to do npm install winston-fluent
from https://github.com/sakamoto-san/winston-fluent
Which depends on msgpack, and when its building msgpack, I get the error:
c:\projects\myapp\node_modules\winston-fluent\node_modules\fluent-logger\node_modules\msgpack\deps\msgpack\msgpack\type/tr1/unordered_map.hpp(22) : fatal error C1083: Cannot open include file: 'tr1/unordered_map': No such file or directory (..\..\..\deps\msgpack\object.cpp) [c:\projects\myapp\node_modules\winston-fluent\node_modules\fluent-logger\node_modules\msgpack\build\deps\msgpack\libmsgpack.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\app\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:797:12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\app\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\projects\myapp\node_modules\winston-fluent\node_modules\fluent-logger\node_modules\msgpack
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! msgpack@0.2.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the msgpack@0.2.2 install script.
npm ERR! This is most likely a problem with the msgpack package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
Can you try this?
To:
C:\downloadFolder\msgpack-node\deps\msgpack\msgpack\type\tr1\unordered_set.hpp Change:
To:
npm install
Thanks for the reply. Here's what I ended up doing, because I was trying to use winston-fluent, which depends on fluent-logger, which in turn depends on msgpack:
tr1/
from unordered map and set .hpp files (verifying build works locally with Microsoft Visual Studio 2013 Express and also ran all tests)npm shrinkwrap --dev
in my other project using winston-fluent, modified the nested dependency on msgpack to point to gzip tarball from my forkAnd now it works. Thanks for your help :-)
I will happily take pull requests that fix the issue without breaking other ports.
I submitted pull request #16. Thanks.
Could #16 be merged and pushed to npm? Same issue currently breaking npm install zerorpc
for me, ran through the steps above and it worked.
All merged up, version bumped, tagged, pushed to all mirrored repos, and published to npm. Thanks for the fix @htaox!
I'm using Windows 8.1 x64. I have Visual Studio 2013 (Ultimate), VC++ redistributable 2005, 2008, 2011, both x86 and x64.
EDIT: node version: 0.10.26, npm version: 1.4.3
When trying to
npm install msgpack
, I received the following errors: