title: Why am I getting error Permission denied @ rb_sysopen when my computer trys to run bundle install
body: <p>I am trying to install Metasploit and one of the steps is to run the bundle install command. I am doing this on terminal on mac osx. But when ever I try to do this, this happens:</p>
  
  <pre><code>Errno::EACCES: Permission denied @ rb_sysopen -
  /Users/soldenh/.rvm/gems/ruby-2.4.0/cache/metasploit-payloads-1.2.6.gem
  An error occurred while installing metasploit-payloads (1.2.6), and
  Bundler cannot continue.
  Make sure that `gem install metasploit-payloads -v '1.2.6'` succeeds before
  bundling.
  </code></pre>
  
  <p>When I run a ./msfconsole it says:</p>
  
  <blockquote>
    <p>Your bundle is locked to activesupport (4.2.7.1), but that version
    could not be found in any of the sources listed in your Gemfile. If
    you haven't changed sources, that means the author of activesupport
    (4.2.7.1) has removed it. You'll need to update your bundle to a
    different version of activesupport (4.2.7.1) that hasn't been removed
    in order to install.</p>
  </blockquote>
  
  <p>How do I fix this???</p>