Skip to content

install error under windows seven #146

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

Closed
guironne opened this issue Jul 5, 2012 · 2 comments
Closed

install error under windows seven #146

guironne opened this issue Jul 5, 2012 · 2 comments

Comments

@guironne
Copy link

guironne commented Jul 5, 2012

D:\nodejs>npm install pg
npm http GET https://registry.npmjs.org/pg
npm http 304 https://registry.npmjs.org/pg
npm http GET https://registry.npmjs.org/generic-pool/1.0.9
npm http 304 https://registry.npmjs.org/generic-pool/1.0.9

pg@0.8.0 install D:\nodejs\node_modules\pg
node-gyp rebuild || (exit 0)

D:\nodejs\node_modules\pg>node "C:\Program Files\nodejs\node_modules\npm\bin\nod
e-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
binding.cc
c:\users\shouk.node-gyp\0.8.1\src\node_object_wrap.h(57): warning C4251: 'node
::ObjectWrap::handle_' : class 'v8::Persistent' nécessite une interface DLL
pour être utilisé(e) par les clients de class 'node::ObjectWrap' [D:\nodejs\nod
e_modules\pg\build\binding.vcxproj]
with
[
T=v8::Object
]
..\src\binding.cc(117): warning C4800: 'int' : valeur forcée à la valeur boolée
nne 'true' ou 'false' (avertissement sur les performances) [D:\nodejs\node_modu
les\pg\build\binding.vcxproj]
..\src\binding.cc(387): error C2065: 'EV_ERROR' : identificateur non déclaré [D
:\nodejs\node_modules\pg\build\binding.vcxproj]
..\src\binding.cc(398): error C2065: 'EV_READ' : identificateur non déclaré [D:
\nodejs\node_modules\pg\build\binding.vcxproj]
..\src\binding.cc(437): error C2065: 'EV_WRITE' : identificateur non déclaré [D
:\nodejs\node_modules\pg\build\binding.vcxproj]
gyp ERR! rebuild error Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msb uild.exe failed with exit code: 1
gyp ERR! rebuild error at ChildProcess.onExit (C:\Program Files\nodejs\node_
modules\npm\node_modules\node-gyp\lib\build.js:214:23)
gyp ERR! rebuild error at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! rebuild error at Process._handle.onexit (child_process.js:674:10)
gyp ERR! not ok
pg@0.8.0 node_modules\pg
└── generic-pool@1.0.9

D:\nodejs>

@brianc
Copy link
Owner

brianc commented Jul 5, 2012

That's an error message spit out by node-gyp trying to build the bindings to libpq. They don't work on windows. node-postgres will still work, but you have to use the pure JavaScript bindings.

The install is actually successful, it just shows the errors from the build failure.

@brianc brianc closed this as completed Jul 5, 2012
@guironne
Copy link
Author

guironne commented Jul 6, 2012

thank you. Indeed the pure javascript works!
Envoyé depuis un mobile Samsung

a écrit :

That's an error message spit out by node-gyp trying to build the bindings to libpq.  They don't work on windows. node-postgres will still work, but you have to use the pure JavaScript bindings. 

The install is actually successful, it just shows the errors from the build failure.


Reply to this email directly or view it on GitHub:
#146 (comment)

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

2 participants