Solved Erreur installation
-
Hello,
J’ai un petit souci lors de l’install de EXT-StreamDeck.
Erreur dès l’install…J’ai quand même pu faire un setup dans le répertoire pour la mise à jour des Rules Linux, fait un reboot du Pi au cas où mais après un update classique j’ai ce message sur le terminal, vous en pensez quoi?
Merci à vous.
Il n’est pas encore branché car je configure les commandes sur config pour le moment…pi@raspberrypi:~/MagicMirror/modules/EXT-StreamDeck $ npm run update
EXT-StreamDeck@1.1.0 update
installer/update.shWelcome to EXT-StreamDeck v1.1.0
Checking OS…
OS Detected: linux-gnueabihf (raspbian 11 armv7l)Updating…
HEAD est maintenant à c8fd0c7 v1.1
astuce: Tirer sans spécifier comment réconcilier les branches divergentes
astuce: est découragé. Vous pouvez éliminer ce message en lançant une des
astuce: commandes suivantes avant votre prochain tirage :
astuce:
astuce: git config pull.rebase false # fusion (stratégie par défaut)
astuce: git config pull.rebase true # rebasage
astuce: git config pull.ff only # avance rapide seulement
astuce:
astuce: Vous pouvez remplacer “git config” par “git config --global” pour que
astuce: ce soit l’option par défaut pour tous les dépôts. Vous pouvez aussi
astuce: passer --rebase, --no-rebase ou --ff-only sur la ligne de commande pour
astuce: remplacer à l’invocation la valeur par défaut configurée.
Déjà à jour.Deleting ALL @bugsounet libraries…
Ready for Installing…
npm ERR! code 1
npm ERR! path /home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid
npm ERR! command failed
npm ERR! command sh -c – prebuild-install --runtime napi || node-gyp rebuild
npm ERR! prebuild-install warn install No prebuilt binaries found (target=3 runtime=napi arch=arm libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.1 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/home/pi/.cache/node-gyp/16.18.1/include/node/common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/home/pi/.cache/node-gyp/16.18.1’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/home/pi/.cache/node-gyp/16.18.1/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! Package libusb-1.0 was not found in the pkg-config search path.
npm ERR! Perhaps you should add the directory containinglibusb-1.0.pc' npm ERR! to the PKG_CONFIG_PATH environment variable npm ERR! No package 'libusb-1.0' found npm ERR! gyp: Call to 'pkg-config libusb-1.0 --cflags-only-I | sed s/-I//g' returned exit status 0 while in binding.gyp. while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error:
gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:284:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 5.15.80-v7l+
npm ERR! gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid
npm ERR! gyp ERR! node -v v16.18.1
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2023-05-14T16_03_39_894Z-debug-0.log
pi@raspberrypi:~/MagicMirror/modules/EXT-StreamDeck $ -
'lut @ricotte ,
npm ERR! Package libusb-1.0 was not found in the pkg-config search path.
peux tu essayez ceci:
sudo apt-get install libusb-1.0
et relancer l’update
si c’est bon je vais le rajouter a la liste des dépendances a installer
-
Hello,
Malheureusement voilà la transcription complète…
i@raspberrypi:~ $ sudo apt-get install libusb-1.0
Lecture des listes de paquets… Fait
Construction de l’arbre des dépendances… Fait
Lecture des informations d’état… Fait
Note : sélection de libusb-1.0-0-dev pour l’expression rationnelle « libusb-1.0 »
Note : sélection de libusb-1.0-doc pour l’expression rationnelle « libusb-1.0 »
Note : sélection de libusb-1.0-0 pour l’expression rationnelle « libusb-1.0 »
libusb-1.0-0 est déjà la version la plus récente (2:1.0.24-3).
libusb-1.0-0 passé en « installé manuellement ».
Les NOUVEAUX paquets suivants seront installés :
libusb-1.0-0-dev libusb-1.0-doc
0 mis à jour, 2 nouvellement installés, 0 à enlever et 142 non mis à jour.
Il est nécessaire de prendre 263 ko dans les archives.
Après cette opération, 1 861 ko d’espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Réception de :1 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libusb-1.0-0-dev armhf 2:1.0.24-3 [70,8 kB]
Réception de :2 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libusb-1.0-doc all 2:1.0.24-3 [192 kB]
263 ko réceptionnés en 2s (121 ko/s)
Sélection du paquet libusb-1.0-0-dev:armhf précédemment désélectionné.
(Lecture de la base de données… 110950 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de …/libusb-1.0-0-dev_2%3a1.0.24-3_armhf.deb …
Dépaquetage de libusb-1.0-0-dev:armhf (2:1.0.24-3) …
Sélection du paquet libusb-1.0-doc précédemment désélectionné.
Préparation du dépaquetage de …/libusb-1.0-doc_2%3a1.0.24-3_all.deb …
Dépaquetage de libusb-1.0-doc (2:1.0.24-3) …
Paramétrage de libusb-1.0-doc (2:1.0.24-3) …
Paramétrage de libusb-1.0-0-dev:armhf (2:1.0.24-3) …
pi@raspberrypi:~ $ cd ~/MagicMirror/modules/EXT-StreamDeck
pi@raspberrypi:~/MagicMirror/modules/EXT-StreamDeck $ npm run updateEXT-StreamDeck@1.1.0 update
installer/update.shWelcome to EXT-StreamDeck v1.1.0
Checking OS…
OS Detected: linux-gnueabihf (raspbian 11 armv7l)Updating…
HEAD est maintenant à c8fd0c7 v1.1
astuce: Tirer sans spécifier comment réconcilier les branches divergentes
astuce: est découragé. Vous pouvez éliminer ce message en lançant une des
astuce: commandes suivantes avant votre prochain tirage :
astuce:
astuce: git config pull.rebase false # fusion (stratégie par défaut)
astuce: git config pull.rebase true # rebasage
astuce: git config pull.ff only # avance rapide seulement
astuce:
astuce: Vous pouvez remplacer “git config” par “git config --global” pour que
astuce: ce soit l’option par défaut pour tous les dépôts. Vous pouvez aussi
astuce: passer --rebase, --no-rebase ou --ff-only sur la ligne de commande pour
astuce: remplacer à l’invocation la valeur par défaut configurée.
Déjà à jour.Deleting ALL @bugsounet libraries…
Ready for Installing…
npm ERR! code 1
npm ERR! path /home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid
npm ERR! command failed
npm ERR! command sh -c – prebuild-install --runtime napi || node-gyp rebuild
npm ERR! make�: on entre dans le r�pertoire ��/home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid/build��
npm ERR! CC(target) Release/obj.target/hidapi/hidapi/libusb/hid.o
npm ERR! AR(target) Release/obj.target/hidapi.a
npm ERR! COPY Release/hidapi.a
npm ERR! CXX(target) Release/obj.target/HID/src/HID.o
npm ERR! SOLINK_MODULE(target) Release/obj.target/HID.node
npm ERR! COPY Release/HID.node
npm ERR! CC(target) Release/obj.target/hidapi-linux-hidraw/hidapi/linux/hid.o
npm ERR! make�: on quitte le r�pertoire ��/home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid/build��
npm ERR! prebuild-install warn install No prebuilt binaries found (target=3 runtime=napi arch=arm libc= platform=linux)
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@16.18.1 | linux | arm
npm ERR! gyp info find Python using Python version 3.9.2 found at “/usr/bin/python3”
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
npm ERR! gyp info spawn args ‘binding.gyp’,
npm ERR! gyp info spawn args ‘-f’,
npm ERR! gyp info spawn args ‘make’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid/build/config.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
npm ERR! gyp info spawn args ‘-I’,
npm ERR! gyp info spawn args ‘/home/pi/.cache/node-gyp/16.18.1/include/node/common.gypi’,
npm ERR! gyp info spawn args ‘-Dlibrary=shared_library’,
npm ERR! gyp info spawn args ‘-Dvisibility=default’,
npm ERR! gyp info spawn args ‘-Dnode_root_dir=/home/pi/.cache/node-gyp/16.18.1’,
npm ERR! gyp info spawn args ‘-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp’,
npm ERR! gyp info spawn args ‘-Dnode_lib_file=/home/pi/.cache/node-gyp/16.18.1/<(target_arch)/node.lib’,
npm ERR! gyp info spawn args ‘-Dmodule_root_dir=/home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid’,
npm ERR! gyp info spawn args ‘-Dnode_engine=v8’,
npm ERR! gyp info spawn args ‘–depth=.’,
npm ERR! gyp info spawn args ‘–no-parallel’,
npm ERR! gyp info spawn args ‘–generator-output’,
npm ERR! gyp info spawn args ‘build’,
npm ERR! gyp info spawn args ‘-Goutput_dir=.’
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
npm ERR! …/hidapi/linux/hid.c:44:10: fatal error: libudev.h: Aucun fichier ou dossier de ce type
npm ERR! 44 | #include <libudev.h>
npm ERR! | ^~~~~~~~~~~
npm ERR! compilation terminated.
npm ERR! make: *** [hidapi-linux-hidraw.target.mk:111 : Release/obj.target/hidapi-linux-hidraw/hidapi/linux/hid.o] Erreur 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error:make
failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:201:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 5.15.80-v7l+
npm ERR! gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /home/pi/MagicMirror/modules/EXT-StreamDeck/node_modules/node-hid
npm ERR! gyp ERR! node -v v16.18.1
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not oknpm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2023-05-15T16_54_02_333Z-debug-0.log -
c’est mieux … mais a mon avis comme npm installe les packets npm en premier et apres les packet apt … a mon avis les librairies USB ne sont pas installées…
essai ceci dans le repertoire de
EXT-StreamDeck
:npm run clean npm run preinstall npm install
-
Hello,
Là ca me semble parfait, au top : Merci
pi@raspberrypi:~/MagicMirror/modules/EXT-StreamDeck $ npm run clean
EXT-StreamDeck@1.1.0 clean
rm -rf node_modules package-lock.jsonpi@raspberrypi:~/MagicMirror/modules/EXT-StreamDeck $ npm run preinstall
EXT-StreamDeck@1.1.0 preinstall
installer/preinstall.shWelcome to EXT-StreamDeck v1.1.0
No root checking…
Checking EXT-StreamDeck: pi/pi
Checking MagicMirror: pi/piChecking OS…
OS Detected: linux-gnueabihf (raspbian 11 armv7l)Checking all dependencies…
Updating package…
Missing package: libudev-dev
Installing missing package…
Atteint :1 http://archive.raspberrypi.org/debian bullseye InRelease
Atteint :2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Atteint :3 https://deb.nodesource.com/node_16.x bullseye InRelease
Lecture des listes de paquets… Fait
Lecture des listes de paquets… Fait
Construction de l’arbre des dÃpendances… Fait
Lecture des informations d’Ãtat… Fait
Le paquet suivant a ÃtÃ
installÃ
automatiquement et n’est plus nÃ
cessaire :
raspinfo
Veuillez utiliser « sudo apt autoremove » pour le supprimer.
Les NOUVEAUX paquets suivants seront installÃs :
libudev-dev
0 mis à jour, 1 nouvellement installÃs, 0 à enlever et 0 non mis à jour.
Il est nÃcessaire de prendre 124 ko dans les archives.
Après cette opÃration, 213 ko d’espace disque supplÃ
mentaires seront utilisÃ
s.
RÃception de :1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libudev-dev armhf 247.3-7+rpi1+deb11u1 [124 kB]
124 ko rÃceptionnÃ
s en 1s (172 ko/s)
SÃlection du paquet libudev-dev:armhf prÃ
cÃ
demment dÃ
sÃ
lectionnÃ
.
(Lecture de la base de donnÃes… 111236 fichiers et rÃ
pertoires dÃ
jà installÃ
s.)
PrÃparation du dÃ
paquetage de …/libudev-dev_247.3-7+rpi1+deb11u1_armhf.deb …
DÃpaquetage de libudev-dev:armhf (247.3-7+rpi1+deb11u1) …
ParamÃtrage de libudev-dev:armhf (247.3-7+rpi1+deb11u1) …
Traitement des actions diffÃrÃ
es (« triggers ») pour man-db (2.9.4-2) …
All Dependencies needed are installed !Installing all npm libraries…
pi@raspberrypi:~/MagicMirror/modules/EXT-StreamDeck $ npm installEXT-StreamDeck@1.1.0 preinstall
installer/preinstall.shWelcome to EXT-StreamDeck v1.1.0
No root checking…
Checking EXT-StreamDeck: pi/pi
Checking MagicMirror: pi/piChecking OS…
OS Detected: linux-gnueabihf (raspbian 11 armv7l)Checking all dependencies…
All Dependencies needed are installed !Installing all npm libraries…
EXT-StreamDeck@1.1.0 postinstall
installer/postinstall.shMinify Main code
Found: 2 files to minifyProcess File: …/EXT-StreamDeck.js
Process File: …/node_helper.js
DoneSupport is now moved in a dedicated Server: https://forum.bugsounet.fr
@bugsounetEXT-StreamDeck is now installed !
added 236 packages, and audited 237 packages in 2m
28 packages are looking for funding
runnpm fund
for details8 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --forceRun
npm audit
for details. -
Parfait !
Pas d’audit… Sinon tu va tout casser
Je regarderai ce que je peux faire -
Yep ça je me souviens bien
comme au boulot, pas d’audit;)))
Merci encore à toi, maintenant y a plus qu’ à le mettre en place
-
bugsounet