{"id":2608,"date":"2020-01-06T00:49:10","date_gmt":"2020-01-05T15:49:10","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=2608"},"modified":"2023-06-17T07:28:01","modified_gmt":"2023-06-16T22:28:01","slug":"ubuntu-18-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\/2608","title":{"rendered":"Ubuntu Desktop 18.04\u3067Ruby\u3092\u4f7f\u7528\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u3067Ruby\u3092\u4f7f\u7528\u3059\u308b\u624b\u9806\u3092\u6574\u7406\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u4f7f\u7528\u74b0\u5883<\/h2>\n<ul>\n<li>Ubuntu 18.04.3 Desktop<\/li>\n<\/ul>\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; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ git clone https:\/\/github.com\/rbenv\/rbenv.git ~\/.rbenv\r\n<\/pre>\n<p>rvenv\u30b3\u30de\u30f3\u30c9\u306e\u30d1\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ echo 'export PATH=&quot;$HOME\/.rbenv\/bin:$PATH&quot;' &gt;&gt; ~\/.bashrc\r\n<\/pre>\n<p>rvenv\u30b3\u30de\u30f3\u30c9\u306e\u52d5\u4f5c\u74b0\u5883\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ~\/.rbenv\/bin\/rbenv init\r\n# Load rbenv automatically by appending\r\n# the following to ~\/.bashrc:\r\n\r\neval &quot;$(rbenv init -)&quot;\r\n\r\n<\/pre>\n<p>\u6307\u5b9a\u3055\u308c\u305f\u3068\u304a\u308a\u3001.bashrc\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ vi .bashrc\r\n...\r\neval &quot;$(rbenv init -)&quot;\r\n<\/pre>\n<h2>ruby-build\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>ruby-build\u3092rbenv\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ mkdir -p &quot;$(rbenv root)&quot;\/plugins\r\n<\/pre>\n<p>git\u3088\u308aruby-build\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\ngit clone https:\/\/github.com\/rbenv\/ruby-build.git &quot;$(rbenv root)&quot;\/plugins\/ruby-build\r\n<\/pre>\n<h2>Ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306aruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ rbenv install --list\r\n<\/pre>\n<p>\u524d\u63d0\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get install libssl-dev\r\n$ sudo apt-get install zlib1g-dev\r\n<\/pre>\n<p>Ruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$rbenv install 2.7.0\r\nDownloading ruby-2.7.0.tar.bz2...\r\n-&gt; https:\/\/cache.ruby-lang.org\/pub\/ruby\/2.7\/ruby-2.7.0.tar.bz2\r\nInstalling ruby-2.7.0...\r\nInstalled ruby-2.7.0 to \/home\/sysadm001\/.rbenv\/versions\/2.7.0\r\n<\/pre>\n<p>shims\u306b\u53cd\u6620\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ rbenv rehash\r\n<\/pre>\n<p>ruby\u306e\u30d1\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ rbenv which ruby\r\n\/home\/sysadm001\/.rbenv\/versions\/2.7.0\/bin\/ruby\r\n<\/pre>\n<h2>Ruby\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u3092\u78ba\u8a8d<\/h2>\n<p>\u5225\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u3001rvenv\u30b3\u30de\u30f3\u30c9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u3092\u691c\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ curl -fsSL https:\/\/github.com\/rbenv\/rbenv-installer\/raw\/master\/bin\/rbenv-doctor | bash\r\nChecking for `rbenv' in PATH: \/home\/sysadm001\/.rbenv\/bin\/rbenv\r\nChecking for rbenv shims in PATH: OK\r\nChecking `rbenv install' support: \/home\/sysadm001\/.rbenv\/plugins\/ruby-build\/bin\/rbenv-install (ruby-build 20191225-1-gbac1f1c)\r\nCounting installed Ruby versions: 1 versions\r\nChecking RubyGems settings: OK\r\nAuditing installed plugins: OK\r\n<\/pre>\n<p>rbenv\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ rbenv -v\r\nrbenv 1.1.2-11-gc46a970\r\n<\/pre>\n<p>ruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ruby -v\r\nruby 2.7.0p0 (2019-12-25 revision 647ee6f091) &#x5B;x86_64-linux]\r\n<\/pre>\n<h2>Ruby\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30ebbundle\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Ruby\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30ebbundle\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ gem install bundler\r\nFetching bundler-2.1.3.gem\r\nSuccessfully installed bundler-2.1.3\r\nParsing documentation for bundler-2.1.3\r\nInstalling ri documentation for bundler-2.1.3\r\nDone installing documentation for bundler after 1 seconds\r\n1 gem installed\r\n<\/pre>\n<p>bundler\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ bundler -v\r\nBundler version 2.1.3\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>rbenv\u306b\u3088\u308bRuby\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u306ebundler\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831\uff08Ruby\uff09<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/rbenv\/rbenv\" rel=\"noopener noreferrer\" target=\"_blank\">Groom your app's Ruby environment with rbenv.<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/rbenv\/ruby-build\" rel=\"noopener noreferrer\" target=\"_blank\">ruby-build<\/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\/6571\" ><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 18.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 18.04\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Ubuntu Desktop 18.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<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/5239\" ><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\u3011Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2018\/08\/eye_debian_04-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Debian\u7cfb\u306eOS\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/7679\" ><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\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Linux\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 lazyload\" data-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 18.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":[178],"tags":[503,51,274,361,52],"class_list":["post-2608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu-desktop-1804","tag-ruby","tag-ubuntu","tag-ubuntu-desktop","tag-ubuntu-desktop-18-04","tag-52"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2608","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=2608"}],"version-history":[{"count":6,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2608\/revisions"}],"predecessor-version":[{"id":12390,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2608\/revisions\/12390"}],"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=2608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=2608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=2608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}