{"id":11515,"date":"2012-10-26T12:30:46","date_gmt":"2012-10-26T03:30:46","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=11515"},"modified":"2013-08-28T16:12:50","modified_gmt":"2013-08-28T07:12:50","slug":"%e3%83%86%e3%82%b9%e3%83%88","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/11515.html","title":{"rendered":"Ruby\u3092CentOS6\u3078\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u8ffd\u8a18\uff1a\u3044\u307e\u306a\u3089\u3001<a href=\"\/\/www.sssg.org\/blogs\/hiro345\/archives\/10431.html\">CentOS6 \u3067 Ruby1.9.3-p448\u3092\u7c21\u5358\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb | hiro345<\/a> \u306e\u65b9\u304c\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>Ruby\u3092\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<a href=\"http:\/\/pub.cozmixng.org\/~the-rwiki\/rw-cgi.rb?cmd=view;name=Ruby+Install+Guide%3A%3AUNIX%C1%B4%C8%CC\">Ruby Install Guide::UNIX\u5168\u822c<\/a>\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<!--more--><br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\n<strong>\u6e96\u5099<\/strong><br \/>\nRuby\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u78ba\u8a8d\u3002OpenSSL\u3001zlib\u3001readline\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5fc5\u8981\u3060\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u958b\u767a\u7528\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002libyaml\u3082\u5fc5\u8981\u3060\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u300164bit\u7248\u3092rpmforge\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u5834\u5408\u3067\u3082\u3001\u78ba\u8a8d\u306e\u305f\u3081\u306b\u30b3\u30de\u30f3\u30c9\u306f\u5b9f\u884c\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ sudo yum install openssl-devel zlib-devel readline-devel\r\n$ sudo yum --enablerepo=rpmforge install libyaml libyaml-devel\r\n<\/pre>\n<p>\n<strong>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\n\u5b9f\u884c\u3059\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u3079\u308b\u3088\u3046\u306b\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u6bce\u306b $HOME\/applications \u3078\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002make \u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u3057\u3066\u30d0\u30a4\u30ca\u30ea\u30b3\u30fc\u30c9\u3092\u751f\u6210\u3057\u3066\u3044\u307e\u3059\u3002make test \u306f\u751f\u6210\u3057\u305f\u30d0\u30a4\u30ca\u30ea\u30b3\u30fc\u30c9\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002\u3069\u3061\u3089\u3082\u5b9f\u884c\u306b\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002make test\u304c\u6210\u529f\u3057\u305f\u3089\u3001\u5f8c\u306f make install\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u3053\u306e\u3042\u305f\u308a\u3001\u3084\u306f\u308aRPM\u3092\u4f7f\u3046\u306e\u3088\u308a\u306f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002rvm\u3084rbenv\u3092\u4f7f\u3046\u5834\u5408\u306b\u306f\u5185\u90e8\u7684\u306b\u540c\u3058\u3088\u3046\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u308b\u306e\u3067\u304b\u304b\u308b\u6642\u9593\u306f\u540c\u7a0b\u5ea6\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ wget ftp:\/\/ftp.ruby-lang.org\/pub\/ruby\/1.9\/ruby-1.9.3-p286.tar.bz2\r\n$ tar xvf ruby-1.9.3-p286.tar.bz2\r\n$ cd ruby-1.9.3-p286\r\n$ .\/configure --prefix=$HOME\/applications\/ruby-1.9.3-p286\r\n$ make\r\n$ make test\r\n$ make install\r\n<\/pre>\n<p>DSO\u5bfe\u5fdc\u7248\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ .\/configure --prefix=$HOME\/applications\/ruby-1.9.3-p286 --enable-shared\r\n<\/pre>\n<p>\n<strong>\u52d5\u4f5c\u78ba\u8a8d<\/strong><br \/>\n\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u8868\u793a\u3068\u3001\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\n$ $HOME\/applications\/ruby-1.9.3-p286\/bin\/ruby -v\r\nruby 1.9.3p286 (2012-10-12) [x86_64-linux]\r\n$ echo &quot;puts &#039;hello ruby&#039;&quot; | $HOME\/applications\/ruby-1.9.3-p286\/bin\/ruby\r\nhello ruby\r\n<\/pre>\n<p>\n<strong>PATH\u306e\u8a2d\u5b9a<\/strong><br \/>\n\u5fc5\u8981\u306a\u3089\u3001.bash_profile \u3067PATH\u3092\u901a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: true\">\r\nexport PATH=$HOME\/applications\/ruby-1.9.3-p286\/bin:$PATH\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8ffd\u8a18\uff1a\u3044\u307e\u306a\u3089\u3001CentOS6 \u3067 Ruby1.9.3-p448\u3092\u7c21\u5358\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb | hiro345 \u306e\u65b9\u304c\u3044\u3044\u3067\u3059\u306d\u3002 Ruby\u3092\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002Ruby Install Guide &hellip; <a href=\"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/11515.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[26,653,1209,74],"class_list":["post-11515","post","type-post","status-publish","format-standard","hentry","category-program","tag-centos","tag-centos6","tag-linux","tag-ruby"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/11515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=11515"}],"version-history":[{"count":22,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/11515\/revisions"}],"predecessor-version":[{"id":14745,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/11515\/revisions\/14745"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=11515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=11515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=11515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}