NEWS
HID Adapter lässt sich nicht installieren
-
Ich hab das Problem das der HID Adapter sich nicht und nicht installieren lässt.
Vielleicht kann mir hier wer weiter helfen.
Bei der Installation bekomme ich nach der Fehlermeldung "Fertig mit Fehler: host.pi01 Cannot install hid" folgendes heraus:
$ ./iobroker add hid 0 --host pi01 NPM version: 3.10.10 npm install iobroker.hid --production --save --prefix "/opt/iobroker" (System call) prebuild-install WARN install No prebuilt binaries found (target=6.14.3 runtime=node arch=arm platform=linux) ../hidapi/libusb/hid.c:47:20: fatal error: libusb.h: Datei oder Verzeichnis nicht gefunden #include <libusb.h>^ compilation terminated. make: *** [Release/obj.target/hidapi/hidapi/libusb/hid.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12) gyp ERR! System Linux 4.14.69-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/node-hid gyp ERR! node -v v6.14.3 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/sqlite3/package.json' npm ERR! Linux 4.14.69-v7+npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.hid" "--production" "--save" "--prefix" "/opt/iobroker" npm ERR! node v6.14.3npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! node-hid@0.5.7 install: `prebuild-install || node-gyp rebuild`npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-hid@0.5.7 install script 'prebuild-install || node-gyp rebuild'. 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 node-hid package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! prebuild-install || node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-hid npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls node-hid npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request:npm ERR! /npm-debug.log host.pi01 install adapter hid NPM version: 3.10.10 npm install iobroker.hid --production --save --prefix "/opt/iobroker" (System call) prebuild-install WARN install No prebuilt binaries found (target=6.14.3 runtime=node arch=arm platform=linux) ../hidapi/libusb/hid.c:47:20: fatal error: libusb.h: Datei oder Verzeichnis nicht gefunden #include <libusb.h>^ compilation terminated. make: *** [Release/obj.target/hidapi/hidapi/libusb/hid.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13)gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12) gyp ERR! System Linux 4.14.69-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"gyp ERR! cwd /opt/iobroker/node_modules/node-hid gyp ERR! node -v v6.14.3 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/sqlite3/package.json' npm ERR! Linux 4.14.69-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.hid" "--production" "--save" "--prefix" "/opt/iobroker"npm ERR! node v6.14.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! node-hid@0.5.7 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-hid@0.5.7 install script 'prebuild-install || node-gyp rebuild'. 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 node-hid package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! prebuild-install || node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-hid npm ERR! Or if that isn't available, you can get their info via:npm ERR! npm owner ls node-hid npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request:npm ERR! /npm-debug.log host.pi01 install adapter hid NPM version: 3.10.10 npm install iobroker.hid --production --save --prefix "/opt/iobroker" (System call) prebuild-install WARN install No prebuilt binaries found (target=6.14.3 runtime=node arch=arm platform=linux) ../hidapi/libusb/hid.c:47:20: fatal error: libusb.h: Datei oder Verzeichnis nicht gefunden #include <libusb.h>^ compilation terminated. make: *** [Release/obj.target/hidapi/hidapi/libusb/hid.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12) gyp ERR! System Linux 4.14.69-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/node-hid gyp ERR! node -v v6.14.3 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/sqlite3/package.json' npm ERR! Linux 4.14.69-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.hid" "--production" "--save" "--prefix" "/opt/iobroker"npm ERR! node v6.14.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! node-hid@0.5.7 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-hid@0.5.7 install script 'prebuild-install || node-gyp rebuild'. 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 node-hid package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! prebuild-install || node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-hid npm ERR! Or if that isn't available, you can get their info via:npm ERR! npm owner ls node-hid npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request:npm ERR! /npm-debug.log host.pi01 install adapter hid ERROR: host.pi01 Cannot install hid ERROR: process exited with code 13</libusb.h></libusb.h></libusb.h>
-
Google Suchergebnis für dich
https://stackoverflow.com/questions/485 … -in-ubuntu
Schade das das nicht auf der readme vom Adapter steht
Gesendet vom Handy ...
-
Google Suchergebnis für dich
https://stackoverflow.com/questions/485 … -in-ubuntu
Schade das das nicht auf der readme vom Adapter steht
Gesendet vom Handy ... `
Super dankeschön, hat für mich geklappt mit
sudo apt-get install libusb-1.0-0-dev
-
Hab ein Haufen Fehlermeldungen bei der Installation bekommen, aber es Läuft jetzt endlich.
Danke
-
Es ist zwar ein sehr alter Thread, aber ich versuche gerade den HID Adapter zu installieren - allerdings ohne Erfolg:
$ iobroker add hid --host ioBroker
NPM version: 6.14.16
Installing iobroker.hid@0.1.17... (System call)
node-hid@0.5.7 install /opt/iobroker/node_modules/node-hid> prebuild-install || node-gyp rebuild
make: Verzeichnis „/opt/iobroker/node_modules/node-hid/build“ wird betreten
CC(target) Release/obj.target/hidapi/hidapi/libusb/hid.o
AR(target) Release/obj.target/hidapi.a
COPY Release/hidapi.a
CXX(target) Release/obj.target/HID/src/HID.o
make: Verzeichnis „/opt/iobroker/node_modules/node-hid/build“ wird verlassen
host.ioBroker Cannot install iobroker.hid@0.1.17: 1
ERROR: Process exited with code 25Ich möchte einen RFID Leser, der per USB am Pi hängt im IOB auslesen.
-
sudo apt update sudo apt install build-essential libudev-dev libusb-1.0-0 libusb-1.0-0-dev
-
@thomas-braun said in HID Adapter lässt sich nicht installieren:
sudo apt install build-essential libudev-dev libusb-1.0-0 libusb-1.0-0-dev
den habe ich schon:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
build-essential ist schon die neueste Version (12.6).
libudev-dev ist schon die neueste Version (241-7~deb10u8+rpi1).
libusb-1.0-0 ist schon die neueste Version (2:1.0.22-2).
libusb-1.0-0-dev ist schon die neueste Version (2:1.0.22-2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.