{"id":806,"date":"2016-06-27T17:08:45","date_gmt":"2016-06-27T08:08:45","guid":{"rendered":"http:\/\/frsw.net\/blog\/?p=806"},"modified":"2016-07-05T05:57:41","modified_gmt":"2016-07-04T20:57:41","slug":"centos7%e3%81%abruby%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%abrbenv%e5%88%a9%e7%94%a8","status":"publish","type":"post","link":"http:\/\/frsw.net\/blog\/centos7%e3%81%abruby%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%abrbenv%e5%88%a9%e7%94%a8\/","title":{"rendered":"CentOS7\u306bRuby\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(rbenv\u5229\u7528)"},"content":{"rendered":"<p>\u4ee5\u4e0b\u3092\u30b3\u30d4\u30da\u3057\u3066\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[shell]<br \/>\n# \u5fc5\u8981\u306a\u3082\u306e\u3092yum\u308b<br \/>\nsudo yum install -y git gcc libffi-devel zlib-devel gdbm-devel ncurses-devel openssl-devel readline-devel<\/p>\n<p># rbenv\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3066\u304f\u308b<br \/>\nsudo git clone https:\/\/github.com\/sstephenson\/rbenv.git \/usr\/local\/src\/rbenv<br \/>\nsudo git clone https:\/\/github.com\/sstephenson\/ruby-build.git \/usr\/local\/src\/rbenv\/plugins\/ruby-build<\/p>\n<p># \u8aad\u307f\u8fbc\u307f\u7528\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u7528\u610f<br \/>\ntouch \/etc\/profile.d\/rbenv.sh<br \/>\necho &#8216;export RBENV_ROOT=&quot;\/usr\/local\/src\/rbenv\/&quot;&#8217; \/etc\/profile.d\/rbenv.sh<br \/>\necho &#8216;export PATH=&quot;${RBENV_ROOT}\/bin:${PATH}&quot;&#8217; \/etc\/profile.d\/rbenv.sh<br \/>\necho &#8216;eval &quot;$(rbenv init -)&quot;&#8217; \/etc\/profile.d\/rbenv.sh<\/p>\n<p># \u78ba\u8a8d<br \/>\ncat ~\/etc\/profile.d\/rbenv.sh<\/p>\n<p># \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8aad\u307f\u8fbc\u307f<br \/>\nsource ~\/etc\/profile.d\/rbenv.sh<\/p>\n<p># \u78ba\u8a8d<br \/>\nrbenv &#8211;version<\/p>\n<p># Ruby\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n# \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<br \/>\nrbenv install -l<\/p>\n<p># \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8a2d\u5b9a<br \/>\nrbenv install 2.2.4<br \/>\nrbenv global 2.2.4<\/p>\n<p># \u78ba\u8a8d<br \/>\nruby -v<\/p>\n<p># gem\u985e<br \/>\ngem update &#8211;system<br \/>\ngem install bundler<br \/>\ngem install rake<\/p>\n<p>[\/shell]<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u3053\u308c\u3067Ruby\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u3092\u30b3\u30d4\u30da\u3057\u3066\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002 [shell] # \u5fc5\u8981\u306a\u3082\u306e\u3092yum\u308b sudo yum install -y git gcc libffi-devel zlib-devel gdbm-devel ncurses- [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,43],"tags":[45,22,44],"_links":{"self":[{"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/posts\/806"}],"collection":[{"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/comments?post=806"}],"version-history":[{"count":4,"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/posts\/806\/revisions"}],"predecessor-version":[{"id":812,"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/posts\/806\/revisions\/812"}],"wp:attachment":[{"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/media?parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/categories?post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/frsw.net\/blog\/wp-json\/wp\/v2\/tags?post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}