[英]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 wirehark,但仍然无法正常工作。 看来我需要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
有人可以解释我该如何解决?
看起来找不到或没有glib在线
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位vm中运行它(如果您不打算重新安装32位发行版,则可能是最佳解决方案)
它正在寻找32位库,但是您正在运行64位版本的linux,则可以尝试将库路径更改为该库的版本
如果您尚未安装该软件,则似乎需要mnm才能运行该软件
npm install mnm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.