{"id":1132,"date":"2013-03-18T18:30:52","date_gmt":"2013-03-18T09:30:52","guid":{"rendered":"http:\/\/helloidea.org\/?p=1132"},"modified":"2014-02-22T22:17:53","modified_gmt":"2014-02-22T13:17:53","slug":"raspberry-pi-%e3%81%a7-node-js-websocket-io","status":"publish","type":"post","link":"https:\/\/helloidea.org\/index.php\/archives\/1132.html","title":{"rendered":"Raspberry Pi \u3067 node.js + WebSocket.io"},"content":{"rendered":"<p><a href=\"http:\/\/helloidea.org\/wp-content\/uploads\/2013\/03\/logo.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/helloidea.org\/wp-content\/uploads\/2013\/03\/logo.png\" alt=\"logo\" width=\"171\" height=\"46\" class=\"aligncenter size-full wp-image-1203\" \/><\/a><br \/>\n<strong><span class=\"hi-c-orange\">\u666e\u901a<\/span><\/strong>\u306bapt\u3067\u5165\u308c\u305f node \u3067\u306f WebSocket.io \u304c\u52d5\u304b\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u30e1\u30e2\u30e1\u30e2<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ apt-cache search node | grep node\r\n<\/pre>\n<p>\u3067node\u3092\u63a2\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\nnodejs - Node.js event-based server-side javascript engine\r\nnodejs-legacy - Node.js event-based server-side javascript engine (legacy symlink)\r\n<\/pre>\n<p>\u305d\u308c\u3089\u3057\u3044 nodejs \u3068 nodejs-legacy \u306e\uff12\u3064\u304c\u898b\u3064\u304b\u308b\u306e\u3067\u65b0\u3057\u3044\u65b9\u3092\u5165\u308c\u308b<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get install nodejs\r\n<\/pre>\n<p>npm\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u308c\u308b<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ npm install websocket.io\r\n<\/pre>\n<p>\u3059\u308b\u3068<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\nnpm WARN This failure might be due to the use of legacy binary &quot;node&quot;\r\n<\/pre>\n<p>\u3069\u3046\u3082node\u304c\u53e4\u304f\u3066websocket.io\u304c\u5229\u7528\u51fa\u6765\u306a\u3044\u3088\u3046\uff08nodejs v0.6.19\uff09<br \/>\n\u3053\u308c\u3082legacy\u304b\u3044\u3063<\/p>\n<p><strong><span class=\"hi-c-orange\">\u3068\u3044\u3046\u308f\u3051\u3067\u65b0\u3057\u3044node\u3092\u5165\u308c\u308b<\/span><\/strong><br \/>\n<a href=\"http:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?f=34&amp;t=18775\">Node.js v0.8.11 &#8211; Installation now easy<\/a><br \/>\n\u3053\u3061\u3089\u306b\u66f8\u3044\u3066\u3042\u308b\u3088\u3046\u306b\u7c21\u5358\u305d\u3046\u306a\u306e\u3067 v0.10.0 \u3067\u3082<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ wget http:\/\/nodejs.org\/dist\/v0.10.0\/node-v0.10.0.tar.gz\r\n$ tar xzvf node-v0.10.0.tar.gz\r\n$ cd node-v0.10.0\/\r\n$ .\/configure\r\n$ make\r\n$ make install\r\n<\/pre>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u51c4\u304f\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u3067\u30d0\u30a4\u30ca\u30ea\u3092\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059<br \/>\n<strong><span class=\"hi-c-orange\">binary<\/span><\/strong><br \/>\n<a href=\"http:\/\/helloidea.org\/wp-content\/uploads\/2013\/03\/node-v0.10.0-raspberrypi.tar.gz\">node-v0.10.0-raspberrypi.tar<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u666e\u901a\u306bapt\u3067\u5165\u308c\u305f node \u3067\u306f WebSocket.io \u304c\u52d5\u304b\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u30e1\u30e2\u30e1\u30e2 $ apt-cache search node | grep node \u3067node\u3092\u63a2\u3059\u3002 nodejs &#8211; Node.js  \u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-1132","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/comments?post=1132"}],"version-history":[{"count":33,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1132\/revisions"}],"predecessor-version":[{"id":1247,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1132\/revisions\/1247"}],"wp:attachment":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/media?parent=1132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/categories?post=1132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/tags?post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}