簡體   English   中英

安裝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 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM