Skip to content

Instantly share code, notes, and snippets.

@sentientwaffle
Created March 15, 2012 01:05
Show Gist options
  • Save sentientwaffle/2040917 to your computer and use it in GitHub Desktop.
Save sentientwaffle/2040917 to your computer and use it in GitHub Desktop.
Error installing hook.io
$ npm install hook.io -g [40/1895]
> mdns@0.0.5 preinstall /home/x/local/lib/node_modules/hook.io/node_modules/mdns
> node-waf clean || true; node-waf configure build
> weak@0.1.5 preinstall /home/x/local/lib/node_modules/hook.io/node_modules/weak
> node build.js
Nothing to clean (project not configured)
Setting srcdir to : /home/x/local/lib/node_modules/hook.io/node_modules/
mdns
x@borg6:~/.stratus/development/projects/dj/feed66$ npm install hook.io -g
> weak@0.1.5 preinstall /home/x/local/lib/node_modules/hook.io/node_modules/weak
> node build.js
> mdns@0.0.5 preinstall /home/x/local/lib/node_modules/hook.io/node_modules/mdns
> node-waf clean || true; node-waf configure build
Nothing to clean (project not configured)
Nothing to clean (project not configured)
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 : ok /home/x/.node_libraries
Checking for node prefix : ok /home/x/local
'configure' finished successfully (0.022s)
Waf: Entering directory `/home/x/local/lib/node_modules/hook.io/node_modules/weak/build'
[1/2] cxx: src/weakref.cc -> build/default/src/weakref_1.o
Setting srcdir to : /home/x/local/lib/node_modules/hook.io/node_modules/mdns
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 : ok /home/x/.node_libraries
Checking for node prefix : ok /home/x/local
Checking for header dns_sd.h : not found
/home/x/local/lib/node_modules/hook.io/node_modules/mdns/wscript:28: error: the configuration failed (see '/home/x/local/lib/node_modules/hook.io/node_modules/mdns/out/config.log')
npm ERR! error installing mdns@0.0.5 Error: mdns@0.0.5 preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing mdns@0.0.5 `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing mdns@0.0.5 at ChildProcess.<anonymous> (/home/x/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing mdns@0.0.5 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing mdns@0.0.5 at ChildProcess.onexit (child_process.js:192:12)
npm ERR! error installing hook.io@0.8.7-1 Error: mdns@0.0.5 preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing hook.io@0.8.7-1 `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing hook.io@0.8.7-1 at ChildProcess.<anonymous> (/home/x/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing hook.io@0.8.7-1 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing hook.io@0.8.7-1 at ChildProcess.onexit (child_process.js:192:12)
[2/2] cxx_link: build/default/src/weakref_1.o -> build/default/weakref.node
npm ERR! mdns@0.0.5 preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the mdns@0.0.5 preinstall script.
npm ERR! This is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || true; node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls mdns
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.32-39-generic
npm ERR! command "node" "/home/x/local/bin/npm" "install" "hook.io" "-g"
npm ERR! cwd /home/x/.stratus/development/projects/dj/feed66
npm ERR! node -v v0.4.9
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
/usr/bin/ld: cannot open output file /home/x/local/lib/node_modules/hook.io/node_modules/weak/build/default/weakref.node: No such file or directory
collect2: ld returned 1 exit status
Traceback (most recent call last):
File "/home/x/local/bin/node-waf", line 16, in <module>
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/home/x/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/home/x/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/home/x/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/home/x/local/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/home/x/local/bin/../lib/node/wafadmin/Scripting.py", line 408, in build_impl
info("Waf: Leaving directory `%s'" % bld.bldnode.abspath())
File "/home/x/local/bin/../lib/node/wafadmin/Node.py", line 420, in abspath
ret = self.__class__.bld.cache_node_abspath[variant].get(self.id, None)
AttributeError: 'NoneType' object has no attribute 'cache_node_abspath'
npm ERR! error installing weak@0.1.5 Error: ENOENT, No such file or directory '/home/x/local/lib/node_modules/hook.io/node_modules/weak/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/x/.stratus/development/projects/dj/feed66/npm-debug.log
npm not ok
@sentientwaffle
Copy link
Author

I ran sudo aptitude install libavahi-compat-libdnssd-dev, which fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment