Ruby 当我的计算机尝试运行bundle安装时,为什么在@rb_sysopen获得错误权限被拒绝

Ruby 当我的计算机尝试运行bundle安装时,为什么在@rb_sysopen获得错误权限被拒绝,ruby,terminal,permissions,bundle,Ruby,Terminal,Permissions,Bundle,我正在尝试安装Metasploit,其中一个步骤是运行bundle install命令。我在MacOSX的终端上做这个。但每当我尝试这样做时,就会发生这样的情况: 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-pa

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

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.
当我运行./msfconsole时,它会显示:

您的捆绑包已锁定为activesupport(4.2.7.1),但该版本 在您的文件中列出的任何源中都找不到。如果 您没有更改来源,这意味着activesupport的作者 (4.2.7.1)已将其移除。您需要将捆绑包更新为 尚未删除的不同版本的activesupport(4.2.7.1) 为了安装

如何修复此问题?

如建议,运行

gem install metasploit-payloads -v '1.2.6'

那没用!似乎您已经在
Gemfile
中更改了rails或active support gem版本,您可以运行
bundle update
或将其更改回原来的版本