Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Pine 64+

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Pine 64+

    This topic has been deleted. Only users with topic management privileges can see it.
    • Bluefox
      Bluefox last edited by

      @Chauffeur:

      @eric2905

      Das ist ja Timing. Gerade doch mal angemeldet, weil ich nach deinem Stand der Dinge fragen wollte (nachdem ich schon wieder den halben Nachmittag mit Installation verbracht habe) und schon gibt es ein positives Update…

      Also, der Reihe nach: Auf dem Pine64 habe ich Linux Ubuntu drauf.

      Ich habe mich bei der Installation an der Raspberry Pi-Anleitung auf der iobroker-Seite orientiert.

      Habe als Node sowohl die dort vorgeschlagene als auch die neuste versucht. Soweit scheint immer alles zu klappen, aber beim letzten Punkt

      npm install iobroker --unsafe-perm

      bekomme ich immer nur

      bash: /usr/local/bin/npm: /usr/local/bin/node: bad interpreter: No such file or directory

      Ok, jetzt hatte ich bei dir rausgelesen, dass du eine andere Node installiert hattest. Irgendwie weiß ich aber nicht wirklich, welche genau und wie ich da ran komme.

      Das mit dem Symlink habe ich mal versucht, ohne Erfolg...

      Bin aber auch ein Absoluter Linux-Anfänger und arbeite mich hier Befehl für Befehl vorwärts.

      Meinst du, du kannst mal eine Ergänzung zur Raspi-Tutorial zusammen schreiben? Also was man anders machen müsste? Das wäre super...

      Gesendet von meinem SGP511 mit Tapatalk `

      sudo apt-get install npm@latest-2 -g
      
      1 Reply Last reply Reply Quote 0
      • Bluefox
        Bluefox last edited by

        @eric2905:

        Habt geschafft!!!

        Die gängigen Node-Installationsroutine bringt den ppm nicht mehr mit - den muss man separat nachinstallierten.

        Und Node heißt auch nicht mehr "node" sondern "nodejs" => die Abfrage "node -v" muss durch "nodejs -v" ersetzt werden.

        Habe jetzt die Pakete von Blutfox aus der Tester-Thread installiert und habe Zugriff auf den Admin.

        Bei der Installation jedes Paketes kommen quasi dieselben Meldungen:

        root@pine64:/opt/iobroker# npm install https://github.com/ioBroker/ioBroker.flot/tarball/master --production
        
        > iobroker.js-controller@0.8.10 install /opt/iobroker/node_modules/iobroker.js-controller
        > node lib/setup.js setup first
        
        /opt/iobroker
        +-- iobroker.admin@1.1.1 
        +-- iobroker.flot@1.2.0 
        +-- iobroker.history@0.4.0 
        +-- iobroker.js-controller@0.8.10 
        `-- iobroker.sql@0.2.0 
        
        npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'
        npm WARN iobroker No description
        npm WARN iobroker No repository field.
        npm WARN iobroker No README data
        npm WARN iobroker No license field.
        root@pine64:/opt/iobroker# npm install https://github.com/ioBroker/ioBroker.rickshaw/tarball/master --production
        
        > iobroker.js-controller@0.8.10 install /opt/iobroker/node_modules/iobroker.js-controller
        > node lib/setup.js setup first
        
        /opt/iobroker
        +-- iobroker.admin@1.1.1 
        +-- iobroker.flot@1.2.0 
        +-- iobroker.history@0.4.0 
        +-- iobroker.js-controller@0.8.10 
        +-- iobroker.rickshaw@0.4.0 
        `-- iobroker.sql@0.2.0 
        
        npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'
        npm WARN iobroker No description
        npm WARN iobroker No repository field.
        npm WARN iobroker No README data
        npm WARN iobroker No license field.
        

        Installation vom hm-rpc-Adapter schlägt mit folgender Meldung fehl:

        $ ./iobroker add hm-rpc
        npm install iobroker.hm-rpc --production --prefix "/opt/iobroker" (System call)
        npm
         WARN 
        enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'
        npm
         WARN iobroker No description
        npm WARN iobroker No repository field.
        npm
         WARN
         iobroker No README data
        npm
         
        WARN iobroker No license field.
        host.pine64 install adapter hm-rpc
        npm install --production --prefix "/opt/iobroker/node_modules/iobroker.hm-rpc" (System call)
        npm
         
        ERR! Linux 3.10.65-7-pine64-longsleep
        npm
         ERR! 
        argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" "--prefix" "/opt/iobroker/node_modules/iobroker.hm-rpc"npm
         ERR! node v4.2.6npm ERR! 
        npm  v3.5.2
        
        npm ERR! Cannot read property 'target' of nullnpm ERR! 
        npm ERR! If you need help, you may report this error at:
        npm ERR!     <https: github.com/npm/issues="">
        
        npm ERR! Please include the following file with any support request:npm ERR!     /opt/npm-debug.log
        
        Cannot install iobroker.hm-rpc: 1
        ERROR: process exited with code 25</https:>
        

        Hier das dazugehörige Log (in *.txt umbenannt, da es sonst nicht hochgeladen werden konnte):
        filename="npm-debug.log.txt" index="0">~~

        Jetzt weitere Adapter probieren.

        Gruß,

        Eric `
        npm 3 macht diese komische Fehlermeldungen und ich kann die noch nicht verstehen.

        https://github.com/npm/npm/issues/10686

        Ich empfehle downgrade auf npm2

        sudo apt-get install npm@latest-2 -g
        
        syuilo created this issue in npm/npm

        closed Cannot read property 'target' of null #10686

        1 Reply Last reply Reply Quote 0
        • eric2905
          eric2905 last edited by

          Hi Bluefox,

          ioBroker läuft aber trotzdem echt gut.

          Gruß,

          Eric

          1 Reply Last reply Reply Quote 0
          • C
            Chauffeur last edited by

            Danke schonmal für die Antworten…

            Leider bisher kein Erfolg. Jetzt wollte ich nochmal Schritt für Schritt alles durchgehen und dann die Fehlermeldungen posten, aber ich scheitere jetzt schon bei

            apt-get install -y build-essential python-rpi.gpio nodejs
            ````(ich habe mir mal erlaubt, nach der Raspi 2/3-Anleitung zu gehen, nicht der Raspi 1).
            
            Alles was ich bekomme, ist:
              ` > E: Unable to locate package python-rpi.gpio
            > 
            > E: Couldn't find any package by glob 'python-rpi.gpio'
            > 
            > E: Couldn't find any package by regex 'python-rpi.gpio' `  
            
            Hm, so wird das nix…
            
            Ich hau mir jetzt Ubuntu nochmal neu auf die Karte...
            1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators last edited by

              Die python-rpi.gpio sind IMHO auch eben nur für den raspi.

              Lass das mal raus

              Gruß

              Rainer

              1 Reply Last reply Reply Quote 0
              • C
                Chauffeur last edited by

                Ja, das war mein Fehler, hatte ich beim letzten Mal auch raus gelassen…

                Das kommt davon, wenn man alles zwischen Tür und Angel macht... :?

                1 Reply Last reply Reply Quote 0
                • C
                  Chauffeur last edited by

                  Super, scheint geklappt zu haben. Keine Ahnung, was noch für Meldungen kamen, bis ich wieder an den Laptop kam, war dieser neu gestartet… :shock:

                  Habe ein Windows-Update in Verdacht...

                  Nach````
                  iobroker start

                  
                  Vielen Dank schonmal alles Helfern…
                  1 Reply Last reply Reply Quote 0
                  • C
                    Chauffeur last edited by

                    Sorry, ich schon wieder. (Das wird mir jetzt langsam wirklich unangenehm 😢 )

                    Nachdem sich mein System nach einem Stromausfall wohl zerschossen hat, habe ich jetzt gestern alles neu aufgesetzt. Hänge jetzt aber wieder am gleichen Problem wie beim ersten Post:

                    Ich bekomme nur

                    root@linux:/opt/iobroker# npm install --unsafe-perm iobroker
                    bash: /usr/local/bin/npm: /usr/local/bin/node: bad interpreter: No such file or directory
                    

                    Also, bisheriges Vorgehen war:

                    ! ````
                    apt-get update
                    apt-get upgrade -y
                    ! apt-get install build-essential
                    ! wget http://download.iobroker.net/nodejs0_12_6_armhf.deb
                    dpkg -i nodejs0_12_6_armhf.deb
                    rm nodejs0_12_6_armhf.deb
                    apt-get install nodejs

                    >! ALTERNATIV (altes Nodejs entfernt vorher)
                    >! ````
                    curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
                    apt-get install nodejs
                    >! mkdir /opt/iobroker
                    cd /opt/iobroker
                    npm install iobroker --unsafe-perm
                    

                    Bei Nodejs bekomme ich

                    root@linux:/usr/bin# ls -l node*
                    lrwxrwxrwx 1 root root        6 Jun 29 09:24 node -> nodejs
                    -rwxr-xr-x 1 root root 10281544 May 20 23:57 nodejs
                    

                    Bezüglich NPM kommt

                    root@linux:/usr/bin# apt-get install npm@latest-2 -g
                    E: Command line option 'g' [from -g] is not understood in combination with the other options.
                    root@linux:/usr/bin# apt-get install npm@latest-2
                    Reading package lists... Done
                    Building dependency tree
                    Reading state information... Done
                    E: Unable to locate package npm@latest-2
                    

                    Ich habe keine Ahnung, wie ich das beim letzten Mal gemacht habe.

                    Ich muß doch in meinem Ablauf was vergessen bzw. nen Fehler drin haben, oder?

                    1 Reply Last reply Reply Quote 0
                    • eric2905
                      eric2905 last edited by

                      Hi,

                      @Chauffeur:

                      Sorry, ich schon wieder. (Das wird mir jetzt langsam wirklich unangenehm 😢 ) `
                      kein Thema - wenn keiner mehr antwortet, war es ggf. zu viel :lol:

                      @Chauffeur:

                      Bezüglich NPM kommt

                      root@linux:/usr/bin# apt-get install npm@latest-2 -g
                      
                      

                      Ich habe keine Ahnung, wie ich das beim letzten Mal gemacht habe.

                      Ich muß doch in meinem Ablauf was vergessen bzw. nen Fehler drin haben, oder? `
                      Ja, hast Du 8-)

                      Es heißt nicht "<u>apt-get</u> install npm@latest-2 -g" sondern "<u>npm</u> install -g npm@latest-2" (siehe hier : http://forum.iobroker.net/viewtopic.php?f=17&t=3213).

                      Damit hat es gestern auf meinem Pine64 dann sauber funktioniert.

                      Gruß,

                      Eric

                      1 Reply Last reply Reply Quote 0
                      • C
                        Chauffeur last edited by

                        Oh, dass hatte ich so von Bluefox kopiert…

                        Oder unterscheidet sich das abhängig von "sudo" oder "root"?

                        Aber:

                        root@linux:/usr/bin# npm install -g npm@latest-2
                        bash: /usr/local/bin/npm: /usr/local/bin/node: bad interpreter: No such file or directory :| 
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • eric2905
                          eric2905 last edited by

                          Hi,

                          hmmm , in dem Threat, den ich verlinkt habe, hat Bluefox aber "npm install …" geschrieben.

                          Aber egal.

                          Ich hatte auf dem Pine auch Probleme, als ich npm und Node mit dem "curl ..." Befehlsblock installiert hatte.

                          Hab meinen Pine dann komplett neu gemacht, "apt-get install npm" usw. ausgeführt und im Anschluss die Zeile von Bluefox - danach ließ sich ioBroker ohne nennenswerte Probleme installieren.

                          Gruß,

                          Eric

                          1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators last edited by

                            @derAuge:

                            NOTICE: ALL ORDERS CURRENTLY PLACED ON WILL SHIP MID JULY 2016

                            meine Bestellung wartet bereits seit dem 05.05.16 `
                            Hallo Jürgen,

                            wurde denn dein Geld auch schon abgebucht?

                            In meiner Bestellbestätigung steht noch, dass Ende Mai / Anfang Juni versandt werden soll:
                            144_pine_order.jpg

                            Auf mehrere Anfragen habe ich noch keine Reaktion.

                            Gruß

                            Rainer

                            1 Reply Last reply Reply Quote 0
                            • C
                              Chauffeur last edited by

                              @eric2905:

                              hmmm , in dem Threat, den ich verlinkt habe, hat Bluefox aber "npm install …" geschrieben. `
                              Ich glaube, ich übersehe irgendwie den von dir verlinkten Thread… :?

                              Ich hatte mich auf Bluefox`s Post ca 10 Einträge weiter oben bezogen. Dort zitiert er

                              sudo apt-get install npm@latest-2 -g
                              

                              > … "apt-get install npm" usw. ausgeführt und im Anschluss die Zeile von Bluefox - danach ließ sich ioBroker ohne nennenswerte Probleme installieren.

                              Ok, "apt-get install npm" ist schon mal was. Da es in den von mir verwendeten Anleitungen

                              http://www.iobroker.net/?page_id=2295&lang=de und

                              http://www.iobroker.net/?page_id=3397&lang=de

                              nicht vorkommt, ging ich als Laie wohl davon aus, dass npm mit nodejs mitinstalliert wird.

                              Also, npm-Installation lief jetzt durch, trotzdem kommt immer das gleiche

                              bash: /usr/local/bin/npm: /usr/local/bin/node: bad interpreter: No such file or directory
                              

                              Kann es irgendwie dran liegen, dass ich ja immer von /usr/bin ausgehe, in der Fehlermeldung aber /usr/local/bin kommt?

                              1 Reply Last reply Reply Quote 0
                              • eric2905
                                eric2905 last edited by

                                Hi,

                                was kommt denn, wenn Du

                                node -v
                                

                                und

                                npm -v
                                

                                eingibst?

                                Gruß,

                                Eric

                                1 Reply Last reply Reply Quote 0
                                • C
                                  Chauffeur last edited by

                                  node -v
                                  bash: /usr/local/bin/node: No such file or directory
                                  
                                  npm -v
                                  bash: /usr/local/bin/npm: /usr/local/bin/node: bad interpreter: No such file or directory
                                  

                                  Noch zur Info:

                                  root@linux:/usr/bin# ls -l node*
                                  lrwxrwxrwx 1 root root        6 Jun 29 09:24 node -> nodejs
                                  lrwxrwxrwx 1 root root       33 Dec  7  2015 node-gyp -> ../share/node-gyp/bin/node-gyp.js
                                  -rwxr-xr-x 1 root root 10281544 May 20 23:57 nodejs
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • eric2905
                                    eric2905 last edited by

                                    Wenn ich nachher zu Hause bin, melde ich mich.

                                    Gruß,

                                    Eric

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      Chauffeur last edited by

                                      Derweil nochmal den Stand der Dinge:

                                      Habe node & npm komplett deinstalliert und neu eingespielt mit

                                      wget http://download.iobroker.net/nodejs0_12_6_armhf.deb
                                      dpkg -i nodejs0_12_6_armhf.deb
                                      rm nodejs0_12_6_armhf.deb
                                      Apt-get install npm
                                      

                                      Liege ich soweit richtig oder sollte ich ein anderes Node nehmen bzw. anders installieren?

                                      Fehler bleibt der gleiche…

                                      1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators last edited by

                                        Ich habe den Pine zwar noch nicht, aber wenn du schon einen 64bit Rechner hast, solltest du auch die entsprechende Software dazu nehmen.

                                        Abgesehen davon sollte die nodejs Version 4.xx genommen werden. Die 0.10.22 ist veraltet.

                                        Gruß

                                        Rainer

                                        1 Reply Last reply Reply Quote 0
                                        • eric2905
                                          eric2905 last edited by

                                          Bin noch nicht zu Hause, aber setze den Pine mal neu auf (mit dem Debian-Image) und installiere npm & Co mittels apt-get.. Danach den npm install … von Bluefox.

                                          So hab ich es gemacht und es läuft.

                                          Gruß,

                                          Eric

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            Chauffeur last edited by

                                            Ok, dann wäre jetzt mein weiteres vorgehen, alles wieder runter und

                                            curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
                                            

                                            (jetzt mal aus der aktuelleren Pi-Anleitung übernommen)

                                            bei "- E bash - " kam das letzte Mal eine Fehlermeldung. Deswegen hatte ich es weggelassen.

                                            Aber jetzt scheint es auch damit durchzulaufen. Mal abwarten…

                                            Oder Nodejs 4.x ganz anders installieren?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            691
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            10
                                            76
                                            10045
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo