Skip to content

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

Closed

Description

@alanpurple

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~

Activity

  1. mscdex commented on Mar 24, 2015

    @mscdex
    Contributor

    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.

  2. alanpurple commented on Mar 24, 2015

    @alanpurple
    Author

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

  3. mscdex commented on Mar 24, 2015

    @mscdex
    Contributor

    @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.

  4. Fishrock123 commented on Mar 24, 2015

    @Fishrock123
    Contributor

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

  5. alanpurple commented on Mar 24, 2015

    @alanpurple
    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

  6. Fishrock123 commented on Mar 24, 2015

    @Fishrock123
    Contributor

    @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

  7. Fishrock123 commented on Mar 24, 2015

    @Fishrock123
    Contributor

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

  8. alanpurple commented on Mar 24, 2015

    @alanpurple
    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

  9. Fishrock123 commented on Mar 24, 2015

    @Fishrock123
    Contributor

    @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)

  10. alanpurple commented on Mar 24, 2015

    @alanpurple
    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

  11. mscdex commented on Mar 24, 2015

    @mscdex
    Contributor

    @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.

  12. alanpurple commented on Mar 25, 2015

    @alanpurple
    Author

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

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

  13. Fishrock123 commented on Mar 25, 2015

    @Fishrock123
    Contributor

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

  14. added a commit that references this issue on Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions