安装 nodeshark 时出错
Error while installing nodeshark
您好,我正在从 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
我试过安装build-deb wireshark,但还是不行。
看来我需要 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
谁能解释一下我该如何解决这个问题?
它看起来无法定位或没有在线
ERROR: Could not find "/usr/lib/i386- linux-gnu/glib-2.0/include
您应该确保该文件在指定路径中可用,或者在环境变量中添加该文件的路径
如果您之前没有安装它
sudo apt-get install libperl-dev
sudo apt-get install libgtk2.0-dev
另一种可能性是它与 64 位系统不兼容,如果这是真的并且您也可以 运行 在 32 位虚拟机中使用它(如果您不打算重新安装,这可能是最好的解决方案32 位分布)
它正在寻找 32 位库,但您运行正在寻找 linux 的 64 位版本
您可以尝试将库路径更改为该库的版本
如果您尚未安装此软件,运行 似乎需要 mnm 运行
npm install mnm
您好,我正在从 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
我试过安装build-deb wireshark,但还是不行。 看来我需要 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
谁能解释一下我该如何解决这个问题?
它看起来无法定位或没有在线
ERROR: Could not find "/usr/lib/i386- linux-gnu/glib-2.0/include
您应该确保该文件在指定路径中可用,或者在环境变量中添加该文件的路径
如果您之前没有安装它
sudo apt-get install libperl-dev
sudo apt-get install libgtk2.0-dev
另一种可能性是它与 64 位系统不兼容,如果这是真的并且您也可以 运行 在 32 位虚拟机中使用它(如果您不打算重新安装,这可能是最好的解决方案32 位分布)
它正在寻找 32 位库,但您运行正在寻找 linux 的 64 位版本 您可以尝试将库路径更改为该库的版本
如果您尚未安装此软件,运行 似乎需要 mnm 运行
npm install mnm