Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
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

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. OpenHAB
  4. openhabian mySensors setup

openhabian mySensors setup

Scheduled Pinned Locked Moved OpenHAB
4 Posts 2 Posters 4.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    patrick schaerer
    wrote on last edited by
    #1

    Make command doesn't work on openhabian image.

    I installed openhab with the openhabian image and it works.
    I did the following ...

    [15:20:07] pi@openHABianPi:~$ git clone https://github.com/mysensors/MySensors.git
    Cloning into 'MySensors'...
    remote: Counting objects: 13297, done.
    remote: Total 13297 (delta 0), reused 0 (delta 0), pack-reused 13296
    Receiving objects: 100% (13297/13297), 9.34 MiB | 3.35 MiB/s, done.
    Resolving deltas: 100% (7989/7989), done.
    Checking connectivity... done.
    [15:20:54] pi@openHABianPi:~$ cd MySensors
    [15:21:01] pi@openHABianPi:~/MySensors$ ./configure --help
    15:21:10] pi@openHABianPi:~/MySensors$ ./configure --my-transport=nrf24 --my-rf24-irq-pin=15
    [SECTION] Detecting target machine.
    [OK] machine detected: SoC=BCM2836, Type=RPi3, CPU=armv7l, REV=a02082.
    [OK] init system detected: systemd
    [SECTION] Saving configuration.
    [SECTION] Cleaning previous builds.
    ./configure: line 505: make: command not found
    [OK] Finished.
    [15:22:49] pi@openHABianPi:~/MySensors$ make
    -bash: make: command not found
    [15:29:14] pi@openHABianPi:~$ sudo apt-get install make
    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
    [15:29:22] pi@openHABianPi:~$ sudo dpkg --configure -a
    Setting up libpng12-0:armhf (1.2.50-2+deb8u2) ...
    Setting up libfontenc1:armhf (1:1.1.2-1) ...
    Processing triggers for libc-bin (2.19-18+deb8u6) ...
    [15:29:49] pi@openHABianPi:~$ sudo apt-get install make
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Suggested packages:
      make-doc
    The following NEW packages will be installed:
      make
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    Need to get 333 kB of archives.
    After this operation, 1,047 kB of additional disk space will be used.
    Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main make armhf 4.0-8.1 [333 kB]
    Fetched 333 kB in 0s (758 kB/s)
    error: unable to resolve reference HEAD: Invalid argument
    fatal: cannot lock HEAD ref
    warning: etckeeper failed to commit changes in /etc using git
    Selecting previously unselected package make.
    (Reading database ... 26337 files and directories currently installed.)
    Preparing to unpack .../make_4.0-8.1_armhf.deb ...
    Unpacking make (4.0-8.1) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up make (4.0-8.1) ...
    error: unable to resolve reference HEAD: Invalid argument
    fatal: cannot lock HEAD ref
    warning: etckeeper failed to commit changes in /etc using git
    Updating FireMotD available updates count ...
    [15:31:13] pi@openHABianPi:~$ cd MySensors
    [15:31:21] pi@openHABianPi:~/MySensors$ make
    gcc -MT build/drivers/Linux/log.o -MMD -MP -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -D__RPI_BPLUS -DLINUX_ARCH_RASPBERRYPI -DMY_RX_MESSAGE_BUFFER_FEATURE -DMY_RF24_IRQ_PIN=15  -Ofast -g -Wall -Wextra  -I. -I./core -I./drivers/Linux -I./drivers/RPi -c drivers/Linux/log.c -o build/drivers/Linux/log.o
    make: gcc: Command not found
    Makefile:102: recipe for target 'build/drivers/Linux/log.o' failed
    make: *** [build/drivers/Linux/log.o] Error 127
    

    What's wrong?

    mfalkviddM 1 Reply Last reply
    0
    • P patrick schaerer

      Make command doesn't work on openhabian image.

      I installed openhab with the openhabian image and it works.
      I did the following ...

      [15:20:07] pi@openHABianPi:~$ git clone https://github.com/mysensors/MySensors.git
      Cloning into 'MySensors'...
      remote: Counting objects: 13297, done.
      remote: Total 13297 (delta 0), reused 0 (delta 0), pack-reused 13296
      Receiving objects: 100% (13297/13297), 9.34 MiB | 3.35 MiB/s, done.
      Resolving deltas: 100% (7989/7989), done.
      Checking connectivity... done.
      [15:20:54] pi@openHABianPi:~$ cd MySensors
      [15:21:01] pi@openHABianPi:~/MySensors$ ./configure --help
      15:21:10] pi@openHABianPi:~/MySensors$ ./configure --my-transport=nrf24 --my-rf24-irq-pin=15
      [SECTION] Detecting target machine.
      [OK] machine detected: SoC=BCM2836, Type=RPi3, CPU=armv7l, REV=a02082.
      [OK] init system detected: systemd
      [SECTION] Saving configuration.
      [SECTION] Cleaning previous builds.
      ./configure: line 505: make: command not found
      [OK] Finished.
      [15:22:49] pi@openHABianPi:~/MySensors$ make
      -bash: make: command not found
      [15:29:14] pi@openHABianPi:~$ sudo apt-get install make
      E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
      [15:29:22] pi@openHABianPi:~$ sudo dpkg --configure -a
      Setting up libpng12-0:armhf (1.2.50-2+deb8u2) ...
      Setting up libfontenc1:armhf (1:1.1.2-1) ...
      Processing triggers for libc-bin (2.19-18+deb8u6) ...
      [15:29:49] pi@openHABianPi:~$ sudo apt-get install make
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Suggested packages:
        make-doc
      The following NEW packages will be installed:
        make
      0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
      Need to get 333 kB of archives.
      After this operation, 1,047 kB of additional disk space will be used.
      Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main make armhf 4.0-8.1 [333 kB]
      Fetched 333 kB in 0s (758 kB/s)
      error: unable to resolve reference HEAD: Invalid argument
      fatal: cannot lock HEAD ref
      warning: etckeeper failed to commit changes in /etc using git
      Selecting previously unselected package make.
      (Reading database ... 26337 files and directories currently installed.)
      Preparing to unpack .../make_4.0-8.1_armhf.deb ...
      Unpacking make (4.0-8.1) ...
      Processing triggers for man-db (2.7.0.2-5) ...
      Setting up make (4.0-8.1) ...
      error: unable to resolve reference HEAD: Invalid argument
      fatal: cannot lock HEAD ref
      warning: etckeeper failed to commit changes in /etc using git
      Updating FireMotD available updates count ...
      [15:31:13] pi@openHABianPi:~$ cd MySensors
      [15:31:21] pi@openHABianPi:~/MySensors$ make
      gcc -MT build/drivers/Linux/log.o -MMD -MP -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -D__RPI_BPLUS -DLINUX_ARCH_RASPBERRYPI -DMY_RX_MESSAGE_BUFFER_FEATURE -DMY_RF24_IRQ_PIN=15  -Ofast -g -Wall -Wextra  -I. -I./core -I./drivers/Linux -I./drivers/RPi -c drivers/Linux/log.c -o build/drivers/Linux/log.o
      make: gcc: Command not found
      Makefile:102: recipe for target 'build/drivers/Linux/log.o' failed
      make: *** [build/drivers/Linux/log.o] Error 127
      

      What's wrong?

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

      @patrick-schaerer The gateway needs a bunch of development tools (make, as you have already identified, and gcc but probably other tools as well) that aren't installed by default on that image.
      Start with

      sudo apt-get install gcc
      

      That should get you one step further at least. Then rinse and repeat for any command/utility that is missing.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        patrick schaerer
        wrote on last edited by
        #3

        ok thanks
        i'll try

        1 Reply Last reply
        0
        • P Offline
          P Offline
          patrick schaerer
          wrote on last edited by
          #4
          sudo apt-get install g++
          

          then I could do "make"

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          22

          Online

          12.0k

          Users

          11.2k

          Topics

          113.4k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular