openhabian mySensors setup



  • 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?


  • Mod

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



  • ok thanks
    i'll try



  • sudo apt-get install g++
    

    then I could do "make"


Log in to reply
 

Suggested Topics

  • 22
  • 19
  • 132
  • 4
  • 3
  • 7

16
Online

11.4k
Users

11.1k
Topics

112.7k
Posts