mnot / htracr

HTTP sniffing and low-level visualisation
MIT License
531 stars 37 forks source link

Unable to load shared library pcap_binding #13

Closed djjeck closed 11 years ago

djjeck commented 12 years ago

I get an error when launching htracr. I'm running it on Mac OS X 10.7.

The file pcap_binding.node is in place. I also tried to reinstall libpcap, but with no success This is the error I get

node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: Unable to load shared library /usr/local/lib/node_modules/htracr/node_modules/pcap/build/Release/pcap_binding.node at Object..node (module.js:472:11) at Module.load (module.js:348:31) at Function._load (module.js:308:12) at Module.require (module.js:354:17) at require (module.js:370:17) at Object. (/usr/local/lib/node_modules/htracr/node_modules/pcap/pcap.js:7:18) at Module._compile (module.js:441:26) at Object..js (module.js:459:10) at Module.load (module.js:348:31) at Function._load (module.js:308:12)

This is the htracr install log, just in case

npm WARN htracr@0.2.2 package.json: bugs['web'] should probably be bugs['url'] npm http GET https://registry.npmjs.org/pcap npm http GET https://registry.npmjs.org/optimist npm http GET https://registry.npmjs.org/formidable npm http 304 https://registry.npmjs.org/pcap npm http 304 https://registry.npmjs.org/optimist npm http 304 https://registry.npmjs.org/formidable npm http GET https://registry.npmjs.org/wordwrap

pcap@0.3.0 install /usr/local/lib/node_modules/htracr/node_modules/pcap node-waf configure clean 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 /usr/local Checking for library pcap : yes 'configure' finished successfully (0.132s) 'clean' finished successfully (0.004s) Waf: Entering directory /usr/local/lib/node_modules/htracr/node_modules/pcap/build' [1/2] cxx: pcap_binding.cc -> build/Release/pcap_binding_1.o npm http 304 https://registry.npmjs.org/wordwrap [2/2] cxx_link: build/Release/pcap_binding_1.o -> build/Release/pcap_binding.node Waf: Leaving directory/usr/local/lib/node_modules/htracr/node_modules/pcap/build' 'build' finished successfully (0.533s) /usr/local/bin/htracr -> /usr/local/lib/node_modules/htracr/htracr.js formidable@1.0.9 /usr/local/lib/node_modules/htracr/node_modules/formidable wordwrap@0.0.2 /usr/local/lib/node_modules/htracr/node_modules/optimist/node_modules/wordwrap optimist@0.3.1 /usr/local/lib/node_modules/htracr/node_modules/optimist pcap@0.3.0 /usr/local/lib/node_modules/htracr/node_modules/pcap htracr@0.2.2 /usr/local/lib/node_modules/htracr

Does this say anything to anybody?

mnot commented 12 years ago

Works for me on 10.7 and 10.8 - do you have node and npm installed correctly?