-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing system Ruby should check permissions before compiling #326
Comments
Going to close since I couldn't come up with a solution that covers all edge cases (ex: |
Ended up adding a basic permissions check that recursively tests the installation directory's parent directories for writability (see eeb4575). This will catch when you run |
I used
ruby-install --system --latest ruby
, and after some minutes of compilation, it failed:Without digging too deep, I assume this happened because I didn't use
sudo
. Running the command again withsudo
succeeded, but it meant downloading the tarball again and waiting for the recompilation. Maybe there was a way to resume the previous attempt, but finding that out from docs would've taken longer :)So I would suggest checking in the beginning if sudo will be needed and hasn't been used, before spending time doing lots of work. Or alternatively, let the user enter their password into sudo when that's needed.
The text was updated successfully, but these errors were encountered: