iliakan / iliakan/node-dev

npm install fails building inotify

Open
#2 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
38
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I'm not sure if this is a node-dev issue or a inotify issue?

$ npm install dev -g

inotify@0.1.6 install /Users/dale/local/node/lib/node_modules/dev/node_modules/inotify
node-waf configure build

Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /Users/dale/local/node
Checking for program node : /Users/dale/local/node/bin/node
Checking for function inotify_init : not found
'configure' finished successfully (0.845s)
Waf: Entering directory `/Users/dale/local/node/lib/node_modules/dev/node_modules/inotify/build'
[1/3] cxx: src/bindings.cc -> build/default/src/bindings_1.o
[2/3] cxx: src/node_inotify.cc -> build/default/src/node_inotify_1.o
In file included from ../src/bindings.h:4,
from ../src/bindings.cc:2:
../src/node_inotify.h:7:25: error: sys/inotify.h: No such file or directory
In file included from ../src/bindings.h:4,
from ../src/node_inotify.cc:2:
../src/node_inotify.h:7:25: error: sys/inotify.h: No such file or directory
../src/bindings.cc: In static member function ‘static void NodeInotify::Inotify::Initialize(v8::Handle)’:
../src/bindings.cc:34: error: ‘IN_ACCESS’ was not declared in this scope
../src/bindings.cc:35: error: ‘IN_ATTRIB’ was not declared in this scope
../src/bindings.cc:38: error: ‘IN_CLOSE_WRITE’ was not declared in this scope
../src/bindings.cc:39: error: ‘IN_CLOSE_NOWRITE’ was not declared in this scope
../src/bindings.cc:40: error: ‘IN_CREATE’ was not declared in this scope
../src/bindings.cc:41: error: ‘IN_DELETE’ was not declared in this scope
../src/bindings.cc:42: error: ‘IN_DELETE_SELF’ was not declared in this scope
../src/bindings.cc:43: error: ‘IN_MODIFY’ was not declared in this scope
../src/bindings.cc:44: error: ‘IN_MOVE_SELF’ was not declared in this scope
../src/bindings.cc:45: error: ‘IN_MOVED_FROM’ was not declared in this scope
../src/bindings.cc:46: error: ‘IN_MOVED_TO’ was not declared in this scope
../src/bindings.cc:47: error: ‘IN_OPEN’ was not declared in this scope
../src/bindings.cc:48: error: ‘IN_IGNORED’ was not declared in this scope
../src/bindings.cc:51: error: ‘IN_ISDIR’ was not declared in this scope
../src/bindings.cc:52: error: ‘IN_Q_OVERFLOW’ was not declared in this scope
../src/bindings.cc:53: error: ‘IN_UNMOUNT’ was not declared in this scope
../src/bindings.cc:54: error: ‘IN_ALL_EVENTS’ was not declared in this scope
../src/bindings.cc:56: error: ‘IN_ONLYDIR’ was not declared in this scope
../src/bindings.cc:57: error: ‘IN_DONT_FOLLOW’ was not declared in this scope
../src/bindings.cc:58: error: ‘IN_ONESHOT’ was not declared in this scope
../src/bindings.cc:59: error: ‘IN_MASK_ADD’ was not declared in this scope
../src/bindings.cc:62: error: ‘IN_CLOSE’ was not declared in this scope
../src/bindings.cc:63: error: ‘IN_MOVE’ was not declared in this scope
../src/bindings.cc: In static member function ‘static v8::Handle NodeInotify::Inotify::New(const v8::Arguments&)’:
../src/bindings.cc:113: error: ‘IN_NONBLOCK’ was not declared in this scope
../src/bindings.cc:113: error: ‘IN_CLOEXEC’ was not declared in this scope
../src/bindings.cc:113: error: ‘inotify_init1’ was not declared in this scope
../src/bindings.cc: In static member function ‘static v8::Handle NodeInotify::Inotify::AddWatch(const v8::Arguments&)’:
../src/bindings.cc:162: error: ‘IN_ALL_EVENTS’ was not declared in this scope
../src/bindings.cc:180: error: ‘inotify_add_watch’ was not declared in this scope
../src/bindings.cc: In static member function ‘static v8::Handle NodeInotify::Inotify::RemoveWatch(const v8::Arguments&)’:
../src/bindings.cc:203: error: ‘inotify_rm_watch’ was not declared in this scope
../src/bindings.cc: In static member function ‘static void NodeInotify::Inotify::Callback(ev_io*, int)’:
../src/bindings.cc:245: error: invalid application of ‘sizeof’ to incomplete type ‘NodeInotify::inotify_event’
../src/bindings.cc:247: error: invalid application of ‘sizeof’ to incomplete type ‘NodeInotify::inotify_event’
../src/bindings.cc:258: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
../src/bindings.cc:259: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
../src/bindings.cc:260: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
../src/bindings.cc:262: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
../src/bindings.cc:263: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
../src/bindings.cc:268: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
../src/bindings.cc:274: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
../src/bindings.cc:274: error: ‘IN_IGNORED’ was not declared in this scope
../src/bindings.cc:276: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
../src/bindings.cc:284: error: invalid application of ‘sizeof’ to incomplete type ‘NodeInotify::inotify_event’
../src/bindings.cc:284: error: invalid use of incomplete type ‘struct NodeInotify::inotify_event’
../src/bindings.cc:245: error: forward declaration of ‘struct NodeInotify::inotify_event’
Waf: Leaving directory`/Users/dale/local/node/lib/node_modules/dev/node_modules/inotify/build'
Build failed:
-> task failed (err #1):
{task: cxx bindings.cc -> bindings_1.o}
-> task failed (err #1):
{task: cxx node_inotify.cc -> node_inotify_1.o}
npm ERR! error installing inotify@0.1.6 Error: inotify@0.1.6 install: `node-waf configure build`
npm ERR! error installing inotify@0.1.6 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing inotify@0.1.6 at ChildProcess. (/Users/dale/local/node/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing inotify@0.1.6 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing inotify@0.1.6 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! error installing dev@0.1.3 Error: inotify@0.1.6 install: `node-waf configure build`
npm ERR! error installing dev@0.1.3 `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing dev@0.1.3 at ChildProcess. (/Users/dale/local/node/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing dev@0.1.3 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing dev@0.1.3 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! inotify@0.1.6 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the inotify@0.1.6 install script.
npm ERR! This is most likely a problem with the inotify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls inotify
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.7.0
npm ERR! command "node" "/Users/dale/local/node/bin/npm" "install" "dev" "-g"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/dale/Dropbox/Documents/WebApps/JeffersonSoftware/npm-debug.log
npm not ok

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce `npm install dev -g` on Darwin 10.7.0 and begin with the `node-waf configure build` failure for `inotify@0.1.6`. Read `src/bindings.cc`, `src/node_inotify.cc`, and `src/node_inotify.h` to determine whether the failure belongs to node-dev or its inotify dependency; done means the reported installation failure is resolved or clearly attributed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.