Navigation

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

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Modbus-Adapter lässt sich nicht installieren

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

      Ich versuch gerade den Modbus-Adapter zu installieren.

      Leider gelingt mir dies nicht:

      ! ````
      $ ./iobroker add modbus
      npm install iobroker.modbus --production --prefix "/opt/iobroker" (System call)
      node-pre-gyp
      ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v46-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@4.8.2 (node-v46 ABI) (falling back to source compile with node-gyp)
      ! gyp
      WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.2"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport/.node-gyp"
      ! make: *** No rule to make target '../.node-gyp/4.8.2/include/node/common.gypi', needed by 'Makefile'. Schluss.
      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:87:13)gyp ERR! stack at ChildProcess.emit (events.js:172:7)
      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
      ! gyp ERR! System Linux 4.4.4-v7+gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport/build/Release"
      gyp ERR! cwd /opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport
      gyp ERR! node -v v4.8.2
      ! gyp ERR! node-gyp -v v3.4.0gyp ERR! not ok
      node-pre-gyp ERR! build error
      ! node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport/build/Release' (1)node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
      node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
      node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
      node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:862:16)
      node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
      node-pre-gyp ERR! System Linux 4.4.4-v7+
      node-pre-gyp ERR! command "/usr/bin/nodejs" "/opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
      node-pre-gyp ERR! cwd /opt/iobroker/node_modules/iobroker.modbus/node_modules/jsmodbus/node_modules/serialport
      node-pre-gyp ERR! node -v v4.8.2
      node-pre-gyp ERR! node-pre-gyp -v v0.6.32
      node-pre-gyp ERR! not ok
      ! node-pre-gyp
      ERR!
      Tried to download: https://github.com/voodootikigod/node-serialport/releases/download/3.1.2/serialport-v3.1.2-node-v46-linux-arm.tar.gz node-pre-gyp
      ERR! Pre-built binaries not found for serialport@3.1.2 and node@4.8.2 (node-v46 ABI) (falling back to source compile with node-gyp)
      gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.2"gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/.node-gyp"
      ! make: *** No rule to make target '../.node-gyp/4.8.2/include/node/common.gypi', needed by 'Makefile'. Schluss.
      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:87:13)gyp ERR! stack at ChildProcess.emit (events.js:172:7)
      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
      gyp ERR! System Linux 4.4.4-v7+
      ! gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/build/Release"gyp ERR! cwd /opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport
      gyp ERR!
      node -v v4.8.2gyp ERR! node-gyp -v v3.4.0
      gyp ERR! not ok
      ! node-pre-gyp ERR! build error
      node-pre-gyp

      ERR!
      stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/build/Release' (1)node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
      node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
      node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
      node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:862:16)
      node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
      node-pre-gyp ERR! System Linux 4.4.4-v7+
      node-pre-gyp
      ERR! command "/usr/bin/nodejs" "/opt/iobroker/node_modules/iobroker.modbus/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
      node-pre-gyp ERR! cwd /opt/iobroker/node_modules/iobroker.modbus/node_modules/serialportnode-pre-gyp ERR! node -v v4.8.2
      node-pre-gyp ERR! node-pre-gyp -v v0.6.28
      node-pre-gyp ERR! not ok

      ! npm WARN optional dep failed, continuing serialport@3.1.2npm ERR! Linux 4.4.4-v7+
      npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.modbus" "--production" "--prefix" "/opt/iobroker"
      npm ERR! node v4.8.2
      npm ERR! npm v2.15.11
      npm ERR! code ELIFECYCLE
      ! npm ERR! serialport@4.0.7 install: node-pre-gyp install --fallback-to-build
      npm ERR! Exit status 1
      npm ERR!
      npm ERR! Failed at the serialport@4.0.7 install script 'node-pre-gyp install --fallback-to-build'.
      npm ERR! This is most likely a problem with the serialport package,
      npm ERR! not with npm itself.
      npm ERR! Tell the author that this fails on your system:
      npm ERR! node-pre-gyp install --fallback-to-build
      npm ERR! You can get information on how to open an issue for this project with:
      npm ERR! npm bugs serialport
      npm ERR! Or if that isn't available, you can get their info via:
      npm ERR!
      npm ERR! npm owner ls serialport
      npm ERR! There is likely additional logging output above.
      ! npm
      ERR!
      Please include the following file with any support request:npm ERR! /opt/npm-debug.log
      ! ERROR: host.raspberrypi Cannot install iobroker.modbus: 1
      ERROR: process exited with code 25</anonymous></anonymous>

      
      Hat jemnad eine Idee?
      
      Gruß
      
      Wolfgang
      1 Reply Last reply Reply Quote 0
      • C
        ChristianF last edited by

        Ja, das Problem ist bekannt. Der Adapter ist noch nicht fertig, was die serielle Implementierung angeht. Du kannst versuchen, serialport 4.0.7 manuell zu installieren.

        Mehr Infos sonst http://forum.iobroker.net/viewtopic.php … lit=modbus

        1 Reply Last reply Reply Quote 0
        • Bluefox
          Bluefox last edited by

          Ist build-essential Lib Installiert?

          Mich stört diese Aussage:

           WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.8.2"
          

          Versuch mal hier zu lesen:

          http://www.iobroker.net/docu/?page_id=5510&lang=de

          1 Reply Last reply Reply Quote 0
          • L
            leo013 last edited by

            Habe alles nach der Anleitung durch gestestet, ohne Erfolg.

            Sowohl die Installation aus IOBROKER heraus, wie auch die Installation

            über die Console werden mit Fehlermeldungen abgebrochen.

            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

            674
            Online

            32.0k
            Users

            80.4k
            Topics

            1.3m
            Posts

            3
            4
            799
            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