{"id":3563,"date":"2014-06-22T14:39:57","date_gmt":"2014-06-22T12:39:57","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=3563"},"modified":"2021-11-22T17:15:22","modified_gmt":"2021-11-22T16:15:22","slug":"wie-kann-die-aktuellste-node-js-v0-10-29-auf-einem-raspberry-pi-version-jessie-installiert-werden","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=3563","title":{"rendered":"Wie kann die aktuellste Node.js v0.10.29 auf einem Raspberry Pi (Version Jessie) installiert werden?"},"content":{"rendered":"<p>Wer die neue Node.js v0.10.29 braucht, muss sie selbst compilieren, oder etwas warten bis die binaries <a href=\"https:\/\/nodejs.org\/dist\/v0.10.29\/\" title=\"nodejs\" target=\"_blank\" rel=\"noopener noreferrer\">hier<\/a> auch vorhanden sind.<\/p>\n<p>Dazu erst mal das System aktualisieren.<\/p>\n<p><code>sudo apt-get update && sudo apt-get upgrade<\/code><\/p>\n<p>Dann noch die neueste Firmware installieren mit:<\/p>\n<p><code>sudo rpi-update<\/code><br \/>\nErgebnis:<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.37.49.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.37.49.png\" alt=\"Bildschirmfoto 2014-06-21 um 18.37.49\" width=\"1233\" height=\"625\" class=\"aligncenter size-full wp-image-3564\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.37.49.png 1233w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.37.49-300x152.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.37.49-1024x519.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.37.49-900x456.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Ein reboot ist noch n\u00f6tig:<\/p>\n<p><code>sudo reboot<\/code><\/p>\n<p>Jetzt kann es losgehen mit der Installation der n\u00f6tigen Pakete (ca. 84 MB):<\/p>\n<p><code>sudo apt-get install git-core build-essential python libssl-dev nano screen<\/code><\/p>\n<p>Nun das Node.js Repo nach \/opt clonen und die aktuellste Version auschecken:<br \/>\n<code><br \/>\ncd \/opt<br \/>\nsudo git clone https:\/\/github.com\/joyent\/node.git<br \/>\ncd node<br \/>\n<\/code><br \/>\nErgebnis:<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.52.15.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.52.15.png\" alt=\"Bildschirmfoto 2014-06-21 um 18.52.15\" width=\"834\" height=\"227\" class=\"aligncenter size-full wp-image-3567\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.52.15.png 834w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.52.15-300x81.png 300w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><br \/>\nNun die gew\u00fcnschte Version auschecken mit:<br \/>\n<code><br \/>\nsudo git checkout v0.10.29<br \/>\n<\/code><br \/>\nErgebnis:<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.52.04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.52.04.png\" alt=\"Bildschirmfoto 2014-06-21 um 18.52.04\" width=\"842\" height=\"308\" class=\"aligncenter size-full wp-image-3566\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.52.04.png 842w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-21-um-18.52.04-300x109.png 300w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Nun starten wir das Tool <a href=\"https:\/\/linuxwiki.de\/screen\" title=\"sceen\" target=\"_blank\" rel=\"noopener noreferrer\">screen<\/a> mit:<\/p>\n<p><code>screen<\/code><\/p>\n<p>damit beim beenden der SSH Session, der Prozess weiter l\u00e4uft.<\/p>\n<p>Und nun compilieren wir wie in <a href=\"https:\/\/github.com\/nodejs\/node-v0.x-archive\" title=\"joyent\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/joyent\/node<\/a> beschrieben mit:<br \/>\n<code><br \/>\nsudo .\/configure<br \/>\nsudo make<br \/>\nsudo make install<br \/>\n<\/code><br \/>\nDas dauert dann so ca. 2-4 Stunden.<\/p>\n<p>Wir k\u00f6nnen das Terminal Fenster schlie\u00dfen und mit<\/p>\n<p><code>screen -r<\/code><\/p>\n<p>wieder jederzeit die Session aufnehmen.<\/p>\n<p>Nun noch den Pfad in der ~\/.<strong>profile Datei<\/strong> erg\u00e4nzen mit:<\/p>\n<p><code><br \/>\nnano ~\/.profile<br \/>\nexport PATH=$PATH:\/opt\/node<br \/>\n<\/code><\/p>\n<p>Checken ob <strong>node<\/strong> installiert wurde mit<\/p>\n<p><code>node --version<\/code><\/p>\n<p>Ergebnis:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-08.50.32.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-08.50.32.png\" alt=\"Bildschirmfoto 2014-06-22 um 08.50.32\" width=\"420\" height=\"54\" class=\"aligncenter size-full wp-image-3579\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-08.50.32.png 420w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-08.50.32-300x38.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/p>\n<p>Oder das Testportfolio mit 601 Test ausf\u00fchren (Laufzeit bei mir 22 Minuten) mit:<\/p>\n<p><code>sudo make test<\/code><\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.26.05.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.26.05.png\" alt=\"Bildschirmfoto 2014-06-22 um 14.26.05\" width=\"532\" height=\"79\" class=\"aligncenter size-full wp-image-3581\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.26.05.png 532w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.26.05-300x44.png 300w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/a><\/p>\n<p>Ein Fehler, das ist nicht so schlimmm \ud83d\ude09 Rest l\u00e4uft ja.<\/p>\n<p>Dann evl. noch die Dokumentation erstellen, mit<\/p>\n<p><code>sudo make doc<\/code><\/p>\n<p>nach ein paar Minuten kann z.B. mit<\/p>\n<p><code>man doc\/node.1<\/code><\/p>\n<p>die Doku gelesen werden:<br \/>\n<a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.31.55.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.31.55.png\" alt=\"Bildschirmfoto 2014-06-22 um 14.31.55\" width=\"1547\" height=\"630\" class=\"aligncenter size-full wp-image-3583\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.31.55.png 1547w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.31.55-300x122.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.31.55-1024x417.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.31.55-900x366.png 900w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Oder ein kleines Hallo Welt Beispiel. Die node Konsole aufrufen mit <code>node<\/code> und <code>console.log(\"Hallo Welt\")<\/code> eingeben:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.38.04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.38.04.png\" alt=\"Bildschirmfoto 2014-06-22 um 14.38.04\" width=\"355\" height=\"156\" class=\"aligncenter size-full wp-image-3586\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.38.04.png 355w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2014\/06\/Bildschirmfoto-2014-06-22-um-14.38.04-300x131.png 300w\" sizes=\"auto, (max-width: 355px) 100vw, 355px\" \/><\/a><\/p>\n<p>Nun viel Spa\u00df mit <strong>Node.js<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wer die neue Node.js v0.10.29 braucht, muss sie selbst compilieren, oder etwas warten bis die binaries hier auch vorhanden sind. Dazu erst mal das System aktualisieren. sudo apt-get update &#038;&#038; sudo apt-get upgrade Dann noch die neueste Firmware installieren mit: sudo rpi-update Ergebnis: Ein reboot ist noch n\u00f6tig: sudo reboot Jetzt kann es losgehen mit &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=3563\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eWie kann die aktuellste Node.js v0.10.29 auf einem Raspberry Pi (Version Jessie) installiert werden?\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220,79,1023],"tags":[2184,137,1534,1533,2190],"class_list":["post-3563","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-programmierung","category-raspberry-pi","tag-anleitung","tag-installieren","tag-node-0-10-29","tag-node-js","tag-raspberry-pi"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/3563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3563"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/3563\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3563"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}