Skip to content

Error when running "npm install ."  #5

@larsenglund

Description

@larsenglund

So, since my attempts to get this running on windows went unanswered I set up an Ubuntu box and did as the README suggested (git clone and then npm install .).
But I get this error:

> node-gyp rebuild

make: Entering directory `/home/lars/node_rrd/build'
  CXX(target) Release/obj.target/rrd_bindings/src/node_rrd_create.o
../src/node_rrd_create.cc: In function ‘v8::Handle<v8::Value> node_rrd::create(const v8::Arguments&)’:
../src/node_rrd_create.cc:76:79: error: invalid conversion from ‘void (*)(uv_work_t*) {aka void (*)(uv_work_s*)}’ to ‘uv_after_work_cb {aka void (*)(uv_work_s*, int)}’ [-fpermissive]
In file included from /home/lars/.node-gyp/0.10.18/src/node.h:61:0,
                 from ../src/node_rrd.h:28,
                 from ../src/node_rrd_create.cc:27:
/home/lars/.node-gyp/0.10.18/deps/uv/include/uv.h:1432:15: error:   initializing argument 4 of ‘int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)’ [-fpermissive]
make: *** [Release/obj.target/rrd_bindings/src/node_rrd_create.o] Error 1
make: Leaving directory `/home/lars/node_rrd/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.8.0-30-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/lars/node_rrd
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

Looks like an error in your code?

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