<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Pocke</author_name>
  <author_url>https://blog.hatena.ne.jp/Pocke/</author_url>
  <blog_title>pockestrap</blog_title>
  <blog_url>https://pocke.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>~/.gemrc に gem: --no-ri --no-rdoc --user-install を追記したところ、gemのインストールにroot権限が必要になってしまった。 /etc/gemrc を見てみると、gem: --user-install の記述がある。これがあるなら ~/.gem/ 下にgemがインストールされるはずだ。 つまり、 ~/.gemrc を設定すると /etc/gemrc の設定は読まれなくなるのではないか。 そう思い、~/.gemrc に --user-install を追記したら無事ユーザー権限でgemをインストールすることが出来た。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpocke.hatenablog.com%2Fentry%2F2014%2F03%2F08%2F194451&quot; title=&quot;急にgemにroot権限を求められた - pockestrap&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-03-08 19:44:51</published>
  <title>急にgemにroot権限を求められた</title>
  <type>rich</type>
  <url>https://pocke.hatenablog.com/entry/2014/03/08/194451</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
