问题
I'm trying to install unsuccessfully ruby from rvm
rvm install ruby
And I have this result
Failed to create the file bin-ruby-2.6.3.tar.bz2.part: Permission denied
Did you have an idea about this problem ?
回答1:
I've successfully resolved the problem by running:
sudo chown -R goms:rvm /usr/share/rvm/*
Where goms
is the current user.
回答2:
From RVM installation manual:
https://github.com/rvm/ubuntu_rvm
"all sudoers are automatic added to rvm group at install" - please make sure that you are in rvm group. You can verify this using groups
command.
If you're not, you can add your user to required group with this command:
sudo usermod -aG rvm $USER
Then you have to reboot your system.
来源:https://stackoverflow.com/questions/56247697/rvm-failed-to-create-the-file-bin-ruby-2-6-3-tar-bz2-part-permission-denied