{"id":392,"date":"2019-02-05T10:33:43","date_gmt":"2019-02-05T01:33:43","guid":{"rendered":"http:\/\/trinitas.tech\/?p=392"},"modified":"2019-02-05T10:33:43","modified_gmt":"2019-02-05T01:33:43","slug":"macos%e3%81%a7gem%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e9%9a%9b%e3%81%ae%e3%83%88%e3%83%a9%e3%83%96%e3%83%ab%e5%af%be%e7%ad%96","status":"publish","type":"post","link":"https:\/\/trinitas.tech\/en\/2019\/02\/05\/macos%e3%81%a7gem%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e9%9a%9b%e3%81%ae%e3%83%88%e3%83%a9%e3%83%96%e3%83%ab%e5%af%be%e7%ad%96\/","title":{"rendered":"You don&#8217;t have write permissions for the \/usr\/bin directory. when I installing some package with gem"},"content":{"rendered":"<h1>When you get &#8220;You don&#8217;t have write permissions for the \/usr\/bin directory&#8221;<\/h1>\n<p>in your installation with gem, you can solve the issue with the option -n \/usr\/local\/bin.<\/p>\n<p>Many internet sources said so. Of cource it works.<\/p>\n<p>I thought this is a good chance to look a little more about gem install options.<\/p>\n<p>We can get the information by &#8216;gem help install&#8217; in the terminal.<\/p>\n<h2>Several useful options<\/h2>\n<p>I found several useful options in the help document as follows.<\/p>\n<p>install command options<\/p>\n<pre><code>-v, --version VERSION: Specify version of gem to install\n\n    --[no-]prerelease: Allow prerelease versions of a gem to be installed. (Only for listed gems)\n\n-i, --install-dir: DIR Gem repository directory to get installed gems\n\n-n, --bindir DIR: Directory where executables are located\n<\/code><\/pre>\n<p>common options<\/p>\n<pre><code>-h, --help: Get help on this command (same as gem help command)\n-V, --[no-]verbose: Set the verbose level of output\n-q, --quiet: Silence command progress meter\n    --silent: Silence RubyGems output\n    --config-file FILE: Use this config file instead of default (maybe useful for the batch-like jobs)\n    --backtrace: Show stack backtrace on errors\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When you get &#8220;You don&#8217;t have write permissions for the \/usr\/bin directory&#8221; in your installat\u2026 <span class=\"read-more\"><a href=\"https:\/\/trinitas.tech\/en\/2019\/02\/05\/macos%e3%81%a7gem%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e9%9a%9b%e3%81%ae%e3%83%88%e3%83%a9%e3%83%96%e3%83%ab%e5%af%be%e7%ad%96\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_locale":"en_US","_original_post":"389","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[82,64],"tags":[93,29],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p959K1-6k","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/posts\/392"}],"collection":[{"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/comments?post=392"}],"version-history":[{"count":1,"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":393,"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/posts\/392\/revisions\/393"}],"wp:attachment":[{"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trinitas.tech\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}