Skip to content

Problem installing on Windows #165

@jjeffery

Description

@jjeffery

I am unable to install on Windows. I'm a bit new at this, but it looks like binding.cc is using some constants from evlib (EV_READ, EV_WRITE, EV_ERROR), but the windows build does not have access to these constants.

See following session for details.

I understand that not everyone is interested in the Windows port. If you are able to point me in the right direction, I am happy to have a go at resolving this, but I am a bit stuck at the moment.

C:\Users\john> 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

> [email protected] install C:\Users\john\node_modules\pg
> node-gyp rebuild || (exit 0)


C:\Users\john\node_modules\pg>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild 
  binding.cc
c:\users\john\.node-gyp\0.8.5\src\node_object_wrap.h(57): warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>' needs to have dll-interface to be used by clients of class 'node::ObjectWrap' [C:\Users\john\node_modules\pg\build\binding.vcxproj]
          with
          [
              T=v8::Object
          ]
..\src\binding.cc(117): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\john\node_modules\pg\build\binding.vcxproj]
..\src\binding.cc(383): error C2065: 'EV_ERROR' : undeclared identifier [C:\Users\john\node_modules\pg\build\binding.vcxproj]
..\src\binding.cc(394): error C2065: 'EV_READ' : undeclared identifier [C:\Users\john\node_modules\pg\build\binding.vcxproj]
..\src\binding.cc(433): error C2065: 'EV_WRITE' : undeclared identifier [C:\Users\john\node_modules\pg\build\binding.vcxproj]
gyp ERR! build error 
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:215:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\john\node_modules\pg
gyp ERR! node -v v0.8.5
gyp ERR! node-gyp -v v0.6.3
gyp ERR! not ok 
[email protected] node_modules\pg
??? [email protected]

C:\Users\john>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions