Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Valid/581654 to your computer and use it in GitHub Desktop.
paf@PAF:~/webroot/node.modules/node_pcap$ npm link
npm info it worked if it ends with ok
npm info version 0.2.0
npm info link /home/paf/webroot/node.modules/node_pcap
npm info install pcap@0.2.1-1-LINK-eeccddb4
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.063s)
Waf: Entering directory `/home/paf/webroot/node.modules/node_pcap/build'
[1/2] cxx: pcap_binding.cc -> build/default/pcap_binding_1.o
../pcap_binding.cc: In function âv8::Handle<v8::Value> Dispatch(const v8::Arguments&)â:
../pcap_binding.cc:89: error: âDataâ is not a member of ânode::Bufferâ
../pcap_binding.cc:90: error: âLengthâ is not a member of ânode::Bufferâ
Waf: Leaving directory `/home/paf/webroot/node.modules/node_pcap/build'
Build failed: -> task failed (err #1):
{task: cxx pcap_binding.cc -> pcap_binding_1.o}
npm info pcap@0.2.1-1-LINK-eeccddb4 Failed to exec install script
npm ERR! error linking, rollback Error: pcap@0.2.1-1-LINK-eeccddb4 install: `node-waf configure build`
npm ERR! error linking, rollback `sh` failed with 1
npm ERR! error linking, rollback at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.0/package/lib/utils/exec.js:24:18)
npm ERR! error linking, rollback at ChildProcess.emit (events:33:26)
npm ERR! error linking, rollback at ChildProcess.onexit (child_process:151:12)
npm ERR! error linking, rollback at node.js:764:9
npm info uninstall safe to uninstall: pcap@0.2.1-1-LINK-eeccddb4
npm info uninstall pcap@0.2.1-1-LINK-eeccddb4 complete
npm ERR! Error: pcap@0.2.1-1-LINK-eeccddb4 install: `node-waf configure build`
npm ERR! `sh` failed with 1
npm ERR! at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.2.0/package/lib/utils/exec.js:24:18)
npm ERR! at ChildProcess.emit (events:33:26)
npm ERR! at ChildProcess.onexit (child_process:151:12)
npm ERR! at node.js:764:9
npm ERR! try running: 'npm help link'
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <npm-@googlegroups.com>
npm not ok
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