Skip to content

Instantly share code, notes, and snippets.

@Valid
Created September 15, 2010 23:16
Show Gist options
  • Select an option

  • Save Valid/581673 to your computer and use it in GitHub Desktop.

Select an option

Save Valid/581673 to your computer and use it in GitHub Desktop.
paf@PAF:~/webroot/node.modules/node_pcap$ node -v
v0.2.1
paf@PAF:~/webroot/node.modules/node_pcap$ npm rm pcap
npm info it worked if it ends with ok
npm info version 0.2.0
npm info not installed pcap
npm ok
paf@PAF:~/webroot/node.modules/node_pcap$ npm install pcap
npm info it worked if it ends with ok
npm info version 0.2.0
npm info install pcap@0.2.1
npm info install pcap@0.2.1
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/paf/.node_libraries
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.062s)
Waf: Entering directory `/home/paf/webroot/node.modules/node_pcap/build'
Waf: Leaving directory `/home/paf/webroot/node.modules/node_pcap/build'
'build' finished successfully (0.007s)
npm info activate pcap@0.2.1
npm info build Success: pcap@0.2.1
npm ok
paf@PAF:~/webroot/node.modules/node_pcap$ http_trace
node.js:63
throw e;
^
Error: Cannot find module './build/default/pcap_binding'
at loadModule (node.js:275:15)
at require (node.js:411:14)
at Object.<anonymous> (/usr/local/lib/node/.npm/pcap/0.2.1/package/pcap.js:8:18)
at Module._compile (node.js:462:23)
at Module._loadScriptSync (node.js:469:10)
at Module.loadSync (node.js:338:12)
at loadModule (node.js:283:14)
at require (node.js:411:14)
at Object.<anonymous> (/usr/local/lib/node/pcap/index.js:8:18)
at Module._compile (node.js:462:23)
paf@PAF:~/webroot/node.modules/node_pcap$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment