[Gelöst]Startprobleme Homekit auf Debian Wheezy

Begonnen von cubiator, 22 September 2016, 14:03:03

Vorheriges Thema - Nächstes Thema

cubiator

Hallo zusammen,

ich versuche Homekit auf meinen Cubitruck zum laufen zu bringen.
FHEM läuft super und ich habe schon so einige Sensoren & Funksteckdosen am laufen, mein nächster Schritt ist nun Homekit.

Ich habe nach der Anleitung im Wiki installiert, nur mit der Ausnahme das ich nodejs so nicht installiert bekommen habe und es manuell nach einer Anleitung instliert habe.

Hier mein System:
root@Servian:~/.homebridge# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.11 (wheezy)
Release:        7.11
Codename:       wheezy
root@Servian:~/.homebridge# node -v
v0.10.29
root@Servian:~/.homebridge# nodejs -v
v0.10.29


Wenn ich nun mit "homekit" den Dienst starten möchte bekomme ich folgenden Fehler:


root@Servian:~/.homebridge# homebridge
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegister>

/usr/lib/node_modules/homebridge-fhem/index.js:53
    for( var subscription of FHEM_subscriptions[inform_id] ) {
                          ^^
[Thu Sep 22 2016 13:48:59 GMT+0200 (CEST)] ====================
[Thu Sep 22 2016 13:48:59 GMT+0200 (CEST)] ERROR LOADING PLUGIN homebridge-fhem:
[Thu Sep 22 2016 13:48:59 GMT+0200 (CEST)] SyntaxError: Unexpected identifier
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Plugin.load (/usr/lib/node_modules/homebridge/lib/plugin.js:65:22)
    at Server.<anonymous> (/usr/lib/node_modules/homebridge/lib/server.js:112:14)
    at Array.forEach (native)
    at Server._loadPlugins (/usr/lib/node_modules/homebridge/lib/server.js:108:22)
[Thu Sep 22 2016 13:48:59 GMT+0200 (CEST)] ====================
[Thu Sep 22 2016 13:48:59 GMT+0200 (CEST)] No plugins found. See the README for information on installing plugins.
[Thu Sep 22 2016 13:48:59 GMT+0200 (CEST)] Loaded config.json with 0 accessories and 1 platforms.
[Thu Sep 22 2016 13:48:59 GMT+0200 (CEST)] ---
[Thu Sep 22 2016 13:48:59 GMT+0200 (CEST)] Loading 1 platforms...
Error: The requested platform 'FHEM' was not registered by any plugin.
    at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:106:13)
    at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:263:45)
    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:71:36)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
root@Servian:~/.homebridge#


Mein Problem vermute ich im AVAHI, da werden die Bonjour-Dienste angemeckert, muss ich dieses tauschen?
Oder liegt der Fehler wo anders?

Danke und Gruß
Cubiator

justme1968

du brauchst mindestens node version 0.12.7 oder neuer. deine ist zu alt.

die bonjour meldung ist nur eine warnung. das ist ok.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

cubiator

Hallo justme1968,


danke für Deine Antwort!

Zitat
du brauchst mindestens node version 0.12.7 oder neuer. deine ist zu alt.

Das klingt logisch!

Ich habe (vermutlich) die Nodeversion mit folgenden Zeilen geupdatet:


sudo npm cache clean -f
sudo npm install -g n
sudo n stable


Wenn ich mir nun aber die Version anzeigenlassen möchte oder aber "homebridge" starten möchte meckert er an das mir die GLIBCXX_3.4.18 fehlt.
Tatsächlich fehlt mir diese Lib auch, denn wenn ich mir folgendes ausgeben lasse endet es eine Version vorher:


root@Servian:/home/cubie# strings /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 | grep GLIBCXX   GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_DEBUG_MESSAGE_LENGTH


Anscheinend habe ich aber schon die neueste Version von der libstdc denn:


root@Servian:/home/cubie# apt-cache search libstdc
libgmp-dev - Mehrfach genaue Arithmetikbibliothek - Entwicklungswerkzeuge
libstdc++6-4.4-dev - Die GNU-Standard-C++-Bibliothek Version 3 (Entwicklungsdateien)
libstdc++6-4.4-doc - GNU-Standard-C++-Bibliothek, Version 3 (Dokumentation)
libstdc++6-4.6-dev - Die GNU-Standard-C++-Bibliothek Version 3 (Entwicklungsdateien)
libstdc++6-4.6-doc - GNU-Standard-C++-Bibliothek, Version 3 (Dokumentation)
libstdc++6 - GNU-Implementierung der Standard-C++-Bibliothek (Version 3)
libstdc++6-4.7-dev - Die GNU-Standard-C++-Bibliothek Version 3 (Entwicklungsdateien)
libstdc++6-4.7-doc - GNU-Standard-C++-Bibliothek, Version 3 (Dokumentation)
libstdc++6-4.4-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.4-pic - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.6-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.6-pic - GNU Standard C++ Library v3 (shared library subset kit)
libstdc++6-4.7-dbg - GNU Standard C++ Library v3 (debugging files)
libstdc++6-4.7-pic - GNU Standard C++ Library v3 (shared library subset kit)
root@Servian:/home/cubie#



root@Servian:/home/cubie# apt-get install libstdc++6-4.7-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
libstdc++6-4.7-dev ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.



Hast Du noch irgendwelche Tipps für mich? Zur Zeit würde ich ungerne updaten und Jessie neuinstallieren da auf diesem System div. Dienste laufen die ich neu wieder zum laufen bringen müsste.

Ich danke Euch!
Cubiator

justme1968

schau dir mal die installation anweisung auf der node seite an.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

cubiator

Uff,

hier brauche ich noch einmal Hilfe von Dir.

Ich habe mir hier-> https://nodejs.org/en/download/ die ARM7 Version für den Cubietruck heruntergeladen, finde weder im Verzeichniss noch auf der Website von Node eine Anleitung zum installieren. Kannst Du mir einen kleinen Wink geben wo ich die finde? Auch sind anscheinend die Googlegötter gegen mich, werde aus der ganzen Sache nicht wirklich schlau.

Danke
Cubiator

cubiator

Hmm,

Kann es sein das ich die Dateien nur in die entsprechenden Verzeichnisse kopieren muss?


cubiator

Hallo zusammen,

Das Problem hat sich erledigt.
Ich habe meinen Server mit Debian Jessie neu aufgesetzt und nun läuft es wie erwartet.

Danke
Cubiator