Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Valid/581681 to your computer and use it in GitHub Desktop.
paf@PAF:~/webroot/node.modules/node_pcap$ cd $(npm config get root)/.npm/pcap/active/package ; node-waf configure build
npm info it worked if it ends with ok
npm info version 0.2.0
npm ok
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.064s)
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.006s)
paf@PAF:/usr/local/lib/node/.npm/pcap/active/package$ which http_trace /usr/local/bin/http_trace
paf@PAF:/usr/local/lib/node/.npm/pcap/active/package$ 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:/usr/local/lib/node/.npm/pcap/active/package$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment