Install fails Centos #50

Closed
jbrumwell opened this Issue Dec 3, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@jbrumwell

I get the following while trying to npm install mdns

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install', 'mdns' ]
2 info using npm@1.1.66
3 info using node@v0.8.15
4 verbose read json /root/node-tests/package.json
5 verbose read json /root/node-tests/node_modules/vitals/package.json
6 verbose read json /root/node-tests/node_modules/test/package.json
7 verbose read json /root/node-tests/node_modules/should/package.json
8 verbose read json /root/node-tests/package.json
9 verbose cache add [ 'mdns', null ]
10 silly cache add name=undefined spec="mdns" args=["mdns",null]
11 verbose parsed url { pathname: 'mdns', path: 'mdns', href: 'mdns' }
12 silly lockFile 5e6f4f79-mdns mdns
13 verbose lock mdns /root/.npm/5e6f4f79-mdns.lock
14 silly lockFile 5e6f4f79-mdns mdns
15 verbose addNamed [ 'mdns', '' ]
16 verbose addNamed [ null, '' ]
17 silly lockFile 5f1e5f16-mdns mdns@
18 verbose lock mdns@ /root/.npm/5f1e5f16-mdns.lock
19 silly addNameRange { name: 'mdns', range: '', hasData: false }
20 verbose url raw mdns
21 verbose url resolving [ 'https://registry.npmjs.org/', './mdns' ]
22 verbose url resolved https://registry.npmjs.org/mdns
23 info trying registry request attempt 1 at 20:01:38
24 verbose etag "7WBHGETKNT1GCWJ9KQT3ASHNM"
25 http GET https://registry.npmjs.org/mdns
26 http 304 https://registry.npmjs.org/mdns
27 silly registry.get cb [ 304,
27 silly registry.get   { server: 'CouchDB/1.2.0 (Erlang OTP/R15B)',
27 silly registry.get     etag: '"7WBHGETKNT1GCWJ9KQT3ASHNM"',
27 silly registry.get     date: 'Mon, 03 Dec 2012 01:00:56 GMT',
27 silly registry.get     'content-length': '0' } ]
28 verbose etag mdns from cache
29 silly addNameRange number 2 { name: 'mdns', range: '', hasData: true }
30 silly addNameRange versions [ 'mdns', [ '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7' ] ]
31 verbose addNamed [ 'mdns', '0.0.7' ]
32 verbose addNamed [ '0.0.7', '0.0.7' ]
33 silly lockFile 7006f484-mdns-0-0-7 mdns@0.0.7
34 verbose lock mdns@0.0.7 /root/.npm/7006f484-mdns-0-0-7.lock
35 verbose read json /root/.npm/mdns/0.0.7/package/package.json
36 silly lockFile 7006f484-mdns-0-0-7 mdns@0.0.7
37 silly lockFile 5f1e5f16-mdns mdns@
38 silly resolved [ { name: 'mdns',
38 silly resolved     version: '0.0.7',
38 silly resolved     description: 'multicast DNS service discovery',
38 silly resolved     main: './lib/mdns.js',
38 silly resolved     scripts: { test: 'utils/testrun', install: 'node-gyp rebuild' },
38 silly resolved     keywords: [ 'zeroconf', 'bonjour', 'dns_sd', 'mDNSResponder' ],
38 silly resolved     devDependencies:
38 silly resolved      { ejs: '*',
38 silly resolved        less: '*',
38 silly resolved        mkdirp: '*',
38 silly resolved        nopt: '*',
38 silly resolved        slide: '*',
38 silly resolved        glob: '*',
38 silly resolved        ncp: '*',
38 silly resolved        minimatch: '*' },
38 silly resolved     repository: { type: 'git', url: 'http://github.com/agnat/node_mdns.git' },
38 silly resolved     homepage: 'http://agnat.github.com/node_mdns',
38 silly resolved     bugs: { url: 'http://github.com/agnat/node_mdns/issues' },
38 silly resolved     licenses: [ [Object] ],
38 silly resolved     author: { name: 'David Siegel', email: 'david@artcom.de' },
38 silly resolved     contributors: [ [Object], [Object], [Object], [Object] ],
38 silly resolved     gypfile: true,
38 silly resolved     readme: 'h1. mdns -- node.js Service Discovery\n\n|_. Package:       | mdns |\n|_. Description:   | multicast DNS service discovery |\n|_. Version:       | 0.0.7 |\n|_. Installation:  | @npm install mdns@ |\n|_. Documentation: | "mdns user guide":http://agnat.github.com/node_mdns/user_guide.html |\n|_. License:       | "MIT":http://github.com/agnat/node_mdns/blob/master/LICENSE |\n\nmdns adds multicast DNS service discovery, also known as zeroconf or bonjour to "node.js":/joyent/node. It provides an object based interface to announce and browse services on the local network.\n\nh2. Synopsis\n\nbc.. // import the module\nvar mdns = require(\'mdns\');\n\n// advertise a http server on port 4321\nvar ad = mdns.createAdvertisement(mdns.tcp(\'http\'), 4321);\nad.start();\n\n// watch all http servers\nvar browser = mdns.createBrowser(mdns.tcp(\'http\'));\nbrowser.on(\'serviceUp\', function(service) {\n  console.log("service up: ", service);\n});\nbrowser.on(\'serviceDown\', function(service) {\n  console.log("service down: ", service);\n});\nbrowser.start();\n\n// discover all available service types\nvar all_the_types = mdns.browseThemAll(); // all_the_types is just another browser...\n\nh2. Installation\n\nmdns is available as a npm package:\n\nbc. npm install mdns\n\nOn Linux and other systems using the avahi daemon the avahi dns_sd compat library and its header files are required.  On debianesque systems the package name is @libavahi-compat-libdnssd-dev@.  On other platforms Apples "mDNSResponder":http://opensource.apple.com/tarballs/mDNSResponder/ is recommended. Care should be taken not to install more than one mDNS stack on a system. \n\nIf you want to play with the latest source code, here is a more manual approach:\n\nbc.. git clone http://github.com/agnat/node_mdns\ncd node_mdns\nnpm link && npm test\n\nh2. Documentation\n\nSee the "user guide":http://agnat.github.com/node_mdns/user_guide.html.\n\nh2. Contributors\n\n... in random order:\n\n* Orlando Vazquez ("@orlandov":http://github.com/orlandov)\n* Ryan Dahl ("@ry":http://github.com/ry)\n* Dominic Tarr ("@dominictarr":http://github.com/dominictarr)\n* Emil Stenqvist ("@emilisto":http://github.com/emilisto)\n\nYour name is missing on the list? Shame on me. Please open an issue.\n\nh2. Bugs and Contributions\n\nIf you find a bug, please report it using the "issue tracker":http://github.com/agnat/node_mdns/issues.\n\n<!-- vim: set linebreak filetype=textile spell spelllang=en_us : -->\n',
38 silly resolved     readmeFilename: 'README.textile',
38 silly resolved     _id: 'mdns@0.0.7',
38 silly resolved     _from: 'mdns' } ]
39 info install mdns@0.0.7 into /root/node-tests
40 info installOne mdns@0.0.7
41 verbose from cache /root/.npm/mdns/0.0.7/package/package.json
42 info /root/node-tests/node_modules/mdns unbuild
43 verbose read json /root/node-tests/node_modules/mdns/package.json
44 verbose tar unpack /root/.npm/mdns/0.0.7/package.tgz
45 silly lockFile 9f1d2d5e-oot-node-tests-node-modules-mdns /root/node-tests/node_modules/mdns
46 verbose lock /root/node-tests/node_modules/mdns /root/.npm/9f1d2d5e-oot-node-tests-node-modules-mdns.lock
47 silly gunzTarPerm modes [ '755', '644' ]
48 silly gunzTarPerm extractEntry package.json
49 silly gunzTarPerm extractEntry .npmignore
50 silly gunzTarPerm extractEntry LICENSE
51 silly gunzTarPerm extractEntry CHANGES
52 silly gunzTarPerm extractEntry examples/express_app.js
53 silly gunzTarPerm extractEntry tests/test_dns_sd.js
54 silly gunzTarPerm extractEntry tests/test_odd_ends.js
55 silly gunzTarPerm extractEntry tests/test_functional.js
56 silly gunzTarPerm extractEntry tests/test_service_type.js
57 silly gunzTarPerm extractEntry binding.gyp
58 silly gunzTarPerm extractEntry src/txt_record_buffer_to_object.cpp
59 silly gunzTarPerm extractEntry src/dns_service_get_addr_info.cpp
60 silly gunzTarPerm extractEntry src/txt_record_create.cpp
61 silly gunzTarPerm extractEntry src/skeleton.cpp_
62 silly gunzTarPerm extractEntry src/mdns_utils.cpp
63 silly gunzTarPerm extractEntry src/dns_service_browse.cpp
64 silly gunzTarPerm extractEntry src/txt_record_deallocate.cpp
65 silly gunzTarPerm extractEntry src/dns_service_process_result.cpp
66 silly gunzTarPerm extractEntry src/dns_service_ref_deallocate.cpp
67 silly gunzTarPerm extractEntry src/winsock_watcher.hpp
68 silly gunzTarPerm extractEntry src/dns_sd.cpp
69 silly gunzTarPerm extractEntry src/dns_service_ref.cpp
70 silly gunzTarPerm extractEntry src/dns_service_enumerate_domains.cpp
71 silly gunzTarPerm extractEntry src/mdns.hpp
72 silly gunzTarPerm extractEntry src/mdns_settings.hpp
73 silly gunzTarPerm extractEntry src/demangle.cpp
74 silly gunzTarPerm extractEntry src/dns_service_ref_sock_fd.cpp
75 silly gunzTarPerm extractEntry src/txt_record_set_value.cpp
76 silly gunzTarPerm extractEntry src/mdns_utils.hpp
77 silly gunzTarPerm extractEntry src/txt_record_ref.hpp
78 silly gunzTarPerm extractEntry src/dns_service_ref.hpp
79 silly gunzTarPerm extractEntry src/winsock_watcher.cpp
80 silly gunzTarPerm extractEntry src/txt_record_ref.cpp
81 silly gunzTarPerm extractEntry src/dns_service_register.cpp
82 silly gunzTarPerm extractEntry src/txt_record_get_length.cpp
83 silly gunzTarPerm extractEntry src/dns_service_resolve.cpp
84 silly gunzTarPerm extractEntry lib/dns_sd.js
85 silly gunzTarPerm extractEntry lib/mdns_service.js
86 silly gunzTarPerm extractEntry lib/browser.js
87 silly gunzTarPerm extractEntry lib/advertisement.js
88 silly gunzTarPerm extractEntry lib/resolver_sequence_tasks.js
89 silly gunzTarPerm extractEntry lib/io_watcher.js
90 silly gunzTarPerm extractEntry lib/mdns.js
91 silly gunzTarPerm extractEntry lib/service_type.js
92 silly gunzTarPerm extractEntry utils/coverage
93 silly gunzTarPerm extractEntry utils/docpack
94 silly gunzTarPerm extractEntry utils/render_report
95 silly gunzTarPerm extractEntry utils/testrun
96 silly gunzTarPerm extractEntry utils/lib/ncov.js
97 silly gunzTarPerm extractEntry utils/lib/lcov.js
98 silly gunzTarPerm extractEntry utils/lib/bunch.js
99 silly gunzTarPerm extractEntry utils/lib/view.js
100 silly gunzTarPerm extractEntry utils/lib/actors.js
101 silly gunzTarPerm extractEntry utils/lib/compiler.js
102 silly gunzTarPerm extractEntry utils/lib/obj.js
103 silly gunzTarPerm extractEntry utils/lib/mdns_test.js
104 silly gunzTarPerm extractEntry utils/jsf
105 silly gunzTarPerm extractEntry Makefile
106 silly gunzTarPerm extractEntry wscript
107 silly gunzTarPerm extractEntry node-waf.bat
108 silly gunzTarPerm extractEntry README.textile
109 verbose read json /root/node-tests/node_modules/mdns/package.json
110 silly lockFile 9f1d2d5e-oot-node-tests-node-modules-mdns /root/node-tests/node_modules/mdns
111 info preinstall mdns@0.0.7
112 verbose from cache /root/node-tests/node_modules/mdns/package.json
113 verbose readDependencies using package.json deps
114 verbose from cache /root/node-tests/node_modules/mdns/package.json
115 verbose readDependencies using package.json deps
116 silly resolved []
117 verbose about to build /root/node-tests/node_modules/mdns
118 info build /root/node-tests/node_modules/mdns
119 verbose from cache /root/node-tests/node_modules/mdns/package.json
120 verbose linkStuff [ false, false, false, '/root/node-tests/node_modules' ]
121 info linkStuff mdns@0.0.7
122 verbose linkBins mdns@0.0.7
123 verbose linkMans mdns@0.0.7
124 verbose rebuildBundles mdns@0.0.7
125 info install mdns@0.0.7
126 verbose unsafe-perm in lifecycle false
127 silly exec sh "-c" "node-gyp rebuild"
128 silly sh,-c,node-gyp rebuild,/root/node-tests/node_modules/mdns spawning
129 info mdns@0.0.7 Failed to exec install script
130 info /root/node-tests/node_modules/mdns unbuild
131 verbose from cache /root/node-tests/node_modules/mdns/package.json
132 info preuninstall mdns@0.0.7
133 info uninstall mdns@0.0.7
134 verbose true,/root/node-tests/node_modules,/root/node-tests/node_modules unbuild mdns@0.0.7
135 info postuninstall mdns@0.0.7
136 error mdns@0.0.7 install: `node-gyp rebuild`
136 error `sh "-c" "node-gyp rebuild"` failed with 1
137 error Failed at the mdns@0.0.7 install script.
137 error This is most likely a problem with the mdns package,
137 error not with npm itself.
137 error Tell the author that this fails on your system:
137 error     node-gyp rebuild
137 error You can get their info via:
137 error     npm owner ls mdns
137 error There is likely additional logging output above.
138 error System Linux 2.6.32-279.14.1.el6.x86_64
139 error command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "mdns"
140 error cwd /root/node-tests
141 error node -v v0.8.15
142 error npm -v 1.1.66
143 error code ELIFECYCLE
144 verbose exit [ 1, true ]
@agnat

This comment has been minimized.

Show comment
Hide comment
@agnat

agnat Dec 3, 2012

Owner

Hm, according to this log node-gyp rebuild failed. Unfortunately the output from gyp and the compiler is missing. That makes it impossible to see what's wrong. However, the most common cause for build issues (on linux) is not having the required libraries and header files installed. I don't know centos but if it is using avahi you need the avahi dns_sd compat library. On debian, ubuntu and the like the package is called libavahi-compat-libdnssd-dev.

Hope this helps.

Owner

agnat commented Dec 3, 2012

Hm, according to this log node-gyp rebuild failed. Unfortunately the output from gyp and the compiler is missing. That makes it impossible to see what's wrong. However, the most common cause for build issues (on linux) is not having the required libraries and header files installed. I don't know centos but if it is using avahi you need the avahi dns_sd compat library. On debian, ubuntu and the like the package is called libavahi-compat-libdnssd-dev.

Hope this helps.

@jbrumwell

This comment has been minimized.

Show comment
Hide comment
@jbrumwell

jbrumwell Dec 3, 2012

Thank you, the following worked for me;

yum install avahi avahi-compat-libdns_sd avahi-compat-libdns_sd-devel

On Sun, Dec 2, 2012 at 8:18 PM, David Siegel notifications@github.comwrote:

Hm, according to this log node-gyp rebuild failed. Unfortunately the
output from gyp and the compiler is missing. That makes it impossible to
see what's wrong. However, the most common cause for build issues (on
linux) is not having the required libraries and header files installed. I
don't know centos but if it is using avahi you need the avahi dns_sd compat
library. On debian, ubuntu and the like the package is called
libavahi-compat-libdnssd-dev.

Hope this helps.


Reply to this email directly or view it on GitHubhttps://github.com/agnat/node_mdns/issues/50#issuecomment-10938706.

Thank you, the following worked for me;

yum install avahi avahi-compat-libdns_sd avahi-compat-libdns_sd-devel

On Sun, Dec 2, 2012 at 8:18 PM, David Siegel notifications@github.comwrote:

Hm, according to this log node-gyp rebuild failed. Unfortunately the
output from gyp and the compiler is missing. That makes it impossible to
see what's wrong. However, the most common cause for build issues (on
linux) is not having the required libraries and header files installed. I
don't know centos but if it is using avahi you need the avahi dns_sd compat
library. On debian, ubuntu and the like the package is called
libavahi-compat-libdnssd-dev.

Hope this helps.


Reply to this email directly or view it on GitHubhttps://github.com/agnat/node_mdns/issues/50#issuecomment-10938706.

@agnat agnat closed this Dec 3, 2012

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