简体   繁体   English

安装nodeshark时出错

[英]Error while installing nodeshark

Hello I am install nodeshark from npmjs , but I have and error: 您好,我正在从npmjs安装nodeshark,但是有错误:

    ubuntu@ubuntu:~/Documents$ sudo npm install nodeshark -g
    (node:8720) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.

    > nodeshark@0.0.5 install /usr/local/lib/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! Linux 4.4.0-22-generic
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "nodeshark" "-g"
    npm ERR! node v6.2.0
    npm ERR! npm  v3.8.9
    npm ERR! code ELIFECYCLE

    npm ERR! nodeshark@0.0.5 install: `node mnm.js build`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the nodeshark@0.0.5 install script 'node mnm.js build'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, 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 information on how to open an issue for this project with:
    npm ERR!     npm bugs nodeshark
    npm ERR! Or if that isn't available, you can get their info via:
    npm ERR!     npm owner ls nodeshark
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR!     ubuntu@ubuntu:~/Documents/npm-debug.log

I have tried to install build-deb wireshark, but still don't work. 我尝试安装build-deb wirehark,但仍然无法正常工作。 It seems that I need i386 for it to work, but I have this : 看来我需要i386才能工作,但我有这个:

Linux ubuntu 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Can someone explain how I can solve this ? 有人可以解释我该如何解决?

It looks like it cant locate or dosent have the glib on line 看起来找不到或没有glib在线

ERROR: Could not find "/usr/lib/i386-     linux-gnu/glib-2.0/include

You should make sure that file is available at the path specified or add the path to this file in the environment variables 您应该确保该文件在指定路径下可用,或者在环境变量中将该路径添加到该文件中

if you haven't installed it previously 如果您以前没有安装过

sudo apt-get install libperl-dev

sudo apt-get install libgtk2.0-dev

Another possibility is that it is incompatible with 64 bit systems, If this is true and also possible you can run it in a 32 bit vm (probably the best solution if you don't intend to reinstall a 32 bit distribution) 另一个可能性是它与64位系统不兼容,如果是这样,也可以在32位vm中运行它(如果您不打算重新安装32位发行版,则可能是最佳解决方案)

It is looking for a 32 bit library but you are running a 64 bit version of linux you could try changing the library path to your version of this library 它正在寻找32位库,但是您正在运行64位版本的linux,则可以尝试将库路径更改为该库的版本

It appears that mnm is required to run this software if you haven't already installed it run 如果您尚未安装该软件,则似乎需要mnm才能运行该软件

npm install mnm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM