3 ms·
I just tried to install node on cygwin and it failed with this error: ------ src/uv-cygwin.c:33: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this functi
by RyanMcGreal 15y ago
I just tried to install node on cygwin and it failed with this error:
------
src/uv-cygwin.c:33: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
src/uv-cygwin.c:33: error: (Each undeclared identifier is reported only once
src/uv-cygwin.c:33: error: for each function it appears in.)
make[1]: * [src/uv-platform.o] Error 1
- rbanffy 15y agoI have abandoned Windows again a couple years back, but, from my experience, most stuff that compiles cleanly under Linux, compiles cleanly under Cygwin. Do you have the required libraries? What did configure say? Can you try an older version (one known to work) to see if it compiles?
- klaruz 15y agoI think you need cygwin 1.7.6 or newer to support CLOCK_MONOTONIC: http://www.cygwin.com/cygwin-ug-net/ov-new1.7.html http://www.cygwin.com/cygwin-ug-net/ov-new1.7.html
- bnoordhuis 15y agoIt's been fixed in master. 0.5.2 comes out tomorrow (if all goes well) and will also contain the fix. https://github.com/joyent/libuv/issues/112 https://github.com/joyent/libuv/issues/112 for details.
- RyanMcGreal 15y agoThank you - that's great news. I'll keep an eye out for it.
- jjm 15y agoJust a note, I use Node across Linux, OSX, and Cygwin on windows. I have zero problems with a NPM lib of 40+ modules. Everything from connect to bcrypt.