-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Shell script install fails: /usr/local/bin is not writable #188
Comments
Homebrew also uses If your sudo chown -R $(whoami) /usr/local/bin If you don't want to do that, you can just safely ignore the error message when the installation script tries to create symlinks to If you really don't like the harmless error message, use the two additional options in FAQ 5: https://yihui.org/tinytex/faq/ |
On a default macOS machine, everything under The script as it is, somehow assumes that the user is already a Homebrew user (I have not seen another case where people would change the owner of Changing the owner of A particular use case scenario is: you are using a macOS computer that is not yours (a University one, let's say) and you would like do some TeXing. For this, the installation must be sudoless (to not rely on IT) and small (to be installed quickly): TinyTex! 🙂 |
The root issue is the environment variable |
Absolutely, I understand why this choice has been made. What I want to point out is a couple tiny incoherences. The doc says:
Strictly speaking, a ‘standard user’ on macOS needs to change ownership of Also, the doc says:
So I guess it could mean that people should know how to change their Anyway, I suggest making a few changes. Either change the shell script (to test the different cases) or change the documentation and tell the user just before
that they need to own
to the doc. In the second case, the script would still fail, so it could be good to modify it slightly. |
@dlejay Your suggestions make perfect sense! I'll update the docs. Thank you so much!! |
I personally don't want to use Besides, on arm64 based macos, homebrew uses After reading the installation script, I find that macos and linux are almost similar in most of cases, I just use the same way for installing tinytex in linux in FAQ5 I think it would be better that in the documentation of macos installation guide, we could also add a part like this:
|
/usr/local/bin
is owned byroot
by default, so the user cannot symlink anything to it.It seems that this issue has been addressed in R (I don't use R) but is still present with the shell scripts.
Would it be possible to change the install script so as to let the user choose between an
install to
/urs/local/bin
and a local install without runningsudo
?By filing an issue to this repo, I promise that
xfun::session_info('tinytex')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/tinytex')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: