Skip to content
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

Can't build - node-gyp problem? #31

Closed
rbarkas opened this issue Oct 13, 2014 · 2 comments
Closed

Can't build - node-gyp problem? #31

rbarkas opened this issue Oct 13, 2014 · 2 comments

Comments

@rbarkas
Copy link

rbarkas commented Oct 13, 2014

When I try to install pm2-web I get the following error. Am I doing something wrong?

sudo npm install -g pm2-web

ws@0.4.32 install /usr/local/lib/node_modules/pm2-web/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /usr/local/lib/node_modules/pm2-web/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory/usr/local/lib/node_modules/pm2-web/node_modules/ws/build'

mdns2@2.1.4 install /usr/local/lib/node_modules/pm2-web/node_modules/mdns2
node-gyp rebuild

make: Entering directory /usr/local/lib/node_modules/pm2-web/node_modules/mdns2/build' CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o In file included from ../src/dns_sd.cpp:1:0: ../src/mdns.hpp:31:20: fatal error: dns_sd.h: No such file or directory #include <dns_sd.h> ^ compilation terminated. make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1 make: Leaving directory/usr/local/lib/node_modules/pm2-web/node_modules/mdns2/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.13.0-36-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/pm2-web/node_modules/mdns2
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm WARN optional dep failed, continuing mdns2@2.1.4
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.32","npm":"1.4.28"})
/usr/local/bin/pm2-web -> /usr/local/lib/node_modules/pm2-web/bin/pm2-web.sh
pm2-web@1.7.8 /usr/local/lib/node_modules/pm2-web
├── wildemitter@1.0.1
├── zepto-browserify@1.1.3-0
├── html-entities@1.1.1
├── minimist@1.1.0
├── mustache@0.8.2
├── semver@3.0.1
├── method-override@2.2.0 (vary@1.0.0, methods@1.1.0, parseurl@1.3.0, debug@2.0.0)
├── ansi-to-html@0.2.0 (entities@1.1.1)
├── wantsit@1.3.2 (toarray@0.0.1, check-types@1.3.2)
├── pm2-interface@1.1.0 (debug@2.0.0, pm2-axon-rpc@0.2.1, axon@2.0.0)
├── underscore.string@2.3.3
├── ws@0.4.32 (tinycolor@0.0.1, options@0.0.6, commander@2.1.0, nan@1.0.0)
├── winston@0.7.3 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, colors@0.6.2, async@0.2.10, pkginfo@0.3.0, request@2.16.6)
├── express@3.17.7 (basic-auth@1.0.0, merge-descriptors@0.0.2, fresh@0.2.4, cookie@0.1.2, escape-html@1.0.1, range-parser@1.0.2, cookie-signature@1.0.5, vary@1.0.0, media-typer@0.3.0, methods@1.1.0, parseurl@1.3.0, depd@0.4.5, crc@3.0.0, commander@1.3.2, debug@2.0.0, proxy-addr@1.0.3, send@0.9.3, mkdirp@0.5.0, connect@2.26.5)
├── jade@1.7.0 (character-parser@1.2.0, commander@2.1.0, void-elements@1.0.0, mkdirp@0.5.0, constantinople@2.0.1, transformers@2.1.0, monocle@1.1.51, with@3.0.1)
├── cjson@0.3.0 (jsonlint@1.6.0)
└── moment@2.8.3

@achingbrain
Copy link
Owner

pm2-web has installed on your system but it's failed to compile mdns2 along the way.

If failed because you don't have dns_sd.h on your system. Depending on your distro you may be able to get it by running something like:

apt-get install libavahi-compat-libdnssd-dev

In practical terms mdns2 lets pm2-web advertise itself to the local network via Bonjour (Avahi on Linux). The dependency is optional so if you don't care about this functionality the error is safe to ignore.

@rbarkas
Copy link
Author

rbarkas commented Oct 13, 2014

Thanks, that did the trick

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