title: Permission Denied while trying to install ruby gems on ubuntu 16.04
body: <p>I am trying to install ruby gems on my computer running Ubuntu 16.04. I use bash with the oh-my-zsh framework. </p>
  
  <p>When I run the command:</p>
  
  <pre><code>curl -L https://get.rvm.io | bash -s stable --ruby
  </code></pre>
  
  <p>I get the error message:</p>
  
  <pre><code>mktemp: failed to create file via template '/usr/share/rvm/rvm-exec-test.XXXXXX': Permission denied
  </code></pre>
  
  <p>How do I set up the permissions for this to work properly?</p>