Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed on fresh rpi zero with jessie #2

Open
MrsDelish opened this issue Jan 19, 2017 · 9 comments
Open

failed on fresh rpi zero with jessie #2

MrsDelish opened this issue Jan 19, 2017 · 9 comments

Comments

@MrsDelish
Copy link

looks like there was some errors in the end.
node got installed in /usr/lib

`pi@sofapi:~ $ bash <(curl -s https://raw.githubusercontent.com/macnow/homebridge-raspbian-installer/master/install.sh)
++ uname -m

  • UNAME=armv6l
  • sudo apt-get update
    Get:1 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
    Hit http://mirrordirector.raspbian.org jessie InRelease
    Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
    Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
    Get:2 http://archive.raspberrypi.org jessie/main armhf Packages [136 kB]
    Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
    Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
    Hit http://archive.raspberrypi.org jessie/ui armhf Packages
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
    Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
    Ign http://archive.raspberrypi.org jessie/main Translation-en
    Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
    Ign http://archive.raspberrypi.org jessie/ui Translation-en
    Fetched 159 kB in 16s (9,703 B/s)
    Reading package lists... Done
  • sudo apt-get upgrade -y
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
    libgl1-mesa-dri sonic-pi xserver-xorg-input-all
    The following packages will be upgraded:
    libcairo-gobject2 libcairo2
    2 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    Need to get 966 kB of archives.
    After this operation, 65.5 kB of additional disk space will be used.
    Get:1 http://archive.raspberrypi.org/debian/ jessie/main libcairo2 armhf 1.14.0-2.1+deb8u2+rpi1 [662 kB]
    Get:2 http://archive.raspberrypi.org/debian/ jessie/main libcairo-gobject2 armhf 1.14.0-2.1+deb8u2+rpi1 [304 kB]
    Fetched 966 kB in 1s (699 kB/s)
    Reading changelogs... Done
    (Reading database ... 122159 files and directories currently installed.)
    Preparing to unpack .../libcairo2_1.14.0-2.1+deb8u2+rpi1_armhf.deb ...
    Unpacking libcairo2:armhf (1.14.0-2.1+deb8u2+rpi1) over (1.14.0-2.1+deb8u2) ...
    Preparing to unpack .../libcairo-gobject2_1.14.0-2.1+deb8u2+rpi1_armhf.deb ...
    Unpacking libcairo-gobject2:armhf (1.14.0-2.1+deb8u2+rpi1) over (1.14.0-2.1+deb8u2) ...
    Processing triggers for libc-bin (2.19-18+deb8u7) ...
    Setting up libcairo2:armhf (1.14.0-2.1+deb8u2+rpi1) ...
    Setting up libcairo-gobject2:armhf (1.14.0-2.1+deb8u2+rpi1) ...
    Processing triggers for libc-bin (2.19-18+deb8u7) ...
  • sudo apt-get install -y git make libavahi-compat-libdnssd-dev dialog
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    git is already the newest version.
    git set to manually installed.
    make is already the newest version.
    make set to manually installed.
    The following extra packages will be installed:
    libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd1 libdbus-1-dev
    The following NEW packages will be installed:
    dialog libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd-dev libavahi-compat-libdnssd1 libdbus-1-dev
    0 upgraded, 6 newly installed, 0 to remove and 3 not upgraded.
    Need to get 635 kB of archives.
    After this operation, 1,910 kB of additional disk space will be used.
    Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-compat-libdnssd1 armhf 0.6.31-5 [42.9 kB]
    Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main dialog armhf 1.2-20140911-1 [233 kB]
    Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-common-dev armhf 0.6.31-5 [61.4 kB]
    Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libdbus-1-dev armhf 1.8.22-0+deb8u1 [184 kB]
    Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-client-dev armhf 0.6.31-5 [55.4 kB]
    Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-compat-libdnssd-dev armhf 0.6.31-5 [57.7 kB]
    Fetched 635 kB in 1s (579 kB/s)
    Selecting previously unselected package libavahi-compat-libdnssd1:armhf.
    (Reading database ... 122159 files and directories currently installed.)
    Preparing to unpack .../libavahi-compat-libdnssd1_0.6.31-5_armhf.deb ...
    Unpacking libavahi-compat-libdnssd1:armhf (0.6.31-5) ...
    Selecting previously unselected package dialog.
    Preparing to unpack .../dialog_1.2-20140911-1_armhf.deb ...
    Unpacking dialog (1.2-20140911-1) ...
    Selecting previously unselected package libavahi-common-dev.
    Preparing to unpack .../libavahi-common-dev_0.6.31-5_armhf.deb ...
    Unpacking libavahi-common-dev (0.6.31-5) ...
    Selecting previously unselected package libdbus-1-dev:armhf.
    Preparing to unpack .../libdbus-1-dev_1.8.22-0+deb8u1_armhf.deb ...
    Unpacking libdbus-1-dev:armhf (1.8.22-0+deb8u1) ...
    Selecting previously unselected package libavahi-client-dev.
    Preparing to unpack .../libavahi-client-dev_0.6.31-5_armhf.deb ...
    Unpacking libavahi-client-dev (0.6.31-5) ...
    Selecting previously unselected package libavahi-compat-libdnssd-dev.
    Preparing to unpack .../libavahi-compat-libdnssd-dev_0.6.31-5_armhf.deb ...
    Unpacking libavahi-compat-libdnssd-dev (0.6.31-5) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up libavahi-compat-libdnssd1:armhf (0.6.31-5) ...
    Setting up dialog (1.2-20140911-1) ...
    Setting up libavahi-common-dev (0.6.31-5) ...
    Setting up libdbus-1-dev:armhf (1.8.22-0+deb8u1) ...
    Setting up libavahi-client-dev (0.6.31-5) ...
    Setting up libavahi-compat-libdnssd-dev (0.6.31-5) ...
    Processing triggers for libc-bin (2.19-18+deb8u7) ...
  • case "$UNAME" in
  • wget -r -l1 -e robots=off -np https://nodejs.org/dist/latest/ -A 'node-v*-linux-armv6l.tar.xz'
    --2017-01-19 20:45:28-- https://nodejs.org/dist/latest/
    Resolving nodejs.org (nodejs.org)... 104.20.23.46, 104.20.22.46, 2400:cb00:2048:1::6814:172e, ...
    Connecting to nodejs.org (nodejs.org)|104.20.23.46|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ‘nodejs.org/dist/latest/index.html’

nodejs.org/dist/latest/index.html [ <=> ] 4.97K --.-KB/s in 0.002s

2017-01-19 20:45:29 (2.45 MB/s) - ‘nodejs.org/dist/latest/index.html’ saved [5089]

Removing nodejs.org/dist/latest/index.html since it should be rejected.

--2017-01-19 20:45:29-- https://nodejs.org/dist/latest/docs/
Reusing existing connection to nodejs.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nodejs.org/dist/latest/docs/index.html’

nodejs.org/dist/latest/docs/index.htm [ <=> ] 294 --.-KB/s in 0s

2017-01-19 20:45:30 (967 KB/s) - ‘nodejs.org/dist/latest/docs/index.html’ saved [294]

Removing nodejs.org/dist/latest/docs/index.html since it should be rejected.

--2017-01-19 20:45:30-- https://nodejs.org/dist/latest/win-x64/
Reusing existing connection to nodejs.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nodejs.org/dist/latest/win-x64/index.html’

nodejs.org/dist/latest/win-x64/index. [ <=> ] 650 --.-KB/s in 0s

2017-01-19 20:45:30 (2.12 MB/s) - ‘nodejs.org/dist/latest/win-x64/index.html’ saved [650]

Removing nodejs.org/dist/latest/win-x64/index.html since it should be rejected.

--2017-01-19 20:45:30-- https://nodejs.org/dist/latest/win-x86/
Reusing existing connection to nodejs.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nodejs.org/dist/latest/win-x86/index.html’

nodejs.org/dist/latest/win-x86/index. [ <=> ] 650 --.-KB/s in 0s

2017-01-19 20:45:30 (2.12 MB/s) - ‘nodejs.org/dist/latest/win-x86/index.html’ saved [650]

Removing nodejs.org/dist/latest/win-x86/index.html since it should be rejected.

--2017-01-19 20:45:30-- https://nodejs.org/dist/latest/node-v7.4.0-linux-armv6l.tar.xz
Reusing existing connection to nodejs.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 9243504 (8.8M) [application/x-xz]
Saving to: ‘nodejs.org/dist/latest/node-v7.4.0-linux-armv6l.tar.xz’

nodejs.org/dist/latest/node-v7.4.0-li 100%[=========================================================================>] 8.81M 2.38MB/s in 3.7s

2017-01-19 20:45:35 (2.38 MB/s) - ‘nodejs.org/dist/latest/node-v7.4.0-linux-armv6l.tar.xz’ saved [9243504/9243504]

FINISHED --2017-01-19 20:45:35--
Total wall clock time: 6.3s
Downloaded: 5 files, 8.8M in 3.7s (2.38 MB/s)

  • cd nodejs.org/dist/latest/
  • sudo tar -xf node-v7.4.0-linux-armv6l.tar.xz
  • cd node-v7.4.0-linux-armv6l/
  • sudo cp -R bin CHANGELOG.md include lib LICENSE README.md share /usr/
  • cd ../../../../
  • mkdir /home/pi/.npm-global
  • npm config set prefix '~/.npm-global'
  • export PATH=/home/pi/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
  • PATH=/home/pi/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
  • source /home/pi/.profile
    ++ '[' -n '4.3.30(1)-release' ']'
    ++ '[' -f /home/pi/.bashrc ']'
    ++ . /home/pi/.bashrc
    +++ case $- in
    +++ return
    ++ '[' -d /home/pi/bin ']'
  • npm install -g --unsafe-perm homebridge hap-nodejs node-gyp json
    /home/pi/.npm-global/bin/homebridge -> /home/pi/.npm-global/lib/node_modules/homebridge/bin/homebridge
    /home/pi/.npm-global/bin/json -> /home/pi/.npm-global/lib/node_modules/json/lib/json.js
    /home/pi/.npm-global/bin/node-gyp -> /home/pi/.npm-global/lib/node_modules/node-gyp/bin/node-gyp.js

mdns@2.3.3 install /home/pi/.npm-global/lib/node_modules/homebridge/node_modules/mdns
node-gyp rebuild

make: Entering directory '/home/pi/.npm-global/lib/node_modules/homebridge/node_modules/mdns/build'
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_update_record.o
CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o
CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o
CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o
SOLINK_MODULE(target) Release/obj.target/dns_sd_bindings.node
COPY Release/dns_sd_bindings.node
make: Leaving directory '/home/pi/.npm-global/lib/node_modules/homebridge/node_modules/mdns/build'

curve25519-n@1.1.0 install /home/pi/.npm-global/lib/node_modules/homebridge/node_modules/curve25519-n
node-gyp rebuild

make: Entering directory '/home/pi/.npm-global/lib/node_modules/homebridge/node_modules/curve25519-n/build'
CXX(target) Release/obj.target/curve/node_curve.o
SOLINK_MODULE(target) Release/obj.target/curve.node
COPY Release/curve.node
make: Leaving directory '/home/pi/.npm-global/lib/node_modules/homebridge/node_modules/curve25519-n/build'

ed25519@0.0.4 install /home/pi/.npm-global/lib/node_modules/homebridge/node_modules/ed25519
node-gyp rebuild

make: Entering directory '/home/pi/.npm-global/lib/node_modules/homebridge/node_modules/ed25519/build'
CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
CC(target) Release/obj.target/ed25519/src/ed25519/sign.o
CC(target) Release/obj.target/ed25519/src/ed25519/open.o
CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o
CXX(target) Release/obj.target/ed25519/src/ed25519.o
SOLINK_MODULE(target) Release/obj.target/ed25519.node
COPY Release/ed25519.node
make: Leaving directory '/home/pi/.npm-global/lib/node_modules/homebridge/node_modules/ed25519/build'

curve25519-n@1.1.0 install /home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/curve25519-n
node-gyp rebuild

make: Entering directory '/home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/curve25519-n/build'
CXX(target) Release/obj.target/curve/node_curve.o
SOLINK_MODULE(target) Release/obj.target/curve.node
COPY Release/curve.node
make: Leaving directory '/home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/curve25519-n/build'

ed25519@0.0.4 install /home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/ed25519
node-gyp rebuild

make: Entering directory '/home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/ed25519/build'
CC(target) Release/obj.target/ed25519/src/ed25519/keypair.o
CC(target) Release/obj.target/ed25519/src/ed25519/sign.o
CC(target) Release/obj.target/ed25519/src/ed25519/open.o
CC(target) Release/obj.target/ed25519/src/ed25519/crypto_verify_32.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_double_scalarmult.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_scalarmult_base.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_precomp_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p2_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_dbl.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_to_cached.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p3_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_madd.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_msub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p3.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_p1p1_to_p2.o
CC(target) Release/obj.target/ed25519/src/ed25519/ge_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_0.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_1.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_cmov.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_copy.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_neg.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_add.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sub.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_mul.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_sq2.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_invert.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_tobytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnegative.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_isnonzero.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_frombytes.o
CC(target) Release/obj.target/ed25519/src/ed25519/fe_pow22523.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_reduce.o
CC(target) Release/obj.target/ed25519/src/ed25519/sc_muladd.o
CXX(target) Release/obj.target/ed25519/src/ed25519.o
SOLINK_MODULE(target) Release/obj.target/ed25519.node
COPY Release/ed25519.node
make: Leaving directory '/home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/ed25519/build'

mdns@2.3.3 install /home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/mdns
node-gyp rebuild

make: Entering directory '/home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/mdns/build'
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_update_record.o
CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o
CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o
CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o
CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o
SOLINK_MODULE(target) Release/obj.target/dns_sd_bindings.node
COPY Release/dns_sd_bindings.node
make: Leaving directory '/home/pi/.npm-global/lib/node_modules/hap-nodejs/node_modules/mdns/build'
/home/pi/.npm-global/lib
├─┬ hap-nodejs@0.4.21
│ ├── buffer-shims@1.0.0
│ ├─┬ curve25519-n@1.1.0
│ │ ├── bindings@1.2.1
│ │ └── nan@2.5.0
│ ├─┬ debug@2.6.0
│ │ └── ms@0.7.2
│ ├── ed25519@0.0.4
│ ├── fast-srp-hap@1.0.0
│ ├── ip@1.1.4
│ ├─┬ mdns@2.3.3
│ │ └── nan@2.3.5
│ └─┬ node-persist@0.0.8
│ ├── mkdirp@0.3.5
│ └── q@1.1.2
├─┬ homebridge@0.4.16
│ ├─┬ chalk@1.1.3
│ │ ├── ansi-styles@2.2.1
│ │ ├── escape-string-regexp@1.0.5
│ │ ├─┬ has-ansi@2.0.0
│ │ │ └── ansi-regex@2.1.1
│ │ ├── strip-ansi@3.0.1
│ │ └── supports-color@2.0.0
│ ├─┬ commander@2.8.1
│ │ └── graceful-readlink@1.0.1
│ ├─┬ hap-nodejs@0.4.20
│ │ ├── buffer-shims@1.0.0
│ │ ├─┬ curve25519-n@1.1.0
│ │ │ ├── bindings@1.2.1
│ │ │ └── nan@2.5.0
│ │ ├─┬ debug@2.6.0
│ │ │ └── ms@0.7.2
│ │ ├── ed25519@0.0.4
│ │ ├── fast-srp-hap@1.0.0
│ │ ├── ip@1.1.4
│ │ └─┬ mdns@2.3.3
│ │ └── nan@2.3.5
│ ├─┬ node-persist@0.0.8
│ │ ├── mkdirp@0.3.5
│ │ └── q@1.1.2
│ └── semver@5.0.3
├── json@9.0.4
└─┬ node-gyp@3.5.0
├─┬ fstream@1.0.10
│ └── inherits@2.0.3
├─┬ glob@7.1.1
│ ├── fs.realpath@1.0.0
│ ├─┬ inflight@1.0.6
│ │ └── wrappy@1.0.2
│ ├── once@1.4.0
│ └── path-is-absolute@1.0.1
├── graceful-fs@4.1.11
├─┬ minimatch@3.0.3
│ └─┬ brace-expansion@1.1.6
│ ├── balanced-match@0.4.2
│ └── concat-map@0.0.1
├─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
├─┬ nopt@3.0.6
│ └── abbrev@1.0.9
├─┬ npmlog@4.0.2
│ ├─┬ are-we-there-yet@1.1.2
│ │ ├── delegates@1.0.0
│ │ └─┬ readable-stream@2.2.2
│ │ ├── buffer-shims@1.0.0
│ │ ├── core-util-is@1.0.2
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ ├── console-control-strings@1.1.0
│ ├─┬ gauge@2.7.2
│ │ ├── aproba@1.0.4
│ │ ├── has-unicode@2.0.1
│ │ ├── object-assign@4.1.1
│ │ ├── signal-exit@3.0.2
│ │ ├─┬ string-width@1.0.2
│ │ │ ├── code-point-at@1.1.0
│ │ │ └─┬ is-fullwidth-code-point@1.0.0
│ │ │ └── number-is-nan@1.0.1
│ │ ├─┬ strip-ansi@3.0.1
│ │ │ └── ansi-regex@2.1.1
│ │ ├── supports-color@0.2.0
│ │ └── wide-align@1.1.0
│ └── set-blocking@2.0.0
├─┬ osenv@0.1.4
│ ├── os-homedir@1.0.2
│ └── os-tmpdir@1.0.2
├─┬ request@2.79.0
│ ├── aws-sign2@0.6.0
│ ├── aws4@1.5.0
│ ├── caseless@0.11.0
│ ├─┬ combined-stream@1.0.5
│ │ └── delayed-stream@1.0.0
│ ├── extend@3.0.0
│ ├── forever-agent@0.6.1
│ ├─┬ form-data@2.1.2
│ │ └── asynckit@0.4.0
│ ├─┬ har-validator@2.0.6
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── escape-string-regexp@1.0.5
│ │ │ ├── has-ansi@2.0.0
│ │ │ └── supports-color@2.0.0
│ │ ├─┬ commander@2.9.0
│ │ │ └── graceful-readlink@1.0.1
│ │ ├─┬ is-my-json-valid@2.15.0
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@4.0.1
│ │ │ └── xtend@4.0.1
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├─┬ hawk@3.1.3
│ │ ├── boom@2.10.1
│ │ ├── cryptiles@2.0.5
│ │ ├── hoek@2.16.3
│ │ └── sntp@1.0.9
│ ├─┬ http-signature@1.1.1
│ │ ├── assert-plus@0.2.0
│ │ ├─┬ jsprim@1.3.1
│ │ │ ├── extsprintf@1.0.2
│ │ │ ├── json-schema@0.2.3
│ │ │ └── verror@1.3.6
│ │ └─┬ sshpk@1.10.2
│ │ ├── asn1@0.2.3
│ │ ├── assert-plus@1.0.0
│ │ ├── bcrypt-pbkdf@1.0.0
│ │ ├─┬ dashdash@1.14.1
│ │ │ └── assert-plus@1.0.0
│ │ ├── ecc-jsbn@0.1.1
│ │ ├─┬ getpass@0.1.6
│ │ │ └── assert-plus@1.0.0
│ │ ├── jodid25519@1.0.2
│ │ ├── jsbn@0.1.0
│ │ └── tweetnacl@0.14.5
│ ├── is-typedarray@1.0.0
│ ├── isstream@0.1.2
│ ├── json-stringify-safe@5.0.1
│ ├─┬ mime-types@2.1.14
│ │ └── mime-db@1.26.0
│ ├── oauth-sign@0.8.2
│ ├── qs@6.3.0
│ ├── stringstream@0.0.5
│ ├─┬ tough-cookie@2.3.2
│ │ └── punycode@1.4.1
│ ├── tunnel-agent@0.4.3
│ └── uuid@3.0.1
├── rimraf@2.5.4
├── semver@5.3.0
├─┬ tar@2.2.1
│ └── block-stream@0.0.9
└─┬ which@1.2.12
└── isexe@1.1.2

  • cd /home/pi/.npm-global/homebridge
    /dev/fd/63: line 40: cd: /home/pi/.npm-global/homebridge: No such file or directory
  • npm install --unsafe-perm bignum

bignum@0.12.5 install /home/pi/node_modules/bignum
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://rvagg-node.s3-us-west-2.amazonaws.com/bignum/v0.12.5/bignum-v0.12.5-node-v51-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bignum@0.12.5 and node@7.4.0 (node-v51 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/node_modules/bignum/build'
CXX(target) Release/obj.target/bignum/bignum.o
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:385:48: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(len, newArgs);
^
../bignum.cc:413:78: warning: ‘v8::Localv8::Number v8::Value::ToNumber() const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:8406): Use maybe version [-Wdeprecated-declarations]
base = obj->ToObject()->Get(Nan::New("base").ToLocalChecked())->ToNumber()->Value();
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Badd(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:461:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bsub(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:474:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bmul(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:488:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bdiv(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:502:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Uadd(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:520:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Usub(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:538:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umul(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:557:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Udiv(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:576:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umul_2exp(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:44:36: warning: ‘v8::Localv8::Uint32 v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:8436): Use maybe version [-Wdeprecated-declarations]
uint32_t VAR = info[I]->ToUint32()->Value();
^
../bignum.cc:585:3: note: in expansion of macro ‘REQ_UINT32_ARG’
REQ_UINT32_ARG(0, x);
^
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:589:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Udiv_2exp(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:44:36: warning: ‘v8::Localv8::Uint32 v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:8436): Use maybe version [-Wdeprecated-declarations]
uint32_t VAR = info[I]->ToUint32()->Value();
^
../bignum.cc:598:3: note: in expansion of macro ‘REQ_UINT32_ARG’
REQ_UINT32_ARG(0, x);
^
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:602:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Babs(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:614:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bneg(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:626:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bmod(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:640:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Umod(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:659:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bpowm(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:674:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Upowm(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:691:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Upow(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:707:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Brand0(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:720:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Uprime0(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:44:36: warning: ‘v8::Localv8::Uint32 v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:8436): Use maybe version [-Wdeprecated-declarations]
uint32_t VAR = info[I]->ToUint32()->Value();
^
../bignum.cc:727:3: note: in expansion of macro ‘REQ_UINT32_ARG’
REQ_UINT32_ARG(0, x);
^
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:734:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Probprime(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:44:36: warning: ‘v8::Localv8::Uint32 v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:8436): Use maybe version [-Wdeprecated-declarations]
uint32_t VAR = info[I]->ToUint32()->Value();
^
../bignum.cc:744:3: note: in expansion of macro ‘REQ_UINT32_ARG’
REQ_UINT32_ARG(0, reps);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::IsBitSet(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:44:36: warning: ‘v8::Localv8::Uint32 v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:8436): Use maybe version [-Wdeprecated-declarations]
uint32_t VAR = info[I]->ToUint32()->Value();
^
../bignum.cc:753:3: note: in expansion of macro ‘REQ_UINT32_ARG’
REQ_UINT32_ARG(0, n);
^
../bignum.cc: In static member function ‘static v8::Localv8::Value BigNum::Bop(Nan::NAN_METHOD_ARGS_TYPE, int)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:994:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Binvertm(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value
) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:1026:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bgcd(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:70:38: warning: ‘v8::Localv8::Object v8::Function::NewInstance(int, v8::Localv8::Value*) const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:3287): Use maybe version [-Wdeprecated-declarations]
GetFunction()->NewInstance(1, arg);
^
../bignum.cc:1061:3: note: in expansion of macro ‘WRAP_RESULT’
WRAP_RESULT(res, result);
^
../bignum.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE BigNum::Bsetcompact(Nan::NAN_METHOD_ARGS_TYPE)’:
../bignum.cc:1085:45: warning: ‘v8::Localv8::Uint32 v8::Value::ToUint32() const’ is deprecated (declared at /home/pi/.node-gyp/7.4.0/include/node/v8.h:8436): Use maybe version [-Wdeprecated-declarations]
unsigned int nCompact = info[0]->ToUint32()->Value();
^
SOLINK_MODULE(target) Release/obj.target/bignum.node
COPY Release/bignum.node
COPY /home/pi/node_modules/bignum/binding/bignum.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/pi/node_modules/bignum/build'
/home/pi
└─┬ bignum@0.12.5
├── nan@2.5.0
└─┬ node-pre-gyp@0.6.32
├─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
├─┬ nopt@3.0.6
│ └── abbrev@1.0.9
├─┬ npmlog@4.0.2
│ ├─┬ are-we-there-yet@1.1.2
│ │ ├── delegates@1.0.0
│ │ └── readable-stream@2.2.2
│ ├── console-control-strings@1.1.0
│ ├─┬ gauge@2.7.2
│ │ ├── aproba@1.0.4
│ │ ├── has-unicode@2.0.1
│ │ ├── object-assign@4.1.1
│ │ ├── signal-exit@3.0.2
│ │ ├─┬ string-width@1.0.2
│ │ │ ├── code-point-at@1.1.0
│ │ │ └─┬ is-fullwidth-code-point@1.0.0
│ │ │ └── number-is-nan@1.0.1
│ │ ├─┬ strip-ansi@3.0.1
│ │ │ └── ansi-regex@2.1.1
│ │ ├── supports-color@0.2.0
│ │ └── wide-align@1.1.0
│ └── set-blocking@2.0.0
├─┬ rc@1.1.6
│ ├── deep-extend@0.4.1
│ ├── ini@1.3.4
│ ├── minimist@1.2.0
│ └── strip-json-comments@1.0.4
├─┬ request@2.79.0
│ ├── aws-sign2@0.6.0
│ ├── aws4@1.5.0
│ ├── caseless@0.11.0
│ ├─┬ combined-stream@1.0.5
│ │ └── delayed-stream@1.0.0
│ ├── extend@3.0.0
│ ├── forever-agent@0.6.1
│ ├─┬ form-data@2.1.2
│ │ └── asynckit@0.4.0
│ ├─┬ har-validator@2.0.6
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── escape-string-regexp@1.0.5
│ │ │ ├── has-ansi@2.0.0
│ │ │ └── supports-color@2.0.0
│ │ ├─┬ commander@2.9.0
│ │ │ └── graceful-readlink@1.0.1
│ │ ├─┬ is-my-json-valid@2.15.0
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@4.0.1
│ │ │ └── xtend@4.0.1
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├─┬ hawk@3.1.3
│ │ ├── boom@2.10.1
│ │ ├── cryptiles@2.0.5
│ │ ├── hoek@2.16.3
│ │ └── sntp@1.0.9
│ ├─┬ http-signature@1.1.1
│ │ ├── assert-plus@0.2.0
│ │ ├─┬ jsprim@1.3.1
│ │ │ ├── extsprintf@1.0.2
│ │ │ ├── json-schema@0.2.3
│ │ │ └── verror@1.3.6
│ │ └─┬ sshpk@1.10.2
│ │ ├── asn1@0.2.3
│ │ ├── assert-plus@1.0.0
│ │ ├── bcrypt-pbkdf@1.0.0
│ │ ├─┬ dashdash@1.14.1
│ │ │ └── assert-plus@1.0.0
│ │ ├── ecc-jsbn@0.1.1
│ │ ├─┬ getpass@0.1.6
│ │ │ └── assert-plus@1.0.0
│ │ ├── jodid25519@1.0.2
│ │ ├── jsbn@0.1.0
│ │ └── tweetnacl@0.14.5
│ ├── is-typedarray@1.0.0
│ ├── isstream@0.1.2
│ ├── json-stringify-safe@5.0.1
│ ├─┬ mime-types@2.1.14
│ │ └── mime-db@1.26.0
│ ├── oauth-sign@0.8.2
│ ├── qs@6.3.0
│ ├── stringstream@0.0.5
│ ├─┬ tough-cookie@2.3.2
│ │ └── punycode@1.4.1
│ ├── tunnel-agent@0.4.3
│ └── uuid@3.0.1
├─┬ rimraf@2.5.4
│ └─┬ glob@7.1.1
│ ├── fs.realpath@1.0.0
│ ├── inflight@1.0.6
│ ├─┬ minimatch@3.0.3
│ │ └─┬ brace-expansion@1.1.6
│ │ ├── balanced-match@0.4.2
│ │ └── concat-map@0.0.1
│ ├── once@1.4.0
│ └── path-is-absolute@1.0.1
├── semver@5.3.0
├─┬ tar@2.2.1
│ ├── block-stream@0.0.9
│ ├─┬ fstream@1.0.10
│ │ └── graceful-fs@4.1.11
│ └── inherits@2.0.3
└─┬ tar-pack@3.3.0
├─┬ debug@2.2.0
│ └── ms@0.7.1
├── fstream-ignore@1.0.5
├─┬ once@1.3.3
│ └── wrappy@1.0.2
├─┬ readable-stream@2.1.5
│ ├── buffer-shims@1.0.0
│ ├── core-util-is@1.0.2
│ ├── isarray@1.0.0
│ ├── process-nextick-args@1.0.7
│ ├── string_decoder@0.10.31
│ └── util-deprecate@1.0.2
└── uid-number@0.0.6

npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.

  • cd -
    /home/pi/nodejs.org/dist/latest/node-v7.4.0-linux-armv6l
  • cd /home/pi/.npm-global/hap-nodejs/node_modules/mdns
    /dev/fd/63: line 43: cd: /home/pi/.npm-global/hap-nodejs/node_modules/mdns: No such file or directory
  • sudo node-gyp BUILDTYPE=Release rebuild
    sudo: node-gyp: command not found
  • cd -
    /home/pi
  • sudo useradd --system --user-group homebridge
  • sudo mkdir -p /var/homebridge
  • sudo cp configs/config.json /var/homebridge/config.json
    cp: cannot stat ‘configs/config.json’: No such file or directory
  • sudo chown -R homebridge:homebridge /var/homebridge/
  • sudo cp files/homebridge /etc/default/homebridge
    cp: cannot stat ‘files/homebridge’: No such file or directory
  • sudo cp files/homebridge.service /etc/systemd/system/homebridge.service
    cp: cannot stat ‘files/homebridge.service’: No such file or directory
  • sudo systemctl daemon-reload
  • sudo systemctl enable homebridge
    Failed to execute operation: No such file or directory
  • sudo systemctl start homebridge
    Failed to start homebridge.service: Unit homebridge.service failed to load: No such file or directory.
  • chmod +x 'scripts/'
    chmod: cannot access ‘scripts/
    ’: No such file or directory
  • chmod +x configure.sh
    chmod: cannot access ‘configure.sh’: No such file or directory
  • ./configure.sh
    /dev/fd/63: line 57: ./configure.sh: No such file or directory
    `
@FritzTheCatfish
Copy link

Tried today with a fresh install on a Pi Zero.

pi@raspberrypi:~/Downloads $ bash <(curl -s https://raw.githubusercontent.com/macnow/homebridge-raspbian-installer/master/download.sh)
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en_US
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_US
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
git-man libcurl3-gnutls liberror-perl rsync
Suggested packages:
gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man libcurl3-gnutls liberror-perl rsync
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,613 kB of archives.
After this operation, 21.5 MB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libcurl3-gnutls armhf 7.38.0-4+deb8u5 [225 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main liberror-perl all 0.17-1.1 [22.4 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main git-man all 1:2.1.4-2.1+deb8u2 [1,267 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main git armhf 1:2.1.4-2.1+deb8u2 [2,725 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main rsync armhf 3.1.1-3 [373 kB]
Fetched 4,613 kB in 4s (1,007 kB/s)
Selecting previously unselected package libcurl3-gnutls:armhf.
(Reading database ... 31721 files and directories currently installed.)
Preparing to unpack .../libcurl3-gnutls_7.38.0-4+deb8u5_armhf.deb ...
Unpacking libcurl3-gnutls:armhf (7.38.0-4+deb8u5) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.1.4-2.1+deb8u2_all.deb ...
Unpacking git-man (1:2.1.4-2.1+deb8u2) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.1.4-2.1+deb8u2_armhf.deb ...
Unpacking git (1:2.1.4-2.1+deb8u2) ...
Selecting previously unselected package rsync.
Preparing to unpack .../rsync_3.1.1-3_armhf.deb ...
Unpacking rsync (3.1.1-3) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up libcurl3-gnutls:armhf (7.38.0-4+deb8u5) ...
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:2.1.4-2.1+deb8u2) ...
Setting up git (1:2.1.4-2.1+deb8u2) ...
Setting up rsync (3.1.1-3) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for systemd (215-17+deb8u6) ...
Cloning into 'homebridge-raspbian-installer'...
remote: Counting objects: 95, done.
remote: Total 95 (delta 0), reused 0 (delta 0), pack-reused 95
Unpacking objects: 100% (95/95), done.
Checking connectivity... done.
++ uname -m

  • UNAME=armv6l
  • sudo apt-get update
    Hit http://mirrordirector.raspbian.org jessie InRelease
    Hit http://archive.raspberrypi.org jessie InRelease
    Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
    Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
    Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
    Hit http://archive.raspberrypi.org jessie/main armhf Packages
    Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
    Hit http://archive.raspberrypi.org jessie/ui armhf Packages
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US
    Ign http://archive.raspberrypi.org jessie/main Translation-en_US
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
    Ign http://archive.raspberrypi.org jessie/main Translation-en
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
    Ign http://archive.raspberrypi.org jessie/ui Translation-en_US
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
    Ign http://archive.raspberrypi.org jessie/ui Translation-en
    Reading package lists... Done
  • sudo apt-get upgrade -y
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  • sudo apt-get install -y make libavahi-compat-libdnssd-dev dialog
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    make is already the newest version.
    make set to manually installed.
    The following extra packages will be installed:
    libavahi-client-dev libavahi-client3 libavahi-common-dev libavahi-compat-libdnssd1 libdbus-1-dev
    The following NEW packages will be installed:
    dialog libavahi-client-dev libavahi-client3 libavahi-common-dev libavahi-compat-libdnssd-dev libavahi-compat-libdnssd1 libdbus-1-dev
    0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
    Need to get 685 kB of archives.
    After this operation, 2,007 kB of additional disk space will be used.
    Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-client3 armhf 0.6.31-5 [50.6 kB]
    Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-compat-libdnssd1 armhf 0.6.31-5 [42.9 kB]
    Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main dialog armhf 1.2-20140911-1 [233 kB]
    Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-common-dev armhf 0.6.31-5 [61.4 kB]
    Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libdbus-1-dev armhf 1.8.22-0+deb8u1 [184 kB]
    Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-client-dev armhf 0.6.31-5 [55.4 kB]
    Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-compat-libdnssd-dev armhf 0.6.31-5 [57.7 kB]
    Fetched 685 kB in 2s (261 kB/s)
    Selecting previously unselected package libavahi-client3:armhf.
    (Reading database ... 32534 files and directories currently installed.)
    Preparing to unpack .../libavahi-client3_0.6.31-5_armhf.deb ...
    Unpacking libavahi-client3:armhf (0.6.31-5) ...
    Selecting previously unselected package libavahi-compat-libdnssd1:armhf.
    Preparing to unpack .../libavahi-compat-libdnssd1_0.6.31-5_armhf.deb ...
    Unpacking libavahi-compat-libdnssd1:armhf (0.6.31-5) ...
    Selecting previously unselected package dialog.
    Preparing to unpack .../dialog_1.2-20140911-1_armhf.deb ...
    Unpacking dialog (1.2-20140911-1) ...
    Selecting previously unselected package libavahi-common-dev.
    Preparing to unpack .../libavahi-common-dev_0.6.31-5_armhf.deb ...
    Unpacking libavahi-common-dev (0.6.31-5) ...
    Selecting previously unselected package libdbus-1-dev:armhf.
    Preparing to unpack .../libdbus-1-dev_1.8.22-0+deb8u1_armhf.deb ...
    Unpacking libdbus-1-dev:armhf (1.8.22-0+deb8u1) ...
    Selecting previously unselected package libavahi-client-dev.
    Preparing to unpack .../libavahi-client-dev_0.6.31-5_armhf.deb ...
    Unpacking libavahi-client-dev (0.6.31-5) ...
    Selecting previously unselected package libavahi-compat-libdnssd-dev.
    Preparing to unpack .../libavahi-compat-libdnssd-dev_0.6.31-5_armhf.deb ...
    Unpacking libavahi-compat-libdnssd-dev (0.6.31-5) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Setting up libavahi-client3:armhf (0.6.31-5) ...
    Setting up libavahi-compat-libdnssd1:armhf (0.6.31-5) ...
    Setting up dialog (1.2-20140911-1) ...
    Setting up libavahi-common-dev (0.6.31-5) ...
    Setting up libdbus-1-dev:armhf (1.8.22-0+deb8u1) ...
    Setting up libavahi-client-dev (0.6.31-5) ...
    Setting up libavahi-compat-libdnssd-dev (0.6.31-5) ...
    Processing triggers for libc-bin (2.19-18+deb8u7) ...
  • case "$UNAME" in
  • wget -r -l1 -e robots=off -np https://nodejs.org/dist/latest/ -A 'node-v*-linux-armv6l.tar.xz'
    --2017-03-01 13:32:49-- https://nodejs.org/dist/latest/
    Resolving nodejs.org (nodejs.org)... 104.20.23.46, 104.20.22.46, 2400:cb00:2048:1::6814:172e, ...
    Connecting to nodejs.org (nodejs.org)|104.20.23.46|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: ‘nodejs.org/dist/latest/index.html’

nodejs.org/dist/latest/index.html [ <=> ] 5.23K --.-KB/s in 0.003s

2017-03-01 13:32:50 (1.85 MB/s) - ‘nodejs.org/dist/latest/index.html’ saved [5355]

Removing nodejs.org/dist/latest/index.html since it should be rejected.

--2017-03-01 13:32:50-- https://nodejs.org/dist/latest/docs/
Reusing existing connection to nodejs.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nodejs.org/dist/latest/docs/index.html’

nodejs.org/dist/latest/docs/index.html [ <=> ] 294 --.-KB/s in 0s

2017-03-01 13:32:51 (835 KB/s) - ‘nodejs.org/dist/latest/docs/index.html’ saved [294]

Removing nodejs.org/dist/latest/docs/index.html since it should be rejected.

--2017-03-01 13:32:51-- https://nodejs.org/dist/latest/win-x64/
Reusing existing connection to nodejs.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nodejs.org/dist/latest/win-x64/index.html’

nodejs.org/dist/latest/win-x64/index.html [ <=> ] 650 --.-KB/s in 0s

2017-03-01 13:32:51 (2.09 MB/s) - ‘nodejs.org/dist/latest/win-x64/index.html’ saved [650]

Removing nodejs.org/dist/latest/win-x64/index.html since it should be rejected.

--2017-03-01 13:32:51-- https://nodejs.org/dist/latest/win-x86/
Reusing existing connection to nodejs.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘nodejs.org/dist/latest/win-x86/index.html’

nodejs.org/dist/latest/win-x86/index.html [ <=> ] 650 --.-KB/s in 0s

2017-03-01 13:32:51 (1.77 MB/s) - ‘nodejs.org/dist/latest/win-x86/index.html’ saved [650]

Removing nodejs.org/dist/latest/win-x86/index.html since it should be rejected.

--2017-03-01 13:32:51-- https://nodejs.org/dist/latest/node-v7.7.0-linux-armv6l.tar.xz
Reusing existing connection to nodejs.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 9188248 (8.8M) [application/x-xz]
Saving to: ‘nodejs.org/dist/latest/node-v7.7.0-linux-armv6l.tar.xz’

nodejs.org/dist/latest/node-v7.7.0-linux-armv6 100%[=====================================================================================================>] 8.76M 1.35MB/s in 6.7s

2017-03-01 13:32:59 (1.31 MB/s) - ‘nodejs.org/dist/latest/node-v7.7.0-linux-armv6l.tar.xz’ saved [9188248/9188248]

FINISHED --2017-03-01 13:32:59--
Total wall clock time: 9.7s
Downloaded: 5 files, 8.8M in 6.7s (1.31 MB/s)

  • cd nodejs.org/dist/latest/
  • sudo tar -xf node-v7.7.0-linux-armv6l.tar.xz
  • cd node-v7.7.0-linux-armv6l/
  • sudo cp -R bin CHANGELOG.md include lib LICENSE README.md share /usr/
  • cd ../../../../
  • mkdir /home/pi/.npm-global
  • npm config set prefix '~/.npm-global'
  • export PATH=/home/pi/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
  • PATH=/home/pi/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
  • source /home/pi/.profile
    ++ '[' -n '4.3.30(1)-release' ']'
    ++ '[' -f /home/pi/.bashrc ']'
    ++ . /home/pi/.bashrc
    +++ case $- in
    +++ return
    ++ '[' -d /home/pi/bin ']'
  • npm install -g --unsafe-perm homebridge hap-nodejs node-gyp json homebridge-server
    /home/pi/.npm-global/bin/homebridge -> /home/pi/.npm-global/lib/node_modules/homebridge/bin/homebridge
    /home/pi/.npm-global/bin/json -> /home/pi/.npm-global/lib/node_modules/json/lib/json.js
    /home/pi/.npm-global/bin/node-gyp -> /home/pi/.npm-global/lib/node_modules/node-gyp/bin/node-gyp.js

mdns@2.3.3 install /home/pi/.npm-global/lib/node_modules/homebridge/node_modules/mdns
node-gyp rebuild

make: Entering directory '/home/pi/.npm-global/lib/node_modules/homebridge/node_modules/mdns/build'
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
In file included from ../src/mdns.hpp:11:0,
from ../src/dns_sd.cpp:1:
/home/pi/.node-gyp/7.7.0/include/node/node.h:44:33: fatal error: tracing/trace_event.h: No such file or directory
#include "tracing/trace_event.h"
^
compilation terminated.
dns_sd_bindings.target.mk:149: recipe for target 'Release/obj.target/dns_sd_bindings/src/dns_sd.o' failed
make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
make: Leaving directory '/home/pi/.npm-global/lib/node_modules/homebridge/node_modules/mdns/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.48+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.npm-global/lib/node_modules/homebridge/node_modules/mdns
gyp ERR! node -v v7.7.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
/home/pi/.npm-global/lib
├─┬ hap-nodejs@0.4.21
│ ├── buffer-shims@1.0.0
│ ├─┬ curve25519-n@1.1.0
│ │ ├── bindings@1.2.1
│ │ └── nan@2.5.1
│ ├─┬ debug@2.6.1
│ │ └── ms@0.7.2
│ ├── ed25519@0.0.4
│ ├── fast-srp-hap@1.0.0
│ ├── ip@1.1.4
│ ├─┬ mdns@2.3.3
│ │ └── nan@2.3.5
│ └─┬ node-persist@0.0.8
│ ├── mkdirp@0.3.5
│ └── q@1.1.2
├── homebridge-server@1.0.24
├── json@9.0.4
└─┬ node-gyp@3.5.0
├─┬ fstream@1.0.10
│ └── inherits@2.0.3
├─┬ glob@7.1.1
│ ├── fs.realpath@1.0.0
│ ├─┬ inflight@1.0.6
│ │ └── wrappy@1.0.2
│ ├── once@1.4.0
│ └── path-is-absolute@1.0.1
├── graceful-fs@4.1.11
├─┬ minimatch@3.0.3
│ └─┬ brace-expansion@1.1.6
│ ├── balanced-match@0.4.2
│ └── concat-map@0.0.1
├─┬ mkdirp@0.5.1
│ └── minimist@0.0.8
├─┬ nopt@3.0.6
│ └── abbrev@1.1.0
├─┬ npmlog@4.0.2
│ ├─┬ are-we-there-yet@1.1.2
│ │ ├── delegates@1.0.0
│ │ └─┬ readable-stream@2.2.3
│ │ ├── buffer-shims@1.0.0
│ │ ├── core-util-is@1.0.2
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ ├── console-control-strings@1.1.0
│ ├─┬ gauge@2.7.3
│ │ ├── aproba@1.1.1
│ │ ├── has-unicode@2.0.1
│ │ ├── object-assign@4.1.1
│ │ ├── signal-exit@3.0.2
│ │ ├─┬ string-width@1.0.2
│ │ │ ├── code-point-at@1.1.0
│ │ │ └─┬ is-fullwidth-code-point@1.0.0
│ │ │ └── number-is-nan@1.0.1
│ │ ├─┬ strip-ansi@3.0.1
│ │ │ └── ansi-regex@2.1.1
│ │ └── wide-align@1.1.0
│ └── set-blocking@2.0.0
├─┬ osenv@0.1.4
│ ├── os-homedir@1.0.2
│ └── os-tmpdir@1.0.2
├─┬ request@2.79.0
│ ├── aws-sign2@0.6.0
│ ├── aws4@1.6.0
│ ├── caseless@0.11.0
│ ├─┬ combined-stream@1.0.5
│ │ └── delayed-stream@1.0.0
│ ├── extend@3.0.0
│ ├── forever-agent@0.6.1
│ ├─┬ form-data@2.1.2
│ │ └── asynckit@0.4.0
│ ├─┬ har-validator@2.0.6
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── escape-string-regexp@1.0.5
│ │ │ ├── has-ansi@2.0.0
│ │ │ └── supports-color@2.0.0
│ │ ├─┬ commander@2.9.0
│ │ │ └── graceful-readlink@1.0.1
│ │ ├─┬ is-my-json-valid@2.16.0
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@4.0.1
│ │ │ └── xtend@4.0.1
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├─┬ hawk@3.1.3
│ │ ├── boom@2.10.1
│ │ ├── cryptiles@2.0.5
│ │ ├── hoek@2.16.3
│ │ └── sntp@1.0.9
│ ├─┬ http-signature@1.1.1
│ │ ├── assert-plus@0.2.0
│ │ ├─┬ jsprim@1.3.1
│ │ │ ├── extsprintf@1.0.2
│ │ │ ├── json-schema@0.2.3
│ │ │ └── verror@1.3.6
│ │ └─┬ sshpk@1.10.2
│ │ ├── asn1@0.2.3
│ │ ├── assert-plus@1.0.0
│ │ ├── bcrypt-pbkdf@1.0.1
│ │ ├─┬ dashdash@1.14.1
│ │ │ └── assert-plus@1.0.0
│ │ ├── ecc-jsbn@0.1.1
│ │ ├─┬ getpass@0.1.6
│ │ │ └── assert-plus@1.0.0
│ │ ├── jodid25519@1.0.2
│ │ ├── jsbn@0.1.1
│ │ └── tweetnacl@0.14.5
│ ├── is-typedarray@1.0.0
│ ├── isstream@0.1.2
│ ├── json-stringify-safe@5.0.1
│ ├─┬ mime-types@2.1.14
│ │ └── mime-db@1.26.0
│ ├── oauth-sign@0.8.2
│ ├── qs@6.3.1
│ ├── stringstream@0.0.5
│ ├─┬ tough-cookie@2.3.2
│ │ └── punycode@1.4.1
│ ├── tunnel-agent@0.4.3
│ └── uuid@3.0.1
├── rimraf@2.6.1
├── semver@5.3.0
├─┬ tar@2.2.1
│ └── block-stream@0.0.9
└─┬ which@1.2.12
└── isexe@1.1.2

npm ERR! Linux 4.4.48+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "--unsafe-perm" "homebridge" "hap-nodejs" "node-gyp" "json" "homebridge-server"
npm ERR! node v7.7.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! mdns@2.3.3 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mdns@2.3.3 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mdns
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mdns
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/Downloads/homebridge-raspbian-installer/npm-debug.log

  • cd /home/pi/.npm-global/homebridge
    ./install.sh: line 40: cd: /home/pi/.npm-global/homebridge: No such file or directory
  • npm install --unsafe-perm bignum

bignum@0.12.5 install /home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum
node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://rvagg-node.s3-us-west-2.amazonaws.com/bignum/v0.12.5/bignum-v0.12.5-node-v51-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bignum@0.12.5 and node@7.7.0 (node-v51 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum/build'
CXX(target) Release/obj.target/bignum/bignum.o
In file included from ../../nan/nan.h:47:0,
from ../bignum.cc:8:
/home/pi/.node-gyp/7.7.0/include/node/node.h:44:33: fatal error: tracing/trace_event.h: No such file or directory
#include "tracing/trace_event.h"
^
compilation terminated.
bignum.target.mk:96: recipe for target 'Release/obj.target/bignum/bignum.o' failed
make: *** [Release/obj.target/bignum/bignum.o] Error 1
make: Leaving directory '/home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:194:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.48+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum/binding/bignum.node" "--module_name=bignum" "--module_path=/home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum/binding"
gyp ERR! cwd /home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum
gyp ERR! node -v v7.7.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum/binding' (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/pi/Downloads/homebridge-raspbian-installer/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:194:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:899:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.48+
node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/Downloads/homebridge-raspbian-installer/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum
node-pre-gyp ERR! node -v v7.7.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.33
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum/binding/bignum.node --module_name=bignum --module_path=/home/pi/Downloads/homebridge-raspbian-installer/node_modules/bignum/binding' (1)
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/Downloads/homebridge-raspbian-installer/package.json'
npm WARN homebridge-raspbian-installer No description
npm WARN homebridge-raspbian-installer No repository field.
npm WARN homebridge-raspbian-installer No README data
npm WARN homebridge-raspbian-installer No license field.
npm ERR! Linux 4.4.48+
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--unsafe-perm" "bignum"
npm ERR! node v7.7.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! bignum@0.12.5 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bignum@0.12.5 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bignum package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bignum
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bignum
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/Downloads/homebridge-raspbian-installer/npm-debug.log

  • cd -
    /home/pi/Downloads/homebridge-raspbian-installer/nodejs.org/dist/latest/node-v7.7.0-linux-armv6l
  • cd /home/pi/.npm-global/hap-nodejs/node_modules/mdns
    ./install.sh: line 43: cd: /home/pi/.npm-global/hap-nodejs/node_modules/mdns: No such file or directory
  • sudo node-gyp BUILDTYPE=Release rebuild
    sudo: node-gyp: command not found
  • cd -
    /home/pi/Downloads/homebridge-raspbian-installer
  • sudo useradd --system --user-group homebridge
  • sudo usermod -a -G systemd-journal homebridge
  • sudo mkdir -p /var/homebridge
  • sudo cp configs/config.json /var/homebridge/config.json
  • sudo chown -R homebridge:homebridge /var/homebridge/
  • sudo cp files/homebridge /etc/default/homebridge
  • sudo cp files/homebridge.service /etc/systemd/system/homebridge.service
  • sudo cp files/sudoers /etc/sudoers.d/homebridge
  • sudo systemctl daemon-reload
  • sudo systemctl enable homebridge
    Created symlink from /etc/systemd/system/multi-user.target.wants/homebridge.service to /etc/systemd/system/homebridge.service.
  • sudo systemctl start homebridge
  • chmod +x scripts/config-merge.py
  • chmod +x configure.sh
    pi@raspberrypi:~/Downloads $

@FritzTheCatfish
Copy link

Apparently there is a general issue with node

nodejs/node#11628

@FritzTheCatfish
Copy link

I have tried using node 7.6.0 and it does compile successfully.
Unfortunately I run into another problem: modules are compiled into .npm directory an not .npm-global
so it is unclear how to make the bignum and mdns modules

@MrsDelish
Copy link
Author

MrsDelish commented Mar 1, 2017

https://docs.npmjs.com/getting-started/fixing-npm-permissions this show how to change the default install location, as well as fix permissions on npm.

https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi#install-homebridge-and-dependencies the homebridge wiki shows how to install dependencies.

@FritzTheCatfish
Copy link

Both links above return a 404 error

The 7.7.1 release solved the node issue but installation still fails

there is an issue between .npm and .npm-global paths

@MrsDelish
Copy link
Author

the text to the links were correct, I forgot to paste the same path into (url). should be clickable now.

@FritzTheCatfish
Copy link

Thanks, I found them

I have removed .npm, .npm-global, .node-gyp, the binaries in /usr/bin and the /usr/lib/node_modules

after running the install script I still find an error:

/home/pi/Downloads/homebridge-raspbian-installer/nodejs.org/dist/latest/node-v7.7.1-linux-armv6l

  • cd /home/pi/.npm-global/hap-nodejs/node_modules/mdns
    ./install.sh: line 43: cd: /home/pi/.npm-global/hap-nodejs/node_modules/mdns: No such file or directory
  • sudo node-gyp BUILDTYPE=Release rebuild
    sudo: node-gyp: command not found

@FritzTheCatfish
Copy link

I believe there are path errors in the script
at line 40 there is a cd to ~/.npm-global/homebridge
such directory does not exist
it should be ~/.npm-global/lib/node_modules/homebridge
similarly at line 43 the line should be
~/.npm-global/lib/node_modules/hap-nodejs/node_modules/mdns
please double check and modify as necessary

@FritzTheCatfish
Copy link

in the install script at line 44 there is a sudo command that fails as root has no knowledge of .npm-global

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants