Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. HID Adapter lässt sich nicht installieren

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    HID Adapter lässt sich nicht installieren

    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LJ-Mic last edited by

      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> 
      
      1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 last edited by

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

        1 Reply Last reply Reply Quote 0
        • N
          noaboa last edited by

          @apollon77:

          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
          
          1 Reply Last reply Reply Quote 0
          • L
            LJ-Mic last edited by

            Hab ein Haufen Fehlermeldungen bei der Installation bekommen, aber es Läuft jetzt endlich.

            Danke

            1 Reply Last reply Reply Quote 0
            • B
              Bastelfinger last edited by

              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 25

              Ich möchte einen RFID Leser, der per USB am Pi hängt im IOB auslesen.

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Bastelfinger last edited by Thomas Braun

                @bastelfinger

                sudo apt update
                sudo apt install build-essential libudev-dev libusb-1.0-0 libusb-1.0-0-dev
                
                1 Reply Last reply Reply Quote 0
                • B
                  Bastelfinger last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Support us

                  ioBroker
                  Community Adapters
                  Donate
                  FAQ Cloud / IOT
                  HowTo: Node.js-Update
                  HowTo: Backup/Restore
                  Downloads
                  BLOG

                  920
                  Online

                  31.8k
                  Users

                  80.0k
                  Topics

                  1.3m
                  Posts

                  5
                  7
                  822
                  Loading More Posts
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes
                  Reply
                  • Reply as topic
                  Log in to reply
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                  The ioBroker Community 2014-2023
                  logo