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

ⅰ亾dé卋堺 提交于 2019-12-22 12:25:08

问题


Hello I use a google cloud instance to run my codes, 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. Even if I am running it using sudo, what else I need to grant? System info: Ubuntu 14.04 Trusty 2GB Ram Runs on Google Cloud. I was trying to install "wpscan"


回答1:


Fixed it by 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 And sudo chmod -R 777 /opt/wpscan/.bundle Works fine, thanks.




回答2:


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


来源:https://stackoverflow.com/questions/42942545/there-was-an-error-while-trying-to-write-to-opt-wpscan-bundle-config-it-is

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!