Skip to content
New issue

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

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

Already on GitHub? # to your account

expat.h not found for Windows install #47

Closed
hochang opened this issue Sep 4, 2012 · 8 comments
Closed

expat.h not found for Windows install #47

hochang opened this issue Sep 4, 2012 · 8 comments

Comments

@hochang
Copy link

hochang commented Sep 4, 2012

With v1.6.1, expat should adapt Windows platform easier than before. However, while trying to install node-expat on Windows, I have encountered error:

S:\WorkSpaces\joyent\node_modules\node-expat>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
node-expat.cc
..\node-expat.cc(6): fatal error C1083: Cannot open include file: 'expat.h': No such file or directory [S:\WorkSpaces\joyent\node_modules\node-expat\build\node_expat.vcxproj]
gypnpm ERR! node-expat@1.6.1 install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the node-expat@1.6.1 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.

Is there a solution or workaround for this problem?
Thanks

@astro
Copy link
Collaborator

astro commented Sep 25, 2012

I don't have Windows but it works for others. Where's your expat.h located?

@hochang
Copy link
Author

hochang commented Sep 25, 2012

I don't know what package, or prerequisite I should install on windows machine to have expat.h. Searched online for quite a while without a solution.

@astro
Copy link
Collaborator

astro commented Sep 27, 2012

It's http://www.libexpat.org/

@astro
Copy link
Collaborator

astro commented Oct 4, 2012

Would you give #48 a try?

@hochang
Copy link
Author

hochang commented Oct 4, 2012

Awesome, will give a try.

@hochang
Copy link
Author

hochang commented Oct 8, 2012

Can compile on windows. Have not run yet.

@cdhunt
Copy link

cdhunt commented Jan 7, 2013

@hochang Can you detail the steps you took? Did you use the win32 installer or extract the source?

@hochang
Copy link
Author

hochang commented Jan 8, 2013

I had installed expat using installer

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

3 participants