当我的计算机尝试 运行 捆绑安装时,为什么我会收到错误权限被拒绝 @ rb_sysopen

Why am I getting error Permission denied @ rb_sysopen when my computer trys to run bundle install

我正在尝试安装 Metasploit,其中一个步骤是 运行 bundle install 命令。我正在 mac osx 上的终端上执行此操作。但是每当我尝试这样做时,就会发生这种情况:

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.

当我 运行 a ./msfconsole 它说:

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.

我该如何解决这个问题???

点赞,运行

gem install metasploit-payloads -v '1.2.6'