当前位置:  开发笔记 > 编程语言 > 正文

尝试写入`/ opt/wpscan/.bundle/config`时出错.您可能需要为该路径授予写入权限

如何解决《尝试写入`/opt/wpscan/.bundle/config`时出错.您可能需要为该路径授予写入权限》经验,为你挑选了1个好方法。

您好我使用谷歌云实例运行我的代码 techonepl@instance-1:/opt/wpscan$ sudo gem install bundler && bundle install --without test Fetching: bundler-1.14.6.gem (100%) Successfully installed bundler-1.14.6 Parsing documentation for bundler-1.14.6 Installing ri documentation for bundler-1.14.6 Done installing documentation for bundler after 7 seconds 1 gem installed There was an error while trying to write to/opt/wpscan/.bundle/config . It is likely that you need to grant write permissions for that path. 即使我使用sudo运行它,我还需要授予什么?系统信息:Ubuntu 14.04 Trusty 2GB Ram在Google Cloud上运行.我试图安装"wpscan"



1> Shrey Ratna..:

通过curl -sSL https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc rvm install 2.2.3 rvm use 2.2.3 --default echo "gem: --no-ri --no-rdoc" > ~/.gemrc gem install bundler 和sudo chmod -R 777 /opt/wpscan/.bundle 修复它 工作正常,谢谢.

推荐阅读
ifx0448363
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有