Skip to content
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

Open
rennex opened this issue Oct 16, 2018 · 0 comments
Open

Installing system Ruby should check permissions before compiling #326

rennex opened this issue Oct 16, 2018 · 0 comments
Assignees

Comments

@rennex
Copy link

rennex commented Oct 16, 2018

I used ruby-install --system --latest ruby, and after some minutes of compilation, it failed:

Permission denied @ rb_sysopen - /usr/local/share/man/man1/ruby.1 (Errno::EACCES)

Without digging too deep, I assume this happened because I didn't use sudo. Running the command again with sudo 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.

@postmodern postmodern self-assigned this Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants