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

bvuwiixz  于 2023-04-11  发布在  Linux
关注(0)|答案(3)|浏览(110)

你好,我使用谷歌云示例来运行我的代码,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”

um6iljoc

um6iljoc1#

通过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
很好,谢谢。

l7wslrjt

l7wslrjt2#

sudo chmod -R 777 /opt/wpscan/.bundle
3xiyfsfu

3xiyfsfu3#

将环境变量BUNDLE_PATH设置为用户有权写入的文件夹,例如

export BUNDLE_PATH=$HOME/.bundle/

参见GitHub issue。

相关问题