question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node_curve.cc error Cannot open include file: 'unistd.h': No such file or directory

See original GitHub issue

…\node_curve.cc(6): fatal error C1083: Cannot open include file: ‘unistd.h’: No such file or directory 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:269:23) gyp ERR! stack at ChildProcess.emit (events.js:110:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12) gyp ERR! System Windows_NT 6.1.7600 gyp ERR! command “node” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild” gyp ERR! cwd C:\Program Files\nodejs\node_modules\homebridge-master\node_modules\HAP-NodeJS\node_modules\curve25519 gyp ERR! node -v v0.12.7 gyp ERR! node-gyp -v v2.0.1 gyp ERR! not ok

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
KhaosTcommented, Aug 19, 2016

I’ll try to build in different configuration and ensure it didn’t break the build. I’ll merge the change after that.

0reactions
baysingercommented, Aug 19, 2016

I tried removing the #include of unistd.h from node_curve.cc, and it seems to work just fine that way. I don’t know why it was there in the first place. This should eliminate the need for the workaround of creating a unistd.h.

I submitted a pull request to KhaosT/node-curve25519. Maybe I should submit it to volschin/node-curve25519, as well? (KhaosT forked it from volschin.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot open include file: 'unistd.h': No such file or directory
h> on a Windows 7 SP1 plateform and using Visual Studio Ultimate 2013. But at build time, I'm getting this error: C1083: Cannot...
Read more >
[Solved] cannot open source file "unistd.h" - CodeProject
When using Windows, you may try to comment out the lines where it is included. You will probably get some errors then about...
Read more >
Compile error on Windows: cannot include 'unistd.h' · Issue #362
h(475): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory (compiling source file C:\Users\bradn\Documents\Music ...
Read more >
cannot open source file unistd.h error - MSDN - Microsoft
I just installed Visual Studio 2017, and now I am getting an error when I open a project in Visual Studio 2015 that...
Read more >
unistd.h on Windows – everything you need to know - LinuxPip
Common error messages include "Cannot open include file: 'unistd.h': No such file or directory". While you can replace or implement some of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found