Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error C1083: Cannot open include file: 'unistd.h': No s uch file or directory #14

Closed
abanoub-nasser opened this issue Mar 9, 2017 · 1 comment

Comments

@abanoub-nasser
Copy link

(py35) C:\Users\Batman>easy_install dukpy
Searching for dukpy
Reading https://pypi.python.org/simple/dukpy/
Downloading https://pypi.python.org/packages/37/ac/b0bb18515ada37defe2d2a44471fc
114264c3c5f435b4d2d23432537c239/dukpy-0.1.0.tar.gz#md5=09c90bf96c552b33d99a11911
cff8d0a
Best match: dukpy 0.1.0
Processing dukpy-0.1.0.tar.gz
Writing C:\Users\Batman\AppData\Local\Temp\easy_install-0ykfkg6z\dukpy-0.1.0\set
up.cfg
Running dukpy-0.1.0\setup.py -q bdist_egg --dist-dir C:\Users\Batman\AppData\Loc
al\Temp\easy_install-0ykfkg6z\dukpy-0.1.0\egg-dist-tmp-tf5yv703
duktape.c
_support.c
src_support.c(1): fatal error C1083: Cannot open include file: 'unistd.h': No s
uch file or directory
error: Setup script exited with error: command 'C:\Program Files (x86)\Microso
ft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

@abanoub-nasser abanoub-nasser changed the title atal error C1083: Cannot open include file: 'unistd.h': No s uch file or directory fatal error C1083: Cannot open include file: 'unistd.h': No s uch file or directory Mar 9, 2017
@abanoub-nasser
Copy link
Author

Problem solved
I created unistd.h from the most popular answer here
http://stackoverflow.com/questions/341817/is-there-a-replacement-for-unistd-h-for-windows-visual-c

and downloaded getopt.h and getopt.c from here
http://www.codeproject.com/Articles/157001/Full-getopt-Port-for-Unicode-and-Multibyte-Microso

and I put them into C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\

if that error showed up to you "c:\users\batman\anaconda3\envs\py35\include\pyconfig.h(193): error C2632: '__int
64' followed by 'int' is illegal
c:\users\batman\anaconda3\envs\py35\include\pyconfig.h(193): warning C4091: 'typ
edef ': ignored on left of '__int64' when no variable is declared"

CHANGE line 193 in pyconfig.h to typedef signed __int64 int64_t;
cuz you can't leave the compiler to decide the default signed or unsigned datatype

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant