{"id":5017,"date":"2015-02-04T00:19:27","date_gmt":"2015-02-03T15:19:27","guid":{"rendered":"http:\/\/www.vincentina.net\/?p=5017"},"modified":"2015-02-04T00:19:27","modified_gmt":"2015-02-03T15:19:27","slug":"irb-%e3%81%a7%e5%b1%a5%e6%ad%b4%e3%82%92%e4%bd%bf%e3%81%84%e3%81%9f%e3%81%84%ef%bc%81%ef%bc%88%e3%82%ab%e3%83%bc%e3%82%bd%e3%83%ab%e3%82%ad%e3%83%bc%e3%81%8c%e4%bd%bf%e3%81%88%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=5017","title":{"rendered":"irb \u3067\u5c65\u6b74\u3092\u4f7f\u3044\u305f\u3044\uff01\uff08\u30ab\u30fc\u30bd\u30eb\u30ad\u30fc\u304c\u4f7f\u3048\u306a\u3044\uff09"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Ruby\u306eirb\u3067\u3001\u4e0a\u30ad\u30fc\u3067\u5c65\u6b74\u304c\u51fa\u305b\u308b\u3082\u306e\u3068\u51fa\u305b\u306a\u3044\u3082\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u5c11\u3057\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u51fa\u308b\u65b9\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">&#x5B;takeken@localhost]$ irb\r\nirb(main):001:0&gt; p 'hoge'\r\n&quot;hoge&quot;\r\n=&gt; &quot;hoge&quot;\r\nirb(main):002:0&gt; p 'hoge'<\/pre>\n<p>\u51fa\u306a\u3044\u65b9\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">&#x5B;takeken@centos]$ irb\r\nirb(main):001:0&gt; p 'hoge'\r\n&quot;hoge&quot;\r\n=&gt; &quot;hoge&quot;\r\nirb(main):002:0&gt; ^&#x5B;&#x5B;A<\/pre>\n<p>readline \u3069\u3061\u3089\u306b\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">&#x5B;takeken@centos]$ rpm -q readline\r\nreadline-6.0-4.el6.x86_64\r\n\r\n&#x5B;takeken@localhost]$ rpm -q readline\r\nreadline-6.0-4.el6.x86_64<\/pre>\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068readline-devel\u304c\u5fc5\u8981\u306a\u6a21\u69d8\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">&#x5B;takeken@centos]$ rpm -q readline-devel\r\n\u30d1\u30c3\u30b1\u30fc\u30b8 readline-devel \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\r\n\r\n&#x5B;takeken@localhost]$ rpm -q readline-devel\r\nreadline-devel-6.0-4.el6.x86_64<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u3061\u3089\u306fSL\u3067\u3059\u304c\u3001\u5225\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u3067\u3082\u6a19\u6e96\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u5927\u4e08\u592b\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">&#x5B;takeken@centos]$ sudo yum install readline-devel\r\n\r\n======================================================================================================================================================\r\n\u00a0\u30d1\u30c3\u30b1\u30fc\u30b8\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u30d0\u30fc\u30b8\u30e7\u30f3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u30ea\u30dd\u30b8\u30c8\u30ea\u30fc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u5bb9\u91cf\r\n======================================================================================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059:\r\n\u00a0readline-devel\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6.0-4.el6\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 133 k\r\n\r\n\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u8981\u7d04\r\n======================================================================================================================================================\r\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1 \u30d1\u30c3\u30b1\u30fc\u30b8<\/pre>\n<p>\u3053\u308c\u3060\u3051\u3067\u306f\u6539\u5584\u3057\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">irb(main):001:0&gt; p 'hoge'\r\n&quot;hoge&quot;\r\n=&gt; &quot;hoge&quot;\r\nirb(main):002:0&gt; ^&#x5B;&#x5B;A<\/pre>\n<p>\u8a72\u5f53\u3059\u308bRuby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">&#x5B;takeken@centos]$ ruby -v\r\nruby 2.1.5p273 (2014-11-13 revision 48405) &#x5B;x86_64-linux]\r\n&#x5B;takeken@centos]$ rbenv install 2.1.5\r\nrbenv: \/home\/takeken\/.rbenv\/versions\/2.1.5 already exists\r\ncontinue with installation? (y\/N) y\r\nDownloading ruby-2.1.5.tar.gz...<\/pre>\n<p>\u30c8\u30a5\u30c3\u30c8\u30a5\u30eb\u30fc m\uff19(\u30fb\u2200\u30fb)\u30fc\uff01\u3000\u30ab\u30fc\u30bd\u30eb\u30ad\u30fc\u3067\u5c65\u6b74\u304c\u898b\u308c\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">&#x5B;takeken@centos]$ irb\r\nirb(main):001:0&gt; p 'hoge'\r\n&quot;hoge&quot;\r\n=&gt; &quot;hoge&quot;\r\nirb(main):002:0&gt; p 'hoge'<\/pre>\n<p>\u30d2\u30b9\u30c8\u30ea\u30fc\u306e\u30d0\u30c3\u30d5\u30a1\u3092\u3069\u306e\u304f\u3089\u3044\u306b\u3059\u308b\u304b\u3068\u304b\u3001\u3069\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30ed\u30fc\u30c9\u3057\u3066\u304a\u304f\u3068\u304b\u3082\u51fa\u6765\u308b\u305d\u3046\u306a\u306e\u3067\u3059\u304c\u3001\u4ed6\u306b\u3082\u8272\u3005\u3068\u8a2d\u5b9a\u3092\u3057\u305f\u3044\u5834\u5408\u306f\/.irbrc\u3067\u53ef\u80fd\u3068\u306e\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=5017\" data-text=\"irb \u3067\u5c65\u6b74\u3092\u4f7f\u3044\u305f\u3044\uff01\uff08\u30ab\u30fc\u30bd\u30eb\u30ad\u30fc\u304c\u4f7f\u3048\u306a\u3044\uff09\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Ruby\u306eirb\u3067\u3001\u4e0a\u30ad\u30fc\u3067\u5c65\u6b74\u304c\u51fa\u305b\u308b\u3082\u306e\u3068\u51fa\u305b\u306a\u3044\u3082\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u5c11\u3057\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002 \u51fa\u308b\u65b9\u3002 &#x5B;takeken@localhost]$ irb irb(main):001:0&gt; p  &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=5017\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;irb \u3067\u5c65\u6b74\u3092\u4f7f\u3044\u305f\u3044\uff01\uff08\u30ab\u30fc\u30bd\u30eb\u30ad\u30fc\u304c\u4f7f\u3048\u306a\u3044\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-5017","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5017"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5017\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}