问题
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