{"id":324,"date":"2017-11-10T06:00:02","date_gmt":"2017-11-09T21:00:02","guid":{"rendered":"https:\/\/t-office.blue\/?p=324"},"modified":"2017-11-13T09:30:15","modified_gmt":"2017-11-13T00:30:15","slug":"macbook%e3%81%a7gem%e3%82%92%e4%bd%bf%e3%81%88%e3%82%8b%e3%82%88%e3%81%86%e3%81%ab%e6%89%8b%e9%96%93%e5%8f%96%e3%81%a3%e3%81%9f%e8%a9%b1","status":"publish","type":"post","link":"https:\/\/wp.t-office.blue\/?p=324","title":{"rendered":"MacBook\u3067Gem\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u624b\u9593\u53d6\u3063\u305f\u8a71"},"content":{"rendered":"<h1>mac\u3067gem install \u3092\u3057\u3088\u3046\u3068\u3059\u308b\u3068permission error\u304c\u51fa\u308b\u306e\u3067\u306a\u3093\u3068\u304b\u3059\u308b\u8a71<\/h1>\n<p>\u3000\u306f\u3058\u3081\u306f\u624b\u6301\u3061\u306eMac\u306bjekyll\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3093\u3060\u3051\u3069\u3001PermissionError\u304c\u51fa\u305f\u306e\u3067\u3001\u306a\u3093\u3068\u304b\u3057\u3088\u3046\u3068\u3057\u305f\u8a71\u3002<br \/>\n\u3061\u306a\u307f\u306bMac\u306f\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/t-office.blue\/wp-content\/uploads\/2017\/11\/mac-300x135.png\" alt=\"\" width=\"300\" height=\"135\" class=\"alignnone size-medium wp-image-326\" srcset=\"https:\/\/wp.t-office.blue\/wp-content\/uploads\/2017\/11\/mac-300x135.png 300w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2017\/11\/mac-768x346.png 768w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2017\/11\/mac-1024x461.png 1024w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2017\/11\/mac-304x137.png 304w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2017\/11\/mac-282x127.png 282w, https:\/\/wp.t-office.blue\/wp-content\/uploads\/2017\/11\/mac.png 1066w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>[code lang=text]<br \/>\nOS: macOS High Sierra<br \/>\n[\/code]<\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"fluid\"\n     data-ad-layout-key=\"-ei+6a+g-c3+k8\"\n     data-ad-client=\"ca-pub-4003048870046052\"\n     data-ad-slot=\"1589408991\"><\/ins><script>(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/p>\n<p>jekyll\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306aPermissionError\u304c\u3067\u305f\u3002<\/p>\n<p>[code lang=text]<br \/>\n$ gem install jekyll<br \/>\nFetching: public_suffix-3.0.1.gem (100%)<br \/>\nERROR:  While executing gem &#8230; (Gem::FilePermissionError)<br \/>\n    You don&#039;t have write permissions for the \/Library\/Ruby\/Gems\/2.3.0 directory.<br \/>\n[\/code]<\/p>\n<h2>Homebrew\u3092\u78ba\u8a8d<\/h2>\n<p>[code lang=text]<br \/>\n$ brew &#8211;version<br \/>\nHomebrew 1.3.6<br \/>\nHomebrew\/homebrew-core (git revision 6bcd6; last commit 2017-10-25)<\/p>\n<p>[\/code]<\/p>\n<p>\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3060\u3063\u305f\u306e\u3067\u5165\u3063\u3066\u306a\u3044\u4eba\u306f\u3001\u30b0\u30b0\u3063\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<h2>rbenv\u3092\u5165\u308c\u3066ruby\u3092\u7ba1\u7406<\/h2>\n<p>[code lang=text]<br \/>\n$ brew install rbenv ruby-build<br \/>\nUpdating Homebrew&#8230;<\/p>\n<p>\u2026\u5272\u611b<\/p>\n<p>==&gt; .\/install.sh<br \/>\n&#x1f37a;  \/usr\/local\/Cellar\/ruby-build\/20170914: 363 files, 187.2KB, built in 4 seconds<br \/>\n==&gt; Installing rbenv<br \/>\n==&gt; Downloading https:\/\/homebrew.bintray.com\/bottles\/rbenv-1.1.1.high_sierra.bot<br \/>\n######################################################################## 100.0%<br \/>\n==&gt; Pouring rbenv-1.1.1.high_sierra.bottle.tar.gz<br \/>\n&#x1f37a;  \/usr\/local\/Cellar\/rbenv\/1.1.1: 36 files, 62.7KB<br \/>\n[\/code]<\/p>\n<p>\u3061\u3083\u3093\u3068\u5165\u3063\u305f\u304b\u78ba\u8a8d<\/p>\n<p>[code lang=text]<br \/>\n$ rbenv &#8211;version<br \/>\nrbenv 1.1.1<br \/>\n[\/code]<\/p>\n<p>\u5229\u7528\u53ef\u80fd\u306aruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u4e00\u89a7\u3092\u8868\u793a<\/p>\n<p>[code lang=text]<br \/>\n$ rbenv install -l<br \/>\nAvailable versions:<br \/>\n  1.8.5-p52<br \/>\n  \u30fb\u30fb\u30fb<br \/>\n  2.3.5<br \/>\n  2.4.0-dev<br \/>\n  2.4.0-preview1<br \/>\n  2.4.0-preview2<br \/>\n  2.4.0-preview3<br \/>\n  2.4.0-rc1<br \/>\n  2.4.0<br \/>\n  2.4.1<br \/>\n  2.4.2<br \/>\n  2.5.0-dev<br \/>\n  \u30fb\u30fb\u30fb<br \/>\n[\/code]<\/p>\n<p>\u3081\u3063\u3061\u3083\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u5272\u611b\u3002<br \/>\n\u4e00\u756a\u65b0\u3057\u3044\u3001static 2.4.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n<p>[code lang=text]<br \/>\n$ rbenv versions<br \/>\n* system (set by \/Users\/tacky2k\/.rbenv\/version)<br \/>\n  2.4.2<br \/>\n$ ruby -v<br \/>\nruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]<br \/>\n$ rbenv global 2.4.2<br \/>\n$ ruby -v<br \/>\nruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]<br \/>\n$ rbenv versions<br \/>\n  system<br \/>\n* 2.4.2<br \/>\n[\/code]<\/p>\n<p>\u3053\u308c\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u3067ruby2.4.2\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u203b\u3068\u601d\u3063\u3066\u3044\u305f\u304c\u3001\u5b9f\u969b\u306b\u306f\u52d5\u3044\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>[code lang=text]<br \/>\n$ ruby -v<br \/>\nruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]<\/p>\n<p>$ rbenv global 2.4.2<\/p>\n<p>$ ruby -v<br \/>\nruby 2.3.3p222 (2016-11-21 revision 56859)<br \/>\n [universal.x86_64-darwin17]<\/p>\n<p>$ rbenv rehash<\/p>\n<p>$ ruby -v<br \/>\n ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]<br \/>\n[\/code]<\/p>\n<p>\u304b\u308f\u3089\u3093\u304c\u306a\u3001\u3001\u3001\u3001<\/p>\n<p>[code lang=text]<br \/>\n$ rbenv init<br \/>\n# Load rbenv automatically by appending<br \/>\n# the following to ~\/.bash_profile:<\/p>\n<p>eval &quot;$(rbenv init -)&quot;<\/p>\n<p>$ vi .bash_profile<br \/>\n#.bash_profile\u306e\u6700\u5f8c\u306beval &quot;$(rbenv init -)&quot;\u3092\u8ffd\u52a0<\/p>\n<p>$ echo $PATH<br \/>\n\/Users\/*****\/anaconda\/bin:\/Library\/Frameworks\/Python.framework\/Versions\/3.6\/bin:\/usr\/local\/bin:\/usr\/bin:\/bin:\/usr\/sbin:\/sbin<\/p>\n<p>$ source ~\/.bash_profile<\/p>\n<p>$ echo $PATH<br \/>\n\/Users\/*****\/.rbenv\/shims:\/Users\/*****\/anaconda\/bin:\/Library\/Frameworks\/Python.framework\/Versions\/3.6\/bin:\/Users\/*****\/anaconda\/bin:\/Library\/Frameworks\/Python.framework\/Versions\/3.6\/bin:\/usr\/local\/bin:\/usr\/bin:\/bin:\/usr\/sbin:\/sbin<\/p>\n<p>$ ruby -v<br \/>\nruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin17]<\/p>\n<p>[\/code]<\/p>\n<p>\u3084\u3063\u3068\u5207\u308a\u66ff\u308f\u3063\u305f\u3002.bash_profile\u306beval\u3092\u8ffd\u52a0\u3059\u308b\u306e\u304c\u5fc5\u8981\u3067\u3057\u305f\u3002<\/p>\n<p><script type=\"text\/javascript\">amzn_assoc_ad_type =\"responsive_search_widget\"; amzn_assoc_tracking_id =\"ensuicom-22\"; amzn_assoc_marketplace =\"amazon\"; amzn_assoc_region =\"JP\"; amzn_assoc_placement =\"\"; amzn_assoc_search_type = \"search_widget\";amzn_assoc_width =\"auto\"; amzn_assoc_height =\"auto\"; amzn_assoc_default_search_category =\"\"; amzn_assoc_default_search_key =\"ruby\";amzn_assoc_theme =\"light\"; amzn_assoc_bg_color =\"FFFFFF\"; <\/script><script src=\"\/\/z-fe.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;Operation=GetScript&#038;ID=OneJS&#038;WS=1&#038;Marketplace=JP\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>mac\u3067gem install \u3092\u3057\u3088\u3046\u3068\u3059\u308b\u3068permission error\u304c\u51fa\u308b\u306e\u3067\u306a\u3093\u3068\u304b\u3059\u308b\u8a71 \u3000\u306f\u3058\u3081\u306f\u624b\u6301\u3061\u306eMac\u306bjekyll\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3093\u3060\u3051\u3069\u3001PermissionError\u304c\u51fa\u305f\u306e\u3067 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[39,35,38,37,11,36],"class_list":["post-324","post","type-post","status-publish","format-standard","hentry","category-5","tag-brew","tag-gem","tag-homebrew","tag-jekyll","tag-mac","tag-ruby"],"_links":{"self":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=324"}],"version-history":[{"count":6,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions"}],"predecessor-version":[{"id":330,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions\/330"}],"wp:attachment":[{"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.t-office.blue\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}