joeferner / node-shark

Wrapper around libwireshark providing network packet dissection
MIT License
72 stars 12 forks source link

Error installing through npm on 64-bit Linux #3

Open bharatkrishna opened 11 years ago

bharatkrishna commented 11 years ago

I am installing nodeshark through npm install.

$ npm install nodeshark
npm http GET https://registry.npmjs.org/nodeshark
npm http 304 https://registry.npmjs.org/nodeshark
npm http GET https://registry.npmjs.org/mnm
npm http 304 https://registry.npmjs.org/mnm

> nodeshark@0.0.5 install /home/bharat/Dev/nodepcap/node_modules/nodeshark
> node mnm.js build

ERROR: Could not find "/usr/lib/i386-linux-gnu/glib-2.0/include" check GLIB_CONFIG_INCLUDE_DIR environment variable.
npm ERR! nodeshark@0.0.5 install: `node mnm.js build`
npm ERR! `sh "-c" "node mnm.js build"` failed with 1
npm ERR! 
npm ERR! Failed at the nodeshark@0.0.5 install script.
npm ERR! This is most likely a problem with the nodeshark package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node mnm.js build
npm ERR! You can get their info via:
npm ERR!     npm owner ls nodeshark
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-29-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "nodeshark"
npm ERR! cwd /home/bharat/Dev/nodepcap
npm ERR! node -v v0.8.16
npm ERR! npm -v 1.1.69
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/bharat/Dev/nodepcap/npm-debug.log
npm ERR! not ok code 0

The Error says ERROR: Could not find "/usr/lib/i386-linux-gnu/glib-2.0/include" check GLIB_CONFIG_INCLUDE_DIR environment variable.

It seems to be looking for 32-bit glib location.

My system info

$ uname -a
Linux ubuntu 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux