Voici la réponse trouvée sur le Forum, j'ai longtemps galéré pour la faire fonctionner mais ça a fini par marcher :Syd964 a écrit : ↑20 juin 2018, 08:01Bonjour,
Pour faire suite au message, j'étais bien en version 3.2.8 mais nodejs n'était pas installé. J'ai contacté le support du core qui m'a dépanné. De ce coté tout est OK puisque les dépendances se lancent, mais le plugin ne fonctionne pas suite à une erreur d'installation. PCAP Failed.
Merci pour votre aide.
Ci dessous mon log :
Bonjour @lunarock,
Je n'arrive pas à installer le plug-in.
Au début j'avais un problème avec nodejs qui n'était pas installé.
Maintenant que les dépendances se lancent, le démon refuse de le faire.
Mon log est le suivant, avec une installation failed pour PCAP.
J'ai suivi un post qui indiquait de saisir en ligne de commande :
sudo apt-get install libpcap-dev
npm install --save dash-button
Mais rien de nouveau.
Merci pour votre aide.
Ok, version suffisante
> socketwatcher@0.3.0 install /var/www/html/plugins/dashbutton/resources/node_modules/socketwatcher
> node-gyp rebuild
make: Entering directory '/var/www/html/plugins/dashbutton/resources/node_modules/socketwatcher/build'
CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
../socket_watcher.cpp: In static member function 'static void SocketWatcher::Callback(uv_poll_t*, int, int)':
../socket_watcher.cpp:77:60: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated (declared at ../../nan/nan.h:929) [-Wdeprecated-declarations]
Nan::MakeCallback(watcher->handle(), callback, argc, argv);
^
SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
COPY Release/socketwatcher.node
make: Leaving directory '/var/www/html/plugins/dashbutton/resources/node_modules/socketwatcher/build'
> pcap@2.0.0 install /var/www/html/plugins/dashbutton/resources/node_modules/pcap
> node-gyp rebuild
make: Entering directory '/var/www/html/plugins/dashbutton/resources/node_modules/pcap/build'
CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
../pcap_binding.cc:2:23: fatal error: pcap/pcap.h: No such file or directory
#include <pcap/pcap.h>
^
compilation terminated.
pcap_binding.target.mk:94: recipe for target 'Release/obj.target/pcap_binding/pcap_binding.o' failed
make: *** [Release/obj.target/pcap_binding/pcap_binding.o] Error 1
make: Leaving directory '/var/www/html/plugins/dashbutton/resources/node_modules/pcap/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 3.14.79-94
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/html/plugins/dashbutton/resources/node_modules/pcap
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pcap@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pcap@2.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/www/.npm/_logs/2018-06-19T17_25_22_971Z-debug.log
Fin de l'installation
Avec Putty en ligne de commande et en root, j'ai lancé :
Tout semble OKsudo apt-get install libpcap-dev