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

Please make iojs and bson works together on Windows x64 #1245

Closed
alanpurple opened this issue Mar 24, 2015 · 13 comments
Closed

Please make iojs and bson works together on Windows x64 #1245

alanpurple opened this issue Mar 24, 2015 · 13 comments

Comments

@alanpurple
Copy link

Why has this problem never solved?
Is this some kind of mission impossible?
node-gyp for iojs doesn't work.....and never updated since for several month ago

At least could you make bson.node for iojs and windows x64? and of course give us a link..

Please~

@mscdex
Copy link
Contributor

mscdex commented Mar 24, 2015

It builds just fine for me on Windows 7 64-bit, VS 2013, iojs 1.3.0, bson 0.2.21. Running the example in the bson readme works too.

@alanpurple
Copy link
Author

Right.........
Then maybe this is the problem with Windows 8.1 x64

@mscdex
Copy link
Contributor

mscdex commented Mar 24, 2015

@alanpurple I just tried on Windows 8 64-bit, VS 2012, iojs 1.6.2, same bson version. It builds fine and the readme example also works.

@Fishrock123
Copy link
Member

@alanpurple can we get an error log maybe? What version of bson and what version of io.js?

@alanpurple
Copy link
Author

Okay now I'm about to try again...
@Fishrock123 bson version 0.2.18, iojs 1.4.x

Even I don't know how to make node-gyp work for iojs....(I just modified node-gyp source code for iojs)

And I finally got module error from iojs console

@Fishrock123
Copy link
Member

@alanpurple You'll need to use the node-gyp that ships with io.js. Here's the floating patch we still need to apply each time npm updates: 269e46b

Also, you need to use at least bson 0.2.19: https://github.com/mongodb/js-bson/releases/tag/V0.2.19

@Fishrock123
Copy link
Member

See also #456 -- native packages either require NAN 1.6+, or updated native bindings to run on io.js (or even node 0.12)

@alanpurple
Copy link
Author

@Fishrock123 sorry I use 0.2.19 and I successfully built node.js version(which means I know what to do)

And of coursse I know there is iojs version of node-gyp https://github.com/rvagg/node-gyp/
and that didn't work at all and rvagg knows this because I told him

@Fishrock123
Copy link
Member

@alanpurple can you try using both the latest io.js and bson, using the node-gyp that comes with io.js? (not quite rvagg/node-gyp iirc)

(Also, please post an error log)

@alanpurple
Copy link
Author

@Fishrock123 Yeah I moved the node-gyp folder in iojs program files folder to username\AppData\Roaming\npm\node-modules and I built bson.node and again I got this message

[Error: Module did not self-register.]
js-bson: Failed to load c++ bson extension, using pure JS version

@mscdex
Copy link
Contributor

mscdex commented Mar 24, 2015

@alanpurple Are you using iojs or node to start your script? You need to use the former on Windows at the moment because of the way the node alias is created on Windows.

@alanpurple
Copy link
Author

@mscdex Thanks!!!!!!!! with iojs.exe the message is gone

and sorry for all this noise, I could'n find solution anywhere

@Fishrock123
Copy link
Member

Related to #751 -- sorry I didn't point you there sooner.

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

3 participants