【问题标题】:Why am I getting error Permission denied @ rb_sysopen when my computer trys to run bundle install当我的计算机尝试运行捆绑安装时,为什么我收到错误 Permission denied @ rb_sysopen
【发布时间】:2017-01-17 22:27:19
【问题描述】:

我正在尝试安装 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.

当我运行 ./msfconsole 时,它​​会说:

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

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

【问题讨论】:

    标签: ruby terminal permissions bundle


    【解决方案1】:

    喜欢它的建议,运行

    gem install metasploit-payloads -v '1.2.6'
    

    【讨论】:

    • 那没有任何作用!
    • 好像你已经在Gemfile 中更改了rails 或active support gem 版本,你可以运行bundle update 或将它们改回来
    猜你喜欢
    • 2017-11-29
    • 1970-01-01
    • 2014-07-31
    • 2013-06-07
    • 1970-01-01
    • 1970-01-01
    • 2022-06-13
    • 1970-01-01
    相关资源
    最近更新 更多