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

node cannot load app with libpq referenced #50

Open
jayrosen1576 opened this issue Feb 20, 2017 · 3 comments
Open

node cannot load app with libpq referenced #50

jayrosen1576 opened this issue Feb 20, 2017 · 3 comments

Comments

@jayrosen1576
Copy link

I have a very simple node script in index.js:

//var libpq = require('libpq');
console.log("hello");

uncommenting the libpq statement causes the following error when starting node:

o:\Projects\my-app\node_modules\bindings\bindings.js:83
        throw e
        ^

Error: The operating system cannot run %1.
\\?\o:\Projects\my-app\node_modules\libpq\build\Release\addon.no
de
    at Error (native)
    at Object.Module._extensions..node (module.js:597:18)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at bindings (o:\Projects\my-app\node_modules\bindings\bindin
gs.js:76:44)
    at Object.<anonymous> (o:\Projects\my-app3\node_modules\libpq
\index.js:1:108)
    at Module._compile (module.js:570:32)

I have tried a node-gyp rebuild, rebuilt the libpq solution manually in Visual Studio all to no avail. I have postgresql running so there's no problem there either. No idea where to go from here.

Btw, I'm on Windows 7 32-bit.

@kolya-ay
Copy link

Probably the same problem here. @jayrosen1576 had you resolved this?

@jayrosen1576
Copy link
Author

nope. no feedback and no resolution.

@brianc
Copy link
Owner

brianc commented Sep 14, 2017

Hmm sorry about that - I don't currently support windows so you're kinda on your own with resolving that one! If you find anything feel free to report back, open PR, whatever you'd like! Best of luck! Also: you can just use the JavaScript client...it's plenty fast and even faster in some situations.

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