{"id":2539,"date":"2020-01-01T18:28:49","date_gmt":"2020-01-01T09:28:49","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=2539"},"modified":"2023-08-29T05:24:01","modified_gmt":"2023-08-28T20:24:01","slug":"ubuntu-16-04-lts-desktop%e3%81%a7ruby%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/2539","title":{"rendered":"Ubuntu Desktop 16.04\u3067Ruby\u3092\u4f7f\u7528\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu 16.04 LTS Desktop\u3067Ruby\u3092\u4f7f\u7528\u3059\u308b\u624b\u9806\u3092\u6574\u7406\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>rbenv\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001rbenv\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get install rbenv ruby-build\r\n<\/pre>\n<h2>rbenv\u306e\u521d\u671f\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001rbenv\u3092bash\u3067\u4f7f\u7528\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ echo 'eval &quot;$(rbenv init -)&quot;' &gt;&gt; ~\/.bash_profile\r\n<\/pre>\n<h2>Ruby\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306aRuby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ rbenv install --list\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066Ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ rbenv install 2.2.3\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001Ruby\u306e\u5c0e\u5165\u74b0\u5883\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ rbenv version\r\nsystem (set by \/home\/sysadm001\/.rbenv\/version)\r\n$ ruby --version\r\nruby 2.3.1p112 (2016-04-26) &#x5B;x86_64-linux-gnu]\r\n$ gem env\r\nRubyGems Environment:\r\n  - RUBYGEMS VERSION: 2.5.2.1\r\n  - RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112) &#x5B;x86_64-linux-gnu]\r\n  - INSTALLATION DIRECTORY: \/var\/lib\/gems\/2.3.0\r\n  - USER INSTALLATION DIRECTORY: \/home\/sysadm001\/.gem\/ruby\/2.3.0\r\n  - RUBY EXECUTABLE: \/usr\/bin\/ruby2.3\r\n  - EXECUTABLE DIRECTORY: \/usr\/local\/bin\r\n  - SPEC CACHE DIRECTORY: \/home\/sysadm001\/.gem\/specs\r\n  - SYSTEM CONFIGURATION DIRECTORY: \/etc\r\n  - RUBYGEMS PLATFORMS:\r\n    - ruby\r\n    - x86_64-linux\r\n  - GEM PATHS:\r\n     - \/var\/lib\/gems\/2.3.0\r\n     - \/home\/sysadm001\/.gem\/ruby\/2.3.0\r\n     - \/usr\/lib\/x86_64-linux-gnu\/rubygems-integration\/2.3.0\r\n     - \/usr\/share\/rubygems-integration\/2.3.0\r\n     - \/usr\/share\/rubygems-integration\/all\r\n  - GEM CONFIGURATION:\r\n     - :update_sources =&gt; true\r\n     - :verbose =&gt; true\r\n     - :backtrace =&gt; false\r\n     - :bulk_threshold =&gt; 1000\r\n  - REMOTE SOURCES:\r\n     - https:\/\/rubygems.org\/\r\n  - SHELL PATH:\r\n     - \/home\/sysadm001\/bin\r\n     - \/home\/sysadm001\/.local\/bin\r\n     - \/usr\/local\/sbin\r\n     - \/usr\/local\/bin\r\n     - \/usr\/sbin\r\n     - \/usr\/bin\r\n     - \/sbin\r\n     - \/bin\r\n     - \/usr\/games\r\n     - \/usr\/local\/games\r\n     - \/snap\/bin\r\n<\/pre>\n<h2>\u53c2\u8003\u60c5\u5831\uff08Ruby\uff09<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/rbenv\/rbenv\" target=\"_blank\" rel=\"noopener noreferrer\">rbenv - GitHUB<\/a><\/li>\n<li><a href=\"https:\/\/www.ruby-lang.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Ruby - Official Site<\/a><\/li>\n<\/ul>\n<h2>\u53c2\u8003\u60c5\u5831\uff08Ubuntu\uff09<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.ubuntu.com\/desktop\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu Desktop<\/a><\/li>\n<li><a href=\"https:\/\/www.ubuntu.com\/desktop\/developers\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu Desktop for developers<\/a><\/li>\n<li><a href=\"https:\/\/blog.ubuntu.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">ubuntu blog<\/a><\/li>\n<li><a href=\"https:\/\/wiki.ubuntu.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">ubuntu wiki<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/1604\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ubuntu Desktop 16.04\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2022\/04\/fi_ubuntu_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Ubuntu Desktop 16.04\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Ubuntu Desktop 16.04 LTS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3vqrEPc\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51p2j7BlgUL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 16.04 LTS Desktop\u3067Ruby\u3092\u4f7f\u7528\u3059\u308b\u624b\u9806\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5284,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[145],"tags":[503,51,274,387,52],"class_list":["post-2539","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu-desktop-1604","tag-ruby","tag-ubuntu","tag-ubuntu-desktop","tag-ubuntu-desktop-16-04","tag-52"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=2539"}],"version-history":[{"count":5,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2539\/revisions"}],"predecessor-version":[{"id":14533,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2539\/revisions\/14533"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5284"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=2539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=2539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=2539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}