<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>obelisk2</author_name>
  <author_url>https://blog.hatena.ne.jp/obelisk2/</author_url>
  <blog_title>Camera Obscura</blog_title>
  <blog_url>https://obelisk.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Linux</anon>
  </categories>
  <description>rubyインストールしてあるのにsudoすると「/usr/bin/env: ruby: そのようなファイルやディレクトリはありません」と言われる - プログラマ 福重 伸太朗 〜基本へ帰ろう〜 上記事が参考になる。./.rbenv/.bashrc に以下を追加して、$ source ~/.rbenv/.bashrc。 export PATH=/usr/local/bin:$PATH alias sudo=&quot;sudo env PATH=$PATH&quot;これで sudo を付けて Ruby を実行できる筈。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobelisk.hatenablog.com%2Fentry%2F2015%2F10%2F13%2F002432&quot; title=&quot;Ruby は管理者権限で実行できない - Camera Obscura&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>2015-10-13 00:24:32</published>
  <title>Ruby は管理者権限で実行できない</title>
  <type>rich</type>
  <url>https://obelisk.hatenablog.com/entry/2015/10/13/002432</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
