Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. RPI-Monitor und GPIO rpi2 v2.3.1

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

RPI-Monitor und GPIO rpi2 v2.3.1

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
64 Beiträge 7 Kommentatoren 1.9k Aufrufe 6 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • S searcher57

    Noch mal von vorn!
    Fehlermeldung nach Installation:

    $ iobroker add rpi2 --host Raspi48GB
    
    NPM version: 10.9.4
    
    Installing iobroker.rpi2@2.4.0... (System call)
    
    host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
    
    ERROR: Process exited with code 25
    

    Ausgabe iob diag:

    ```bash
    Script v.2026-01-31
    
    *** BASE SYSTEM ***
    Operating System: Debian GNU/Linux 13 (trixie)
     Static hostname: Raspi48GB
           Icon name: computer
              Kernel: Linux 6.12.62+rpt-rpi-v8
        Architecture: arm64
    OS is similar to:
    
    Model           : Raspberry Pi 4 Model B Rev 1.5
    Docker          : false
    Virtualization  : none
    Kernel          : aarch64
    Userland        : 64 bit
    
    Systemuptime and Load:
     13:47:58 up  1:09,  1 user,  load average: 0.48, 0.32, 0.33
    CPU threads: 4
    
    
    *** LIFE CYCLE STATUS ***
    Operating System is the current Debian stable version codenamed 'trixie'!
    
    *** RASPBERRY THROTTLING ***
    Current issues:
    No throttling issues detected.
    
    Previously detected issues:
    No throttling issues detected.
    
    *** TIME AND TIMEZONES ***
                   Local time: Mon 2026-02-09 13:47:58 CET
               Universal time: Mon 2026-02-09 12:47:58 UTC
                     RTC time: n/a
                    Time zone: Europe/Berlin (CET, +0100)
    System clock synchronized: yes
                  NTP service: active
              RTC in local TZ: no
    
    *** Users and Groups ***
    User that called 'iob diag':
    pi
    HOME=/home/pi
    GROUPS=pi adm dialout cdrom sudo audio video plugdev games users netdev gpio i2c spi render input iobroker
    
    User that is running 'js-controller':
    iobroker
    HOME=/home/iobroker
    SUDO_HOME=/home/pi
    GROUPS=iobroker tty dialout audio video plugdev bluetooth gpio i2c
    
    *** DISPLAY-SERVER SETUP ***
    Display-Server:         false
    Unit display-manager.service could not be found.
    Display-Manager:
    Desktop:
    Session:                tty
    
    *** MEMORY ***
                   total        used        free      shared  buff/cache   available
    Mem:            8.2G        2.5G        4.8G         12M        1.0G        5.7G
    Swap:           2.1G          0B        2.1G
    Total:           10G        2.5G        6.9G
    
    Active iob-Instances:   27
    
             7820 M total memory
             2379 M used memory
             2349 M active memory
              640 M inactive memory
             4579 M free memory
               87 M buffer memory
              885 M swap cache
             2047 M total swap
                0 M used swap
             2047 M free swap
    
    *** top - Table Of Processes  ***
    top - 13:47:59 up  1:09,  1 user,  load average: 0.48, 0.32, 0.33
    Tasks: 203 total,   1 running, 202 sleeping,   0 stopped,   0 zombie
    %Cpu(s):  0.0 us,  2.3 sy,  0.0 ni, 97.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
    MiB Mem :   7820.7 total,   4579.2 free,   2379.7 used,    973.4 buff/cache
    MiB Swap:   2048.0 total,   2048.0 free,      0.0 used.   5441.0 avail Mem
    
    *** FAILED SERVICES ***
    
      UNIT LOAD ACTIVE SUB DESCRIPTION
    
    0 loaded units listed.
    
    
    *** DMESG CRITICAL ERRORS ***
    No critical errors detected
    
    *** FILESYSTEM ***
    Filesystem     Type      Size  Used Avail Use% Mounted on
    udev           devtmpfs  3.6G     0  3.6G   0% /dev
    tmpfs          tmpfs     1.6G  9.3M  1.6G   1% /run
    /dev/mmcblk0p2 ext4       59G  7.0G   49G  13% /
    tmpfs          tmpfs     3.9G     0  3.9G   0% /dev/shm
    tmpfs          tmpfs     5.0M   16K  5.0M   1% /run/lock
    tmpfs          tmpfs     1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
    tmpfs          tmpfs     3.9G  2.8M  3.9G   1% /tmp
    /dev/mmcblk0p1 vfat      510M   66M  445M  13% /boot/firmware
    /dev/sda1      exfat      29G  951M   28G   4% /mnt/usb0
    tmpfs          tmpfs     1.0M     0  1.0M   0% /run/credentials/getty@tty1.service
    tmpfs          tmpfs     783M  8.0K  783M   1% /run/user/1000
    
    Messages concerning ext4 filesystem in dmesg:
    [Mon Feb  9 12:38:20 2026] EXT4-fs (mmcblk0p2): orphan cleanup on readonly fs
    [Mon Feb  9 12:38:20 2026] EXT4-fs (mmcblk0p2): mounted filesystem 21724cc6-e5a3-48a1-8643-7917dba3a9fb ro with ordered data mode. Quota mode: none.
    [Mon Feb  9 12:38:22 2026] EXT4-fs (mmcblk0p2): re-mounted 21724cc6-e5a3-48a1-8643-7917dba3a9fb r/w.
    
    Show mounted filesystems:
    TARGET           SOURCE         FSTYPE OPTIONS
    /                /dev/mmcblk0p2 ext4   rw,noatime
    |-/boot/firmware /dev/mmcblk0p1 vfat   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
    `-/mnt/usb0      /dev/sda1      exfat  rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,iocharset=utf8,errors=remount-ro
    
    Files in neuralgic directories:
    
    /var:
    2.5G    /var/
    238M    /var/cache
    233M    /var/cache/apt
    189M    /var/lib
    152M    /var/lib/apt/lists
    
    Archived and active journals take up 8M in the file system.
    
    /opt/iobroker/backups:
    32M     /opt/iobroker/backups/
    
    /opt/iobroker/iobroker-data:
    482M    /opt/iobroker/iobroker-data/
    399M    /opt/iobroker/iobroker-data/files
    68M     /opt/iobroker/iobroker-data/files/vis-2
    67M     /opt/iobroker/iobroker-data/files/echarts.admin
    61M     /opt/iobroker/iobroker-data/files/echarts
    
    The five largest files in iobroker-data are:
    35M     /opt/iobroker/iobroker-data/objects.jsonl
    27M     /opt/iobroker/iobroker-data/files/tankerkoenig.admin/build/index.js.map
    26M     /opt/iobroker/iobroker-data/files/echarts/static/js/main.41cee985.js.map
    26M     /opt/iobroker/iobroker-data/files/echarts.admin/chart/static/js/main.41cee985.js.map
    24M     /opt/iobroker/iobroker-data/files/echarts.admin/static/js/main.70a15e1f.js.map
    
    USB-Devices by-id:
    USB-Sticks - Avoid direct links to /dev/tty* in your adapter setups,
    please always prefer the links 'by-id':
    
    No Devices found 'by-id'
    
    *** ZigBee Settings ***
    
    Zigbee Network Settings on your coordinator/in nvbackup are:
    
    zigbee.X
    Extended Pan ID:
    *** MASKED ***
    Pan ID:
    *** MASKED ***
    Channel:
    *** MASKED ***
    Network Key:
    *** MASKED ***
    
    To unmask the settings run 'iob diag --unmask'
    
    
    *** NodeJS-Installation ***
    
    /usr/bin/nodejs         v22.22.0
    /usr/bin/node           v22.22.0
    /usr/bin/npm            10.9.4
    /usr/bin/npx            10.9.4
    
    ✓ Node.js installation is correct
    
    nodejs:
      Installed: 22.22.0-1nodesource1
      Candidate: 22.22.0-1nodesource1
      Version table:
     *** 22.22.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
            100 /var/lib/dpkg/status
         22.21.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.20.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.19.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.18.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.17.1-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.17.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.16.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.15.1-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.15.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.14.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.13.1-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.13.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.12.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.11.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.10.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.9.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.8.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.7.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.6.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.5.1-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.5.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.4.1-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.4.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.3.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.2.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.1.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         22.0.0-1nodesource1 1001
            500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
         20.19.2+dfsg-1 500
            500 http://deb.debian.org/debian trixie/main arm64 Packages
    
    Temp directories causing deletion problem: 0
    No problems detected
    
    Errors in npm tree: 0
    No problems detected
    
    Checking for nodejs vulnerability:
    
    
     █████  ██      ██           ██████   ██████   ██████  ██████         ██
    ██   ██ ██      ██          ██       ██    ██ ██    ██ ██   ██     ██  ██
    ███████ ██      ██          ██   ███ ██    ██ ██    ██ ██   ██         ██
    ██   ██ ██      ██          ██    ██ ██    ██ ██    ██ ██   ██     ██  ██
    ██   ██ ███████ ███████      ██████   ██████   ██████  ██████         ██
    
    
    
    *** ioBroker-Installation ***
    
    ioBroker Status
    iobroker is running on this host.
    
    
    Objects type: jsonl
    States  type: jsonl
    
    Hosts:
    Raspi48GB           Raspi48GB (version: 7.0.7, hostname: Raspi48GB     , alive, uptime: 1969)
    
    Core adapters versions
    js-controller:  7.0.7
    admin:          7.7.22
    javascript:     9.0.11
    
    nodejs modules from github:     0
    
    Adapter State
    + system.adapter.admin.0                  : admin                 : Raspi48GB                                -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
    + system.adapter.alexa2.0                 : alexa2                : Raspi48GB                                -  enabled
      system.adapter.alias-manager.0          : alias-manager         : Raspi48GB                                - disabled
    + system.adapter.awtrix-light.0           : awtrix-light          : Raspi48GB                                -  enabled
    + system.adapter.awtrix-light.1           : awtrix-light          : Raspi48GB                                -  enabled
    + system.adapter.backitup.0               : backitup              : Raspi48GB                                -  enabled
    + system.adapter.broadlink2.0             : broadlink2            : Raspi48GB                                -  enabled
      system.adapter.devices.0                : devices               : Raspi48GB                                - disabled
    + system.adapter.discovery.0              : discovery             : Raspi48GB                                -  enabled
    + system.adapter.doorbird.0               : doorbird              : Raspi48GB                                -  enabled
    + system.adapter.echarts.0                : echarts               : Raspi48GB                                -  enabled
    + system.adapter.followthesun.0           : followthesun          : Raspi48GB                                -  enabled
    + system.adapter.frontier_silicon.0       : frontier_silicon      : Raspi48GB                                -  enabled
      system.adapter.frontier_silicon.1       : frontier_silicon      : Raspi48GB                                - disabled
      system.adapter.frontier_silicon.2       : frontier_silicon      : Raspi48GB                                - disabled
      system.adapter.frontier_silicon.3       : frontier_silicon      : Raspi48GB                                - disabled
    + system.adapter.hm-rega.0                : hm-rega               : Raspi48GB                                -  enabled
    + system.adapter.hm-rpc.0                 : hm-rpc                : Raspi48GB                                -  enabled, port: 0
    + system.adapter.hm-rpc.1                 : hm-rpc                : Raspi48GB                                -  enabled, port: 0
      system.adapter.influxdb.0               : influxdb              : Raspi48GB                                - disabled, port: 8086
    + system.adapter.iot.0                    : iot                   : Raspi48GB                                -  enabled
    + system.adapter.javascript.0             : javascript            : Raspi48GB                                -  enabled
      system.adapter.mqtt.0                   : mqtt                  : Raspi48GB                                - disabled, port: 1883, bind: 127.0.0.1
      system.adapter.openweathermap.0         : openweathermap        : Raspi48GB                                -  enabled
    + system.adapter.shelly.0                 : shelly                : Raspi48GB                                -  enabled, port: 1882, bind: 0.0.0.0
    + system.adapter.shelly.1                 : shelly                : Raspi48GB                                -  enabled, port: 1882, bind: 0.0.0.0
    + system.adapter.simple-api.0             : simple-api            : Raspi48GB                                -  enabled, port: 8087, bind: 192.168.178.57, run as: admin
    + system.adapter.smartmeter.0             : smartmeter            : Raspi48GB                                -  enabled
    + system.adapter.tankerkoenig.0           : tankerkoenig          : Raspi48GB                                -  enabled
    + system.adapter.telegram.0               : telegram              : Raspi48GB                                -  enabled, port: 8443, bind: 0.0.0.0
    + system.adapter.text2command.0           : text2command          : Raspi48GB                                -  enabled
    + system.adapter.tr-064.0                 : tr-064                : Raspi48GB                                -  enabled
    + system.adapter.vis-2.0                  : vis-2                 : Raspi48GB                                -  enabled
    + system.adapter.web.0                    : web                   : Raspi48GB                                -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
      system.adapter.yr.0                     : yr                    : Raspi48GB                                -  enabled
    
    + instance is alive
    
    Enabled adapters with bindings
    + system.adapter.admin.0                  : admin                 : Raspi48GB                                -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
    + system.adapter.hm-rpc.0                 : hm-rpc                : Raspi48GB                                -  enabled, port: 0
    + system.adapter.hm-rpc.1                 : hm-rpc                : Raspi48GB                                -  enabled, port: 0
    + system.adapter.shelly.0                 : shelly                : Raspi48GB                                -  enabled, port: 1882, bind: 0.0.0.0
    + system.adapter.shelly.1                 : shelly                : Raspi48GB                                -  enabled, port: 1882, bind: 0.0.0.0
    + system.adapter.simple-api.0             : simple-api            : Raspi48GB                                -  enabled, port: 8087, bind: 192.168.178.57, run as: admin
    + system.adapter.telegram.0               : telegram              : Raspi48GB                                -  enabled, port: 8443, bind: 0.0.0.0
    + system.adapter.web.0                    : web                   : Raspi48GB                                -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
    
    ioBroker-Repositories
    ┌─────────┬──────────┬─────────────────────────────────────────────────────────┬──────────────┐
    │ (index) │ name     │ url                                                     │ auto upgrade │
    ├─────────┼──────────┼─────────────────────────────────────────────────────────┼──────────────┤
    │ 0       │ 'stable' │ 'http://download.iobroker.net/sources-dist.json'        │ false        │
    │ 1       │ 'beta'   │ 'http://download.iobroker.net/sources-dist-latest.json' │ false        │
    └─────────┴──────────┴─────────────────────────────────────────────────────────┴──────────────┘
    
    Active repo(s): stable
    Upgrade policy: none
    
    Installed ioBroker-Adapters
    Used repository: stable
    Adapter    "admin"        : 7.7.22   , installed 7.7.22
    Adapter    "alexa2"       : 3.27.4   , installed 3.27.4
    Adapter    "alias-manager": 2.0.0    , installed 2.0.0
    Adapter    "awtrix-light" : 3.0.0    , installed 3.0.0
    Adapter    "backitup"     : 3.3.13   , installed 3.3.13
    Adapter    "broadlink2"   : 2.3.0    , installed 2.3.0
    Adapter    "devices"      : 1.2.8    , installed 1.2.8
    Adapter    "discovery"    : 5.0.0    , installed 5.0.0
    Adapter    "doorbird"     : 3.0.0    , installed 3.0.0
    Adapter    "echarts"      : 1.9.2    , installed 1.9.2
    Adapter    "followthesun" : 0.5.2    , installed 0.5.2
    Adapter    "frontier_silicon": 0.5.0 , installed 0.5.0
    Adapter    "hm-rega"      : 5.1.0    , installed 5.1.0
    Adapter    "hm-rpc"       : 2.0.2    , installed 2.0.2
    Adapter    "influxdb"     : 4.0.2    , installed 4.0.2
    Adapter    "iot"          : 5.0.7    , installed 5.0.7
    Adapter    "javascript"   : 9.0.11   , installed 9.0.11
    Controller "js-controller": 7.0.7    , installed 7.0.7
    Adapter    "mqtt"         : 6.1.4    , installed 6.1.4
    Adapter    "openweathermap": 1.1.2   , installed 1.1.2
    Adapter    "shelly"       : 10.5.2   , installed 10.5.2
    Adapter    "simple-api"   : 2.8.0    , installed 2.8.0
    Adapter    "smartmeter"   : 3.4.0    , installed 3.4.0
    Adapter    "socketio"     : 6.7.1    , installed 7.0.8
    Adapter    "tankerkoenig" : 3.4.0    , installed 3.4.0
    Adapter    "telegram"     : 4.1.0    , installed 4.1.0
    Adapter    "text2command" : 4.0.0    , installed 4.0.0
    Adapter    "tr-064"       : 4.3.0    , installed 4.3.0
    Adapter    "vis-2"        : 2.13.4   , installed 2.13.4
    Adapter    "web"          : 7.0.8    , installed 7.0.8
    Adapter    "ws"           : 2.6.2    , installed 3.0.19
    Adapter    "yr"           : 5.3.0    , installed 5.3.0
    
    Objects and States
    Please stand by - This may take a while
    Objects:        14434
    States:         11397
    
    *** OS-Repositories and Updates ***
    Hit:1 http://archive.raspberrypi.com/debian trixie InRelease
    Hit:2 http://deb.debian.org/debian trixie InRelease
    Hit:3 http://deb.debian.org/debian trixie-updates InRelease
    Hit:4 http://deb.debian.org/debian-security trixie-security InRelease
    Hit:5 https://deb.nodesource.com/node_22.x nodistro InRelease
    Reading package lists...
    Pending systemupdates: 0
    
    *** Listening Ports ***
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          6815       1132/sshd: /usr/sbi
    tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      0          1345       1/init
    tcp        0      0 0.0.0.0:9000            0.0.0.0:*               LISTEN      1001       43665      3054/iobroker.js-co
    tcp        0      0 0.0.0.0:9001            0.0.0.0:*               LISTEN      1001       44508      3054/iobroker.js-co
    tcp        0      0 192.168.178.74:42010    0.0.0.0:*               LISTEN      1001       43949      3258/io.hm-rpc.0
    tcp        0      0 192.168.178.74:42001    0.0.0.0:*               LISTEN      1001       43977      3275/io.hm-rpc.1
    tcp        0      0 0.0.0.0:1882            0.0.0.0:*               LISTEN      1001       45313      3345/io.shelly.1
    tcp        0      0 192.168.178.74:8100     0.0.0.0:*               LISTEN      1001       45415      3413/io.doorbird.0
    tcp6       0      0 :::22                   :::*                    LISTEN      0          9426       1132/sshd: /usr/sbi
    tcp6       0      0 :::111                  :::*                    LISTEN      0          1346       1/init
    tcp6       0      0 :::8082                 :::*                    LISTEN      1001       45650      3590/io.web.0
    tcp6       0      0 :::8081                 :::*                    LISTEN      1001       43766      3072/io.admin.0
    udp        0      0 0.0.0.0:44785           0.0.0.0:*                           1001       45145      3200/io.broadlink2.
    udp        0      0 0.0.0.0:36634           0.0.0.0:*                           1001       74840      3200/io.broadlink2.
    udp        0      0 0.0.0.0:44909           0.0.0.0:*                           1001       58177      3200/io.broadlink2.
    udp        0      0 0.0.0.0:36811           0.0.0.0:*                           1001       45156      3200/io.broadlink2.
    udp        0      0 0.0.0.0:41028           0.0.0.0:*                           1001       45159      3200/io.broadlink2.
    udp        0      0 0.0.0.0:111             0.0.0.0:*                           0          4188       1/init
    udp        0      0 0.0.0.0:49310           0.0.0.0:*                           1001       48065      3200/io.broadlink2.
    udp        0      0 0.0.0.0:53416           0.0.0.0:*                           1001       48071      3200/io.broadlink2.
    udp        0      0 0.0.0.0:41288           0.0.0.0:*                           1001       74845      3200/io.broadlink2.
    udp        0      0 0.0.0.0:57787           0.0.0.0:*                           1001       74843      3200/io.broadlink2.
    udp        0      0 0.0.0.0:37328           0.0.0.0:*                           1001       58175      3200/io.broadlink2.
    udp        0      0 0.0.0.0:57829           0.0.0.0:*                           1001       45886      3200/io.broadlink2.
    udp        0      0 0.0.0.0:57875           0.0.0.0:*                           1001       45157      3200/io.broadlink2.
    udp        0      0 0.0.0.0:53985           0.0.0.0:*                           1001       45889      3200/io.broadlink2.
    udp        0      0 0.0.0.0:33656           0.0.0.0:*                           1001       47458      3200/io.broadlink2.
    udp        0      0 0.0.0.0:37760           0.0.0.0:*                           1001       45895      3200/io.broadlink2.
    udp        0      0 0.0.0.0:58254           0.0.0.0:*                           1001       74847      3200/io.broadlink2.
    udp        0      0 0.0.0.0:50108           0.0.0.0:*                           1001       58181      3200/io.broadlink2.
    udp        0      0 0.0.0.0:54208           0.0.0.0:*                           1001       43921      3200/io.broadlink2.
    udp        0      0 0.0.0.0:33769           0.0.0.0:*                           1001       42710      3200/io.broadlink2.
    udp        0      0 0.0.0.0:37909           0.0.0.0:*                           1001       48069      3200/io.broadlink2.
    udp        0      0 0.0.0.0:5353            0.0.0.0:*                           101        748        627/avahi-daemon: r
    udp        0      0 0.0.0.0:46333           0.0.0.0:*                           1001       74841      3200/io.broadlink2.
    udp        0      0 0.0.0.0:34119           0.0.0.0:*                           1001       43922      3200/io.broadlink2.
    udp        0      0 0.0.0.0:5683            0.0.0.0:*                           1001       44858      3327/io.shelly.0
    udp        0      0 0.0.0.0:55479           0.0.0.0:*                           1001       42998      3200/io.broadlink2.
    udp        0      0 0.0.0.0:39177           0.0.0.0:*                           1001       45497      3200/io.broadlink2.
    udp        0      0 0.0.0.0:47464           0.0.0.0:*                           101        750        627/avahi-daemon: r
    udp        0      0 0.0.0.0:35179           0.0.0.0:*                           1001       58179      3200/io.broadlink2.
    udp        0      0 0.0.0.0:43422           0.0.0.0:*                           1001       45144      3200/io.broadlink2.
    udp        0      0 0.0.0.0:43484           0.0.0.0:*                           1001       45160      3200/io.broadlink2.
    udp        0      0 0.0.0.0:55855           0.0.0.0:*                           1001       42996      3200/io.broadlink2.
    udp        0      0 0.0.0.0:59974           0.0.0.0:*                           1001       42720      3200/io.broadlink2.
    udp        0      0 0.0.0.0:35400           0.0.0.0:*                           1001       42708      3200/io.broadlink2.
    udp        0      0 0.0.0.0:15001           0.0.0.0:*                           1001       45141      3200/io.broadlink2.
    udp        0      0 0.0.0.0:39609           0.0.0.0:*                           1001       45499      3200/io.broadlink2.
    udp        0      0 0.0.0.0:56028           0.0.0.0:*                           1001       42716      3200/io.broadlink2.
    udp        0      0 0.0.0.0:35620           0.0.0.0:*                           1001       45148      3200/io.broadlink2.
    udp        0      0 0.0.0.0:52222           0.0.0.0:*                           1001       48067      3200/io.broadlink2.
    udp        0      0 0.0.0.0:44067           0.0.0.0:*                           1001       74849      3200/io.broadlink2.
    udp        0      0 0.0.0.0:60508           0.0.0.0:*                           1001       58173      3200/io.broadlink2.
    udp        0      0 0.0.0.0:60567           0.0.0.0:*                           1001       48074      3200/io.broadlink2.
    udp        0      0 0.0.0.0:56688           0.0.0.0:*                           1001       45153      3200/io.broadlink2.
    udp        0      0 0.0.0.0:40380           0.0.0.0:*                           1001       42713      3200/io.broadlink2.
    udp        0      0 0.0.0.0:60912           0.0.0.0:*                           1001       45892      3200/io.broadlink2.
    udp        0      0 0.0.0.0:40598           0.0.0.0:*                           1001       46276      3200/io.broadlink2.
    udp6       0      0 :::111                  :::*                                0          4189       1/init
    udp6       0      0 fe80::da3a:ddff:fe4:546 :::*                                0          9484       675/NetworkManager
    udp6       0      0 :::45868                :::*                                101        751        627/avahi-daemon: r
    udp6       0      0 :::5353                 :::*                                101        749        627/avahi-daemon: r
    
    *** Log File - Last 25 Lines ***
    
    2026-02-09 13:17:18.896  - info: web.0 (3590) http server listening on port 8082
    2026-02-09 13:18:55.624  - info: broadlink2.0 (3200) interface to be used: { netmaskBits: 24, address: '192.168.178.74/24', addrs: [ 192, 168, 178, 74 ], cidr: '192.168.178.74/24', bcaddr: '192.168.178.255'
    }:
    2026-02-09 13:18:55.625  - info: broadlink2.0 (3200) discover  [ '192.168.178.31' ] from 0.0.0.0:47724
    2026-02-09 13:21:19.220  - info: smartmeter.0 (3372) Received 13 values, 5 updated
    2026-02-09 13:22:55.627  - info: broadlink2.0 (3200) interface to be used: { netmaskBits: 24, address: '192.168.178.74/24', addrs: [ 192, 168, 178, 74 ], cidr: '192.168.178.74/24', bcaddr: '192.168.178.255'
    }:
    2026-02-09 13:22:55.628  - info: broadlink2.0 (3200) discover  [ '192.168.178.31' ] from 0.0.0.0:46874
    2026-02-09 13:26:20.766  - info: smartmeter.0 (3372) Received 13 values, 6 updated
    2026-02-09 13:30:55.637  - info: broadlink2.0 (3200) interface to be used: { netmaskBits: 24, address: '192.168.178.74/24', addrs: [ 192, 168, 178, 74 ], cidr: '192.168.178.74/24', bcaddr: '192.168.178.255'
    }:
    2026-02-09 13:30:55.639  - info: broadlink2.0 (3200) discover  [ '192.168.178.31' ] from 0.0.0.0:54686
    2026-02-09 13:31:21.487  - info: smartmeter.0 (3372) Received 13 values, 8 updated
    2026-02-09 13:36:25.803  - info: smartmeter.0 (3372) Received 13 values, 8 updated
    2026-02-09 13:40:29.045  - info: host.Raspi48GB instance system.adapter.yr.0 in version "5.3.0" started with pid 4573
    2026-02-09 13:40:31.687  - info: yr.0 (4573) starting. Version 5.3.0 in /opt/iobroker/node_modules/iobroker.yr, node: v22.22.0, js-controller: 7.0.7
    2026-02-09 13:40:31.713  - info: yr.0 (4573) longitude/longitude will be set by self-Config - longitude: 7.0362624235667255 latitude: 50.622376836807405
    2026-02-09 13:41:01.657  - info: yr.0 (4573) Data updated.
    2026-02-09 13:41:01.660  - info: yr.0 (4573) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
    2026-02-09 13:41:02.200  - info: host.Raspi48GB instance system.adapter.yr.0 having pid 4573 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
    2026-02-09 13:41:27.244  - info: smartmeter.0 (3372) Received 13 values, 7 updated
    2026-02-09 13:46:30.025  - info: smartmeter.0 (3372) Received 13 values, 5 updated
    2026-02-09 13:46:55.652  - info: broadlink2.0 (3200) interface to be used: { netmaskBits: 24, address: '192.168.178.74/24', addrs: [ 192, 168, 178, 74 ], cidr: '192.168.178.74/24', bcaddr: '192.168.178.255'
    }:
    2026-02-09 13:46:55.653  - info: broadlink2.0 (3200) discover  [ '192.168.178.31' ] from 0.0.0.0:36634
    
    

    Mein System:

    PlatformBetriebssystem:linux
    Architektur:arm64
    CPUs:4
    Geschwindigkeit:1800 MHz
    Modell:Cortex-A72
    RAM:7.6 GB
    System-Betriebszeit:00:37:15
    Node.js:v22.22.0
    Zeit:1770639333920
    Zeitversatz:-60
    NPM:10.9.4
    Adapter-Anzahl:595
    Datenträgergröße:58.0 GB
    Freier Festplattenspeicher:51.1 GB
    Aktive Instanzen:5
    Pfad:/opt/iobroker/
    Betriebszeit:00:00:23
    aktiv:true
    _nodeCurrent:22.22.0
    _nodeNewest:22.22.0
    _nodeNewestNext:22.22.0
    _npmCurrent:10.9.4
    _npmNewest:10.9.4
    _npmNewestNext:10.9.4
    
    
    Thomas BraunT Online
    Thomas BraunT Online
    Thomas Braun
    Most Active
    schrieb am zuletzt editiert von
    #54

    @searcher57 sagte in RPI-Monitor und GPIO rpi2 v2.3.1:

    pi

    Bitte nicht mehr den username 'pi' bei neuen Installationen verwenden.

    Zum Thema:

    Ist die libgpiod installiert?

    sudo apt update
    apt policy libgpio*
    

    anschauen.

    Linux-Werkzeugkasten:
    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
    NodeJS Fixer Skript:
    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

    1 Antwort Letzte Antwort
    0
    • S Offline
      S Offline
      searcher57
      schrieb am zuletzt editiert von
      #55

      Ich mach es nochmal:

      sudo apt update
      apt policy libgpio*
      OK:1 http://deb.debian.org/debian trixie InRelease
      OK:2 http://deb.debian.org/debian trixie-updates InRelease
      OK:3 http://deb.debian.org/debian-security trixie-security InRelease
      OK:4 http://archive.raspberrypi.com/debian trixie InRelease
      OK:5 https://deb.nodesource.com/node_22.x nodistro InRelease
      Alle Pakete sind aktuell.
      libgpiod-dev:
        Installiert:           2.2.1-2+deb13u1
        Installationskandidat: 2.2.1-2+deb13u1
        Versionstabelle:
       *** 2.2.1-2+deb13u1 500
              500 http://deb.debian.org/debian trixie/main arm64 Packages
              100 /var/lib/dpkg/status
      libgpiod-doc:
        Installiert:           (keine)
        Installationskandidat: 2.2.1-2+deb13u1
        Versionstabelle:
           2.2.1-2+deb13u1 500
              500 http://deb.debian.org/debian trixie/main arm64 Packages
              500 http://deb.debian.org/debian trixie/main armhf Packages
      libgpiolib0:
        Installiert:           20251120-1
        Installationskandidat: 20251120-1
      lines 1-17...skipping...
      libgpiod-dev:
        Installiert:           2.2.1-2+deb13u1
        Installationskandidat: 2.2.1-2+deb13u1
        Versionstabelle:
       *** 2.2.1-2+deb13u1 500
              500 http://deb.debian.org/debian trixie/main arm64 Packages
              100 /var/lib/dpkg/status
      libgpiod-doc:
        Installiert:           (keine)
        Installationskandidat: 2.2.1-2+deb13u1
        Versionstabelle:
           2.2.1-2+deb13u1 500
              500 http://deb.debian.org/debian trixie/main arm64 Packages
              500 http://deb.debian.org/debian trixie/main armhf Packages
      libgpiolib0:
        Installiert:           20251120-1
        Installationskandidat: 20251120-1
        Versionstabelle:
       *** 20251120-1 500
              500 http://archive.raspberrypi.com/debian trixie/main arm64 Packages
              100 /var/lib/dpkg/status
      libgpiolib-dev:
        Installiert:           (keine)
        Installationskandidat: 20251120-1
        Versionstabelle:
           20251120-1 500
              500 http://archive.raspberrypi.com/debian trixie/main arm64 Packages
      libgpiolib0-dbgsym:
        Installiert:           (keine)
        Installationskandidat: 20251120-1
        Versionstabelle:
           20251120-1 500
              500 http://archive.raspberrypi.com/debian trixie/main arm64 Packages
      libgpiod3:
        Installiert:           2.2.1-2+deb13u1
        Installationskandidat: 2.2.1-2+deb13u1
        Versionstabelle:
       *** 2.2.1-2+deb13u1 500
              500 http://deb.debian.org/debian trixie/main arm64 Packages
              100 /var/lib/dpkg/status
      ~
      ~
      ~
      ~
      ~
      ~
      ~
      ~
      lines 1-40/40 (END)
      
      
      1 Antwort Letzte Antwort
      0
      • S Offline
        S Offline
        searcher57
        schrieb am zuletzt editiert von
        #56

        Nach Installation kommt das:

        $ iobroker add rpi2 --host Raspi48GB
        
        NPM version: 10.9.4
        
        Installing iobroker.rpi2@2.4.0... (System call)
        
        npm error code 1npm error path /opt/iobroker/node_modules/opengpionpm error command failednpm error command sh -c node-gyp rebuildnpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betretennpm error CXX(target) Release/obj.target/opengpio/cpp/opengpio.onpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassennpm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’npm error 14 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~npm error | gpiod::linenpm error In file included from /usr/include/gpiodcxx/chip.hpp:21,npm error from /usr/include/gpiod.hpp:27,npm error from ../cpp/opengpio.cpp:3:npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:30:22: error: ‘line’ is not capturednpm error 30 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-defaultnpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:34:52: error: ‘line’ is not capturednpm error 34 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-defaultnpm error 33 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’npm error 49 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:66:9: error: ‘line’ is not capturednpm error 66 | line.set_value(value); });npm error | ^~~~npm error ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-defaultnpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:69:52: error: ‘line’ is not capturednpm error 69 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-defaultnpm error 68 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 81 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’npm error 92 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:111:22: error: ‘line’ is not capturednpm error 111 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-defaultnpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’npm error 115 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’npm error 127 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:131:33: error: ‘line’ is not capturednpm error 131 | bool hasEvent = line.event_wait(chrono::milliseconds(1));npm error | ^~~~npm error ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-defaultnpm error 124 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?npm error 134 | gpiod::line_event event = line.event_read();npm error | ^~~~~~~~~~npm error | info_eventnpm error ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?npm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~npm error | serventnpm error ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declarednpm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~~~~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’npm error 147 | data->line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 168 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’npm error 196 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’npm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 213 | data->line = line;npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’npm error 224 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:264:17: error: ‘line’ is not capturednpm error 264 | line.set_value(true);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:278:17: error: ‘line’ is not capturednpm error 278 | line.set_value(false);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’npm error 327 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:328:13: error: ‘line’ is not capturednpm error 328 | line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-defaultnpm error 324 | [](uv_work_t *req, int status)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1npm error gyp ERR! build error npm error gyp ERR! stack Error: `make` failed with exit code: 2npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)npm error gyp ERR! System Linux 6.12.62+rpt-rpi-v8npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm error gyp ERR! cwd /opt/iobroker/node_modules/opengpionpm error gyp ERR! node -v v22.22.0npm error gyp ERR! node-gyp -v v11.2.0npm error gyp ERR! not oknpm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_10_48_843Z-debug-0.log
        
        host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
        
        ERROR: Process exited with code 25
        
        1 Antwort Letzte Antwort
        0
        • S Offline
          S Offline
          searcher57
          schrieb am zuletzt editiert von
          #57
          $ iobroker add rpi2 --host Raspi48GB
          
          NPM version: 10.9.4
          
          Installing iobroker.rpi2@2.4.0... (System call)
          
          npm error code 1npm error path /opt/iobroker/node_modules/opengpionpm error command failednpm error command sh -c node-gyp rebuildnpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betretennpm error CXX(target) Release/obj.target/opengpio/cpp/opengpio.onpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassennpm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’npm error 14 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~npm error | gpiod::linenpm error In file included from /usr/include/gpiodcxx/chip.hpp:21,npm error from /usr/include/gpiod.hpp:27,npm error from ../cpp/opengpio.cpp:3:npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:30:22: error: ‘line’ is not capturednpm error 30 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-defaultnpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:34:52: error: ‘line’ is not capturednpm error 34 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-defaultnpm error 33 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’npm error 49 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:66:9: error: ‘line’ is not capturednpm error 66 | line.set_value(value); });npm error | ^~~~npm error ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-defaultnpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:69:52: error: ‘line’ is not capturednpm error 69 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-defaultnpm error 68 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 81 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’npm error 92 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:111:22: error: ‘line’ is not capturednpm error 111 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-defaultnpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’npm error 115 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’npm error 127 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:131:33: error: ‘line’ is not capturednpm error 131 | bool hasEvent = line.event_wait(chrono::milliseconds(1));npm error | ^~~~npm error ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-defaultnpm error 124 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?npm error 134 | gpiod::line_event event = line.event_read();npm error | ^~~~~~~~~~npm error | info_eventnpm error ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?npm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~npm error | serventnpm error ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declarednpm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~~~~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’npm error 147 | data->line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 168 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’npm error 196 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’npm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 213 | data->line = line;npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’npm error 224 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:264:17: error: ‘line’ is not capturednpm error 264 | line.set_value(true);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:278:17: error: ‘line’ is not capturednpm error 278 | line.set_value(false);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’npm error 327 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:328:13: error: ‘line’ is not capturednpm error 328 | line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-defaultnpm error 324 | [](uv_work_t *req, int status)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1npm error gyp ERR! build error npm error gyp ERR! stack Error: `make` failed with exit code: 2npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)npm error gyp ERR! System Linux 6.12.62+rpt-rpi-v8npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm error gyp ERR! cwd /opt/iobroker/node_modules/opengpionpm error gyp ERR! node -v v22.22.0npm error gyp ERR! node-gyp -v v11.2.0npm error gyp ERR! not oknpm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_28_05_472Z-debug-0.log
          
          host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
          
          ERROR: Process exited with code 25
          
          Thomas BraunT 1 Antwort Letzte Antwort
          0
          • S searcher57
            $ iobroker add rpi2 --host Raspi48GB
            
            NPM version: 10.9.4
            
            Installing iobroker.rpi2@2.4.0... (System call)
            
            npm error code 1npm error path /opt/iobroker/node_modules/opengpionpm error command failednpm error command sh -c node-gyp rebuildnpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betretennpm error CXX(target) Release/obj.target/opengpio/cpp/opengpio.onpm error make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassennpm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’npm error 14 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~npm error | gpiod::linenpm error In file included from /usr/include/gpiodcxx/chip.hpp:21,npm error from /usr/include/gpiod.hpp:27,npm error from ../cpp/opengpio.cpp:3:npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’npm error 19 | line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});npm error | ^~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:30:22: error: ‘line’ is not capturednpm error 30 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-defaultnpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:34:52: error: ‘line’ is not capturednpm error 34 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-defaultnpm error 33 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared herenpm error 28 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’npm error 49 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 54 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:66:9: error: ‘line’ is not capturednpm error 66 | line.set_value(value); });npm error | ^~~~npm error ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-defaultnpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:69:52: error: ‘line’ is not capturednpm error 69 | { line.release(); });npm error | ^~~~npm error ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-defaultnpm error 68 | Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared herenpm error 63 | Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 81 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’npm error 92 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’npm error 100 | line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:111:22: error: ‘line’ is not capturednpm error 111 | bool value = line.get_value();npm error | ^~~~npm error ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-defaultnpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’npm error 115 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’npm error 127 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:131:33: error: ‘line’ is not capturednpm error 131 | bool hasEvent = line.event_wait(chrono::milliseconds(1));npm error | ^~~~npm error ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-defaultnpm error 124 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared herenpm error 109 | Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)npm error | ^~~~npm error ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?npm error 134 | gpiod::line_event event = line.event_read();npm error | ^~~~~~~~~~npm error | info_eventnpm error ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?npm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~npm error | serventnpm error ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declarednpm error 135 | bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;npm error | ^~~~~~~~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’npm error 147 | data->line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp: At global scope:npm error ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a typenpm error 168 | gpiod::line line;npm error | ^~~~npm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:npm error ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’npm error 196 | gpiod::line line = chip.get_line(lineNumber);npm error | ^~~~npm error ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’npm error 201 | line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);npm error | ^~~~~~~~~~~~~~~~npm error ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’npm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?npm error 213 | data->line = line;npm error | ^~~~npm error | gpiod::linenpm error /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared herenpm error 24 | namespace line {npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’npm error 224 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:264:17: error: ‘line’ is not capturednpm error 264 | line.set_value(true);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp:278:17: error: ‘line’ is not capturednpm error 278 | line.set_value(false);npm error | ^~~~npm error ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-defaultnpm error 221 | [](uv_work_t *req)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error ../cpp/opengpio.cpp: In lambda function:npm error ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’npm error 327 | gpiod::line line = data->line;npm error | ^~~~npm error ../cpp/opengpio.cpp:328:13: error: ‘line’ is not capturednpm error 328 | line.release();npm error | ^~~~npm error ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-defaultnpm error 324 | [](uv_work_t *req, int status)npm error | ^npm error ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared herenpm error 213 | data->line = line;npm error | ^~~~npm error make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1npm error gyp ERR! build error npm error gyp ERR! stack Error: `make` failed with exit code: 2npm error gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)npm error gyp ERR! System Linux 6.12.62+rpt-rpi-v8npm error gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm error gyp ERR! cwd /opt/iobroker/node_modules/opengpionpm error gyp ERR! node -v v22.22.0npm error gyp ERR! node-gyp -v v11.2.0npm error gyp ERR! not oknpm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_28_05_472Z-debug-0.log
            
            host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
            
            ERROR: Process exited with code 25
            
            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            schrieb am zuletzt editiert von
            #58

            @searcher57 sagte in RPI-Monitor und GPIO rpi2 v2.3.1:

            Mach das mal in einem Terminal und kopier die Ausgaben dann vor dort. Da werden dann auch Zeilenumbrüche richtig dargestellt und man kann das lesen.

            iobroker add rpi2 --host Raspi48GB --debug
            

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            1 Antwort Letzte Antwort
            0
            • S Offline
              S Offline
              searcher57
              schrieb am zuletzt editiert von
              #59
               $ iobroker add rpi2 --host Raspi48GB --debug
              NPM version: 10.9.4
              Installing iobroker.rpi2@2.4.0... (System call)
              
              > iobroker.rpi2@2.4.0 preinstall
              > sudo apt-get install -y libgpiod-dev || exit 0
              
              Paketlisten werden gelesen…
              Abhängigkeitsbaum wird aufgebaut…
              Statusinformationen werden eingelesen…
              libgpiod-dev ist schon die neueste Version (2.2.1-2+deb13u1).
              0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
              
              > node-dht-sensor@0.4.5 install
              > node-gyp configure
              
              gyp info it worked if it ends with ok
              gyp info using node-gyp@11.2.0
              gyp info using node@22.22.0 | linux | arm64
              gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
              
              gyp info spawn /usr/bin/python3
              gyp info spawn args [
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
              gyp info spawn args 'binding.gyp',
              gyp info spawn args '-f',
              gyp info spawn args 'make',
              gyp info spawn args '-I',
              gyp info spawn args '/opt/iobroker/node_modules/node-dht-sensor/build/config.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
              gyp info spawn args '-Dlibrary=shared_library',
              gyp info spawn args '-Dvisibility=default',
              gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
              gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
              gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
              gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-dht-sensor',
              gyp info spawn args '-Dnode_engine=v8',
              gyp info spawn args '--depth=.',
              gyp info spawn args '--no-parallel',
              gyp info spawn args '--generator-output',
              gyp info spawn args 'build',
              gyp info spawn args '-Goutput_dir=.'
              gyp info spawn args ]
              gyp info ok
              
              > opengpio@1.0.18 install
              > node-gyp rebuild
              
              gyp info it worked if it ends with ok
              gyp info using node-gyp@11.2.0
              gyp info using node@22.22.0 | linux | arm64
              gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
              
              gyp info spawn /usr/bin/python3
              gyp info spawn args [
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
              gyp info spawn args 'binding.gyp',
              gyp info spawn args '-f',
              gyp info spawn args 'make',
              gyp info spawn args '-I',
              gyp info spawn args '/opt/iobroker/node_modules/opengpio/build/config.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
              gyp info spawn args '-Dlibrary=shared_library',
              gyp info spawn args '-Dvisibility=default',
              gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
              gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
              gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
              gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/opengpio',
              gyp info spawn args '-Dnode_engine=v8',
              gyp info spawn args '--depth=.',
              gyp info spawn args '--no-parallel',
              gyp info spawn args '--generator-output',
              gyp info spawn args 'build',
              gyp info spawn args '-Goutput_dir=.'
              gyp info spawn args ]
              gyp info spawn make
              gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
              make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betreten
                CXX(target) Release/obj.target/opengpio/cpp/opengpio.o
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’
                 14 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                    |         ^~~~
                    |         gpiod::line
              In file included from /usr/include/gpiodcxx/chip.hpp:21,
                               from /usr/include/gpiod.hpp:27,
                               from ../cpp/opengpio.cpp:3:
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’
                 19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                    |                                                          ^~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:30:22: error: ‘line’ is not captured
                 30 |         bool value = line.get_value();
                    |                      ^~~~
              ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-default
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:34:52: error: ‘line’ is not captured
                 34 |                                                  { line.release(); });
                    |                                                    ^~~~
              ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-default
                 33 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                   ^
              ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’
                 49 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                 54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:66:9: error: ‘line’ is not captured
                 66 |         line.set_value(value); });
                    |         ^~~~
              ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-default
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:69:52: error: ‘line’ is not captured
                 69 |                                                  { line.release(); });
                    |                                                    ^~~~
              ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-default
                 68 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                   ^
              ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: At global scope:
              ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                 81 |     gpiod::line line;
                    |            ^~~~
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’
                 92 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’
                100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:111:22: error: ‘line’ is not captured
                111 |         bool value = line.get_value();
                    |                      ^~~~
              ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-default
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’
                115 |     data->line = line;
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’
                127 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:131:33: error: ‘line’ is not captured
                131 |                 bool hasEvent = line.event_wait(chrono::milliseconds(1));
                    |                                 ^~~~
              ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-default
                124 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?
                134 |                     gpiod::line_event event = line.event_read();
                    |                            ^~~~~~~~~~
                    |                            info_event
              ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?
                135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                    |                                  ^~~~~
                    |                                  servent
              ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declared
                135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                    |                                                             ^~~~~~~~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’
                147 |             data->line.release();
                    |                   ^~~~
              ../cpp/opengpio.cpp: At global scope:
              ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                168 |     gpiod::line line;
                    |            ^~~~
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’
                196 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’
                213 |     data->line = line;
                    |           ^~~~
              ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                213 |     data->line = line;
                    |                  ^~~~
                    |                  gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’
                224 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:264:17: error: ‘line’ is not captured
                264 |                 line.set_value(true);
                    |                 ^~~~
              ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                221 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              ../cpp/opengpio.cpp:278:17: error: ‘line’ is not captured
                278 |                 line.set_value(false);
                    |                 ^~~~
              ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                221 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’
                327 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:328:13: error: ‘line’ is not captured
                328 |             line.release();
                    |             ^~~~
              ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-default
                324 |         [](uv_work_t *req, int status)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1
              make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassen
              gyp ERR! build error
              gyp ERR! stack Error: `make` failed with exit code: 2
              gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
              gyp ERR! System Linux 6.12.62+rpt-rpi-v8
              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/opengpio
              gyp ERR! node -v v22.22.0
              gyp ERR! node-gyp -v v11.2.0
              gyp ERR! not ok
              npm error code 1
              npm error path /opt/iobroker/node_modules/opengpio
              npm error command failed
              npm error command sh -c node-gyp rebuild
              npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_47_48_434Z-debug-0.log
              gyp info it worked if it ends with ok
              gyp info using node-gyp@11.2.0
              gyp info using node@22.22.0 | linux | arm64
              gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
              gyp info spawn /usr/bin/python3
              gyp info spawn args [
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
              gyp info spawn args 'binding.gyp',
              gyp info spawn args '-f',
              gyp info spawn args 'make',
              gyp info spawn args '-I',
              gyp info spawn args '/opt/iobroker/node_modules/node-dht-sensor/build/config.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
              gyp info spawn args '-Dlibrary=shared_library',
              gyp info spawn args '-Dvisibility=default',
              gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
              gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
              gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
              gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-dht-sensor',
              gyp info spawn args '-Dnode_engine=v8',
              gyp info spawn args '--depth=.',
              gyp info spawn args '--no-parallel',
              gyp info spawn args '--generator-output',
              gyp info spawn args 'build',
              gyp info spawn args '-Goutput_dir=.'
              gyp info spawn args ]
              gyp info ok
              gyp info it worked if it ends with ok
              gyp info using node-gyp@11.2.0
              gyp info using node@22.22.0 | linux | arm64
              gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
              gyp info spawn /usr/bin/python3
              gyp info spawn args [
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
              gyp info spawn args 'binding.gyp',
              gyp info spawn args '-f',
              gyp info spawn args 'make',
              gyp info spawn args '-I',
              gyp info spawn args '/opt/iobroker/node_modules/opengpio/build/config.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
              gyp info spawn args '-I',
              gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
              gyp info spawn args '-Dlibrary=shared_library',
              gyp info spawn args '-Dvisibility=default',
              gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
              gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
              gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
              gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/opengpio',
              gyp info spawn args '-Dnode_engine=v8',
              gyp info spawn args '--depth=.',
              gyp info spawn args '--no-parallel',
              gyp info spawn args '--generator-output',
              gyp info spawn args 'build',
              gyp info spawn args '-Goutput_dir=.'
              gyp info spawn args ]
              gyp info spawn make
              gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’
                 14 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                    |         ^~~~
                    |         gpiod::line
              In file included from /usr/include/gpiodcxx/chip.hpp:21,
                               from /usr/include/gpiod.hpp:27,
                               from ../cpp/opengpio.cpp:3:
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’
                 19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                    |                                                          ^~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:30:22: error: ‘line’ is not captured
                 30 |         bool value = line.get_value();
                    |                      ^~~~
              ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-default
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:34:52: error: ‘line’ is not captured
                 34 |                                                  { line.release(); });
                    |                                                    ^~~~
              ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-default
                 33 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                   ^
              ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                 28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’
                 49 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                 54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:66:9: error: ‘line’ is not captured
                 66 |         line.set_value(value); });
                    |         ^~~~
              ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-default
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:69:52: error: ‘line’ is not captured
                 69 |                                                  { line.release(); });
                    |                                                    ^~~~
              ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-default
                 68 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                   ^
              ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                 63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: At global scope:
              ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                 81 |     gpiod::line line;
                    |            ^~~~
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’
                 92 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’
                100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
                    |                                                              gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:111:22: error: ‘line’ is not captured
                111 |         bool value = line.get_value();
                    |                      ^~~~
              ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-default
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                                  ^
              ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’
                115 |     data->line = line;
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’
                127 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:131:33: error: ‘line’ is not captured
                131 |                 bool hasEvent = line.event_wait(chrono::milliseconds(1));
                    |                                 ^~~~
              ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-default
                124 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                    |                                                              ^~~~
              ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?
                134 |                     gpiod::line_event event = line.event_read();
                    |                            ^~~~~~~~~~
                    |                            info_event
              ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?
                135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                    |                                  ^~~~~
                    |                                  servent
              ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declared
                135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                    |                                                             ^~~~~~~~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’
                147 |             data->line.release();
                    |                   ^~~~
              ../cpp/opengpio.cpp: At global scope:
              ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                168 |     gpiod::line line;
                    |            ^~~~
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:
              ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’
                196 |     gpiod::line line = chip.get_line(lineNumber);
                    |                 ^~~~
              ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |         ^~~~
                    |         gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                    |                                                          ^~~~~~~~~~~~~~~~
              ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’
                213 |     data->line = line;
                    |           ^~~~
              ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                213 |     data->line = line;
                    |                  ^~~~
                    |                  gpiod::line
              /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                 24 | namespace line {
                    |           ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’
                224 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:264:17: error: ‘line’ is not captured
                264 |                 line.set_value(true);
                    |                 ^~~~
              ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                221 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              ../cpp/opengpio.cpp:278:17: error: ‘line’ is not captured
                278 |                 line.set_value(false);
                    |                 ^~~~
              ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                221 |         [](uv_work_t *req)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              ../cpp/opengpio.cpp: In lambda function:
              ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’
                327 |             gpiod::line line = data->line;
                    |                         ^~~~
              ../cpp/opengpio.cpp:328:13: error: ‘line’ is not captured
                328 |             line.release();
                    |             ^~~~
              ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-default
                324 |         [](uv_work_t *req, int status)
                    |          ^
              ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                213 |     data->line = line;
                    |                  ^~~~
              make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1
              gyp ERR! build error
              gyp ERR! stack Error: `make` failed with exit code: 2
              gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
              gyp ERR! System Linux 6.12.62+rpt-rpi-v8
              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/opengpio
              gyp ERR! node -v v22.22.0
              gyp ERR! node-gyp -v v11.2.0
              gyp ERR! not ok
              npm error code 1
              npm error path /opt/iobroker/node_modules/opengpio
              npm error command failed
              npm error command sh -c node-gyp rebuild
              npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_47_48_434Z-debug-0.log
              host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
              
              
              Thomas BraunT 1 Antwort Letzte Antwort
              0
              • S searcher57
                 $ iobroker add rpi2 --host Raspi48GB --debug
                NPM version: 10.9.4
                Installing iobroker.rpi2@2.4.0... (System call)
                
                > iobroker.rpi2@2.4.0 preinstall
                > sudo apt-get install -y libgpiod-dev || exit 0
                
                Paketlisten werden gelesen…
                Abhängigkeitsbaum wird aufgebaut…
                Statusinformationen werden eingelesen…
                libgpiod-dev ist schon die neueste Version (2.2.1-2+deb13u1).
                0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                
                > node-dht-sensor@0.4.5 install
                > node-gyp configure
                
                gyp info it worked if it ends with ok
                gyp info using node-gyp@11.2.0
                gyp info using node@22.22.0 | linux | arm64
                gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
                
                gyp info spawn /usr/bin/python3
                gyp info spawn args [
                gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
                gyp info spawn args 'binding.gyp',
                gyp info spawn args '-f',
                gyp info spawn args 'make',
                gyp info spawn args '-I',
                gyp info spawn args '/opt/iobroker/node_modules/node-dht-sensor/build/config.gypi',
                gyp info spawn args '-I',
                gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
                gyp info spawn args '-I',
                gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
                gyp info spawn args '-Dlibrary=shared_library',
                gyp info spawn args '-Dvisibility=default',
                gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
                gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
                gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
                gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-dht-sensor',
                gyp info spawn args '-Dnode_engine=v8',
                gyp info spawn args '--depth=.',
                gyp info spawn args '--no-parallel',
                gyp info spawn args '--generator-output',
                gyp info spawn args 'build',
                gyp info spawn args '-Goutput_dir=.'
                gyp info spawn args ]
                gyp info ok
                
                > opengpio@1.0.18 install
                > node-gyp rebuild
                
                gyp info it worked if it ends with ok
                gyp info using node-gyp@11.2.0
                gyp info using node@22.22.0 | linux | arm64
                gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
                
                gyp info spawn /usr/bin/python3
                gyp info spawn args [
                gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
                gyp info spawn args 'binding.gyp',
                gyp info spawn args '-f',
                gyp info spawn args 'make',
                gyp info spawn args '-I',
                gyp info spawn args '/opt/iobroker/node_modules/opengpio/build/config.gypi',
                gyp info spawn args '-I',
                gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
                gyp info spawn args '-I',
                gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
                gyp info spawn args '-Dlibrary=shared_library',
                gyp info spawn args '-Dvisibility=default',
                gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
                gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
                gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
                gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/opengpio',
                gyp info spawn args '-Dnode_engine=v8',
                gyp info spawn args '--depth=.',
                gyp info spawn args '--no-parallel',
                gyp info spawn args '--generator-output',
                gyp info spawn args 'build',
                gyp info spawn args '-Goutput_dir=.'
                gyp info spawn args ]
                gyp info spawn make
                gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
                make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird betreten
                  CXX(target) Release/obj.target/opengpio/cpp/opengpio.o
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’
                   14 |     gpiod::line line = chip.get_line(lineNumber);
                      |                 ^~~~
                ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                   19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                      |         ^~~~
                      |         gpiod::line
                In file included from /usr/include/gpiodcxx/chip.hpp:21,
                                 from /usr/include/gpiod.hpp:27,
                                 from ../cpp/opengpio.cpp:3:
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’
                   19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                      |                                                          ^~~~~~~~~~~~~~~
                ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                   28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                      |                                                              gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:30:22: error: ‘line’ is not captured
                   30 |         bool value = line.get_value();
                      |                      ^~~~
                ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-default
                   28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                  ^
                ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                   28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:34:52: error: ‘line’ is not captured
                   34 |                                                  { line.release(); });
                      |                                                    ^~~~
                ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-default
                   33 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                   ^
                ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                   28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’
                   49 |     gpiod::line line = chip.get_line(lineNumber);
                      |                 ^~~~
                ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                   54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                      |         ^~~~
                      |         gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                   54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                      |                                                          ^~~~~~~~~~~~~~~~
                ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                   63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                      |                                                              gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:66:9: error: ‘line’ is not captured
                   66 |         line.set_value(value); });
                      |         ^~~~
                ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-default
                   63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                  ^
                ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                   63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:69:52: error: ‘line’ is not captured
                   69 |                                                  { line.release(); });
                      |                                                    ^~~~
                ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-default
                   68 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                   ^
                ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                   63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: At global scope:
                ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                   81 |     gpiod::line line;
                      |            ^~~~
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’
                   92 |     gpiod::line line = chip.get_line(lineNumber);
                      |                 ^~~~
                ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                  100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                      |         ^~~~
                      |         gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’
                  100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                      |                                                          ^~~~~~~~~~~~~~~~
                ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                  109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                      |                                                              gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:111:22: error: ‘line’ is not captured
                  111 |         bool value = line.get_value();
                      |                      ^~~~
                ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-default
                  109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                  ^
                ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                  109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’
                  115 |     data->line = line;
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’
                  127 |             gpiod::line line = data->line;
                      |                         ^~~~
                ../cpp/opengpio.cpp:131:33: error: ‘line’ is not captured
                  131 |                 bool hasEvent = line.event_wait(chrono::milliseconds(1));
                      |                                 ^~~~
                ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-default
                  124 |         [](uv_work_t *req)
                      |          ^
                ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                  109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?
                  134 |                     gpiod::line_event event = line.event_read();
                      |                            ^~~~~~~~~~
                      |                            info_event
                ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?
                  135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                      |                                  ^~~~~
                      |                                  servent
                ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declared
                  135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                      |                                                             ^~~~~~~~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’
                  147 |             data->line.release();
                      |                   ^~~~
                ../cpp/opengpio.cpp: At global scope:
                ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                  168 |     gpiod::line line;
                      |            ^~~~
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’
                  196 |     gpiod::line line = chip.get_line(lineNumber);
                      |                 ^~~~
                ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                  201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                      |         ^~~~
                      |         gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                  201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                      |                                                          ^~~~~~~~~~~~~~~~
                ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’
                  213 |     data->line = line;
                      |           ^~~~
                ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                  213 |     data->line = line;
                      |                  ^~~~
                      |                  gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’
                  224 |             gpiod::line line = data->line;
                      |                         ^~~~
                ../cpp/opengpio.cpp:264:17: error: ‘line’ is not captured
                  264 |                 line.set_value(true);
                      |                 ^~~~
                ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                  221 |         [](uv_work_t *req)
                      |          ^
                ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                  213 |     data->line = line;
                      |                  ^~~~
                ../cpp/opengpio.cpp:278:17: error: ‘line’ is not captured
                  278 |                 line.set_value(false);
                      |                 ^~~~
                ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                  221 |         [](uv_work_t *req)
                      |          ^
                ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                  213 |     data->line = line;
                      |                  ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’
                  327 |             gpiod::line line = data->line;
                      |                         ^~~~
                ../cpp/opengpio.cpp:328:13: error: ‘line’ is not captured
                  328 |             line.release();
                      |             ^~~~
                ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-default
                  324 |         [](uv_work_t *req, int status)
                      |          ^
                ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                  213 |     data->line = line;
                      |                  ^~~~
                make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1
                make: Verzeichnis „/opt/iobroker/node_modules/opengpio/build“ wird verlassen
                gyp ERR! build error
                gyp ERR! stack Error: `make` failed with exit code: 2
                gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
                gyp ERR! System Linux 6.12.62+rpt-rpi-v8
                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/opengpio
                gyp ERR! node -v v22.22.0
                gyp ERR! node-gyp -v v11.2.0
                gyp ERR! not ok
                npm error code 1
                npm error path /opt/iobroker/node_modules/opengpio
                npm error command failed
                npm error command sh -c node-gyp rebuild
                npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_47_48_434Z-debug-0.log
                gyp info it worked if it ends with ok
                gyp info using node-gyp@11.2.0
                gyp info using node@22.22.0 | linux | arm64
                gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
                gyp info spawn /usr/bin/python3
                gyp info spawn args [
                gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
                gyp info spawn args 'binding.gyp',
                gyp info spawn args '-f',
                gyp info spawn args 'make',
                gyp info spawn args '-I',
                gyp info spawn args '/opt/iobroker/node_modules/node-dht-sensor/build/config.gypi',
                gyp info spawn args '-I',
                gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
                gyp info spawn args '-I',
                gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
                gyp info spawn args '-Dlibrary=shared_library',
                gyp info spawn args '-Dvisibility=default',
                gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
                gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
                gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
                gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-dht-sensor',
                gyp info spawn args '-Dnode_engine=v8',
                gyp info spawn args '--depth=.',
                gyp info spawn args '--no-parallel',
                gyp info spawn args '--generator-output',
                gyp info spawn args 'build',
                gyp info spawn args '-Goutput_dir=.'
                gyp info spawn args ]
                gyp info ok
                gyp info it worked if it ends with ok
                gyp info using node-gyp@11.2.0
                gyp info using node@22.22.0 | linux | arm64
                gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
                gyp info spawn /usr/bin/python3
                gyp info spawn args [
                gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
                gyp info spawn args 'binding.gyp',
                gyp info spawn args '-f',
                gyp info spawn args 'make',
                gyp info spawn args '-I',
                gyp info spawn args '/opt/iobroker/node_modules/opengpio/build/config.gypi',
                gyp info spawn args '-I',
                gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
                gyp info spawn args '-I',
                gyp info spawn args '/home/iobroker/.cache/node-gyp/22.22.0/include/node/common.gypi',
                gyp info spawn args '-Dlibrary=shared_library',
                gyp info spawn args '-Dvisibility=default',
                gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/22.22.0',
                gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
                gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/22.22.0/<(target_arch)/node.lib',
                gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/opengpio',
                gyp info spawn args '-Dnode_engine=v8',
                gyp info spawn args '--depth=.',
                gyp info spawn args '--no-parallel',
                gyp info spawn args '--generator-output',
                gyp info spawn args 'build',
                gyp info spawn args '-Goutput_dir=.'
                gyp info spawn args ]
                gyp info spawn make
                gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioInput(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:14:17: error: expected primary-expression before ‘line’
                   14 |     gpiod::line line = chip.get_line(lineNumber);
                      |                 ^~~~
                ../cpp/opengpio.cpp:19:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                   19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                      |         ^~~~
                      |         gpiod::line
                In file included from /usr/include/gpiodcxx/chip.hpp:21,
                                 from /usr/include/gpiod.hpp:27,
                                 from ../cpp/opengpio.cpp:3:
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp:19:58: error: ‘DIRECTION_INPUT’ is not a member of ‘gpiod::line_request’
                   19 |         line.request({resourceName, gpiod::line_request::DIRECTION_INPUT, 0});
                      |                                                          ^~~~~~~~~~~~~~~
                ../cpp/opengpio.cpp:28:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                   28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                      |                                                              gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:30:22: error: ‘line’ is not captured
                   30 |         bool value = line.get_value();
                      |                      ^~~~
                ../cpp/opengpio.cpp:28:66: note: the lambda has no capture-default
                   28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                  ^
                ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                   28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:34:52: error: ‘line’ is not captured
                   34 |                                                  { line.release(); });
                      |                                                    ^~~~
                ../cpp/opengpio.cpp:33:67: note: the lambda has no capture-default
                   33 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                   ^
                ../cpp/opengpio.cpp:28:62: note: ‘<typeprefixerror>line’ declared here
                   28 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioOutput(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:49:17: error: expected primary-expression before ‘line’
                   49 |     gpiod::line line = chip.get_line(lineNumber);
                      |                 ^~~~
                ../cpp/opengpio.cpp:54:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                   54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                      |         ^~~~
                      |         gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp:54:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                   54 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                      |                                                          ^~~~~~~~~~~~~~~~
                ../cpp/opengpio.cpp:63:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                   63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                      |                                                              gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:66:9: error: ‘line’ is not captured
                   66 |         line.set_value(value); });
                      |         ^~~~
                ../cpp/opengpio.cpp:63:66: note: the lambda has no capture-default
                   63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                  ^
                ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                   63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:69:52: error: ‘line’ is not captured
                   69 |                                                  { line.release(); });
                      |                                                    ^~~~
                ../cpp/opengpio.cpp:68:67: note: the lambda has no capture-default
                   68 |     Napi::Function cleanup = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                   ^
                ../cpp/opengpio.cpp:63:62: note: ‘<typeprefixerror>line’ declared here
                   63 |     Napi::Function setter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: At global scope:
                ../cpp/opengpio.cpp:81:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                   81 |     gpiod::line line;
                      |            ^~~~
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:92:17: error: expected primary-expression before ‘line’
                   92 |     gpiod::line line = chip.get_line(lineNumber);
                      |                 ^~~~
                ../cpp/opengpio.cpp:100:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                  100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                      |         ^~~~
                      |         gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp:100:58: error: ‘EVENT_BOTH_EDGES’ is not a member of ‘gpiod::line_request’
                  100 |         line.request({resourceName, gpiod::line_request::EVENT_BOTH_EDGES, 0}, 0);
                      |                                                          ^~~~~~~~~~~~~~~~
                ../cpp/opengpio.cpp:109:62: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                  109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                      |                                                              gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:111:22: error: ‘line’ is not captured
                  111 |         bool value = line.get_value();
                      |                      ^~~~
                ../cpp/opengpio.cpp:109:66: note: the lambda has no capture-default
                  109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                                  ^
                ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                  109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioWatch(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:115:11: error: ‘struct WatchContext’ has no member named ‘line’
                  115 |     data->line = line;
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:127:25: error: expected primary-expression before ‘line’
                  127 |             gpiod::line line = data->line;
                      |                         ^~~~
                ../cpp/opengpio.cpp:131:33: error: ‘line’ is not captured
                  131 |                 bool hasEvent = line.event_wait(chrono::milliseconds(1));
                      |                                 ^~~~
                ../cpp/opengpio.cpp:124:10: note: the lambda has no capture-default
                  124 |         [](uv_work_t *req)
                      |          ^
                ../cpp/opengpio.cpp:109:62: note: ‘<typeprefixerror>line’ declared here
                  109 |     Napi::Function getter = Napi::Function::New(info.Env(), [line](const Napi::CallbackInfo &info)
                      |                                                              ^~~~
                ../cpp/opengpio.cpp:134:28: error: ‘line_event’ is not a member of ‘gpiod’; did you mean ‘info_event’?
                  134 |                     gpiod::line_event event = line.event_read();
                      |                            ^~~~~~~~~~
                      |                            info_event
                ../cpp/opengpio.cpp:135:34: error: ‘event’ was not declared in this scope; did you mean ‘servent’?
                  135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                      |                                  ^~~~~
                      |                                  servent
                ../cpp/opengpio.cpp:135:61: error: ‘gpiod::line_event’ has not been declared
                  135 |                     bool value = event.event_type == gpiod::line_event::RISING_EDGE ? true : false;
                      |                                                             ^~~~~~~~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:147:19: error: ‘struct WatchContext’ has no member named ‘line’
                  147 |             data->line.release();
                      |                   ^~~~
                ../cpp/opengpio.cpp: At global scope:
                ../cpp/opengpio.cpp:168:12: error: ‘line’ in namespace ‘gpiod’ does not name a type
                  168 |     gpiod::line line;
                      |            ^~~~
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In function ‘Napi::Array GpioPwm(const Napi::CallbackInfo&)’:
                ../cpp/opengpio.cpp:196:17: error: expected primary-expression before ‘line’
                  196 |     gpiod::line line = chip.get_line(lineNumber);
                      |                 ^~~~
                ../cpp/opengpio.cpp:201:9: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                  201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                      |         ^~~~
                      |         gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp:201:58: error: ‘DIRECTION_OUTPUT’ is not a member of ‘gpiod::line_request’
                  201 |         line.request({resourceName, gpiod::line_request::DIRECTION_OUTPUT, 0}, 1);
                      |                                                          ^~~~~~~~~~~~~~~~
                ../cpp/opengpio.cpp:213:11: error: ‘struct PwmContext’ has no member named ‘line’
                  213 |     data->line = line;
                      |           ^~~~
                ../cpp/opengpio.cpp:213:18: error: ‘line’ was not declared in this scope; did you mean ‘gpiod::line’?
                  213 |     data->line = line;
                      |                  ^~~~
                      |                  gpiod::line
                /usr/include/gpiodcxx/line.hpp:24:11: note: ‘gpiod::line’ declared here
                   24 | namespace line {
                      |           ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:224:25: error: expected primary-expression before ‘line’
                  224 |             gpiod::line line = data->line;
                      |                         ^~~~
                ../cpp/opengpio.cpp:264:17: error: ‘line’ is not captured
                  264 |                 line.set_value(true);
                      |                 ^~~~
                ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                  221 |         [](uv_work_t *req)
                      |          ^
                ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                  213 |     data->line = line;
                      |                  ^~~~
                ../cpp/opengpio.cpp:278:17: error: ‘line’ is not captured
                  278 |                 line.set_value(false);
                      |                 ^~~~
                ../cpp/opengpio.cpp:221:10: note: the lambda has no capture-default
                  221 |         [](uv_work_t *req)
                      |          ^
                ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                  213 |     data->line = line;
                      |                  ^~~~
                ../cpp/opengpio.cpp: In lambda function:
                ../cpp/opengpio.cpp:327:25: error: expected primary-expression before ‘line’
                  327 |             gpiod::line line = data->line;
                      |                         ^~~~
                ../cpp/opengpio.cpp:328:13: error: ‘line’ is not captured
                  328 |             line.release();
                      |             ^~~~
                ../cpp/opengpio.cpp:324:10: note: the lambda has no capture-default
                  324 |         [](uv_work_t *req, int status)
                      |          ^
                ../cpp/opengpio.cpp:213:18: note: ‘<typeprefixerror>line’ declared here
                  213 |     data->line = line;
                      |                  ^~~~
                make: *** [opengpio.target.mk:108: Release/obj.target/opengpio/cpp/opengpio.o] Fehler 1
                gyp ERR! build error
                gyp ERR! stack Error: `make` failed with exit code: 2
                gyp ERR! stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
                gyp ERR! System Linux 6.12.62+rpt-rpi-v8
                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/opengpio
                gyp ERR! node -v v22.22.0
                gyp ERR! node-gyp -v v11.2.0
                gyp ERR! not ok
                npm error code 1
                npm error path /opt/iobroker/node_modules/opengpio
                npm error command failed
                npm error command sh -c node-gyp rebuild
                npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2026-02-09T13_47_48_434Z-debug-0.log
                host.Raspi48GB Cannot install iobroker.rpi2@2.4.0: 1
                
                
                Thomas BraunT Online
                Thomas BraunT Online
                Thomas Braun
                Most Active
                schrieb am zuletzt editiert von
                #60

                @searcher57

                Irgendein 'build error'. Sieht irgendwie danach aus:
                https://github.com/ExpeditionExploration/opengpio/issues/37

                Installier mal die Beta-Version 3.0.2, damit sollte das funktionieren:

                latest:	3.0.2 for 70 days
                stable:	2.4.0 for 11 months
                

                Linux-Werkzeugkasten:
                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                NodeJS Fixer Skript:
                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                1 Antwort Letzte Antwort
                2
                • S Offline
                  S Offline
                  searcher57
                  schrieb am zuletzt editiert von
                  #61

                  Entschuldige kannst Du mir die Befehle geben?

                  1 Antwort Letzte Antwort
                  0
                  • mcm1957M Online
                    mcm1957M Online
                    mcm1957
                    schrieb am zuletzt editiert von
                    #62

                    Welche Befehle?
                    Du kannst die 3er Version ganz normal im Admin UI aus dem LATEST Repository installieren.

                    Entwicklung u Betreuung: envertech-pv, hoymiles-ms, ns-client, pid, snmp Adapter;
                    Support Repositoryverwaltung.

                    Wer Danke sagen will, kann nen Kaffee spendieren: https://paypal.me/mcm1957atiobroker

                    LESEN - gute Forenbeitrage

                    1 Antwort Letzte Antwort
                    1
                    • S Offline
                      S Offline
                      searcher57
                      schrieb am zuletzt editiert von
                      #63

                      Also ich steh auf dem Schlauch!

                      1 Antwort Letzte Antwort
                      0
                      • S Offline
                        S Offline
                        searcher57
                        schrieb am zuletzt editiert von
                        #64

                        Nicht mehr. Ich habs geschafft. Die Instanz ist erfolgreich gestartet. Danke!!

                        1 Antwort Letzte Antwort
                        0
                        Antworten
                        • In einem neuen Thema antworten
                        Anmelden zum Antworten
                        • Älteste zuerst
                        • Neuste zuerst
                        • Meiste Stimmen


                        Support us

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

                        710

                        Online

                        32.6k

                        Benutzer

                        82.3k

                        Themen

                        1.3m

                        Beiträge
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                        ioBroker Community 2014-2025
                        logo
                        • Anmelden

                        • Du hast noch kein Konto? Registrieren

                        • Anmelden oder registrieren, um zu suchen
                        • Erster Beitrag
                          Letzter Beitrag
                        0
                        • Home
                        • Aktuell
                        • Tags
                        • Ungelesen 0
                        • Kategorien
                        • Unreplied
                        • Beliebt
                        • GitHub
                        • Docu
                        • Hilfe