-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
/usr/local/bin not writable #24
Comments
That is odd. # create the dir if it doesn't exist
[ -e /usr/local/bin ] || sudo mkdir -p /usr/local/bin
# change owner of the dir
sudo chown -R `whoami`:admin /usr/local/bin Then this in your terminal (do not use ~/Library/TinyTeX/bin/*/tlmgr path add |
That worked. Thanks! |
+1 just hit this issue on a completely fresh Mac running High Sierra. The informative error message was a life saver. Thanks for the user focused development! |
FYI Of 50+ students using macOS 6 have (sofar) reported this error. I'm providing the hack below to check if
|
I can make TinyTeX work without requiring |
"accessible to other programs in the system" is certainly important. Thanks for the great tool @yihui |
Just tried to install using |
@zoelzilz First, please make sure you have installed the latest version of tinytex (>= 0.9). Then when you see a dialog like this, input your password if you trust me: otherwise follow what the error message tells you to do. |
@vnijs Does Can she also try the method I mentioned in my first reply above? |
Same problem here. |
@jenzopr Even after you did what I said above in the first reply? #24 (comment) |
I was encountering the same errors as vnijs on HighSierra OS. What finally seemed to work was using the suggesting in comment #2 and then running |
This is still an issue. The prompt is not showing up on mac OS to prompt for the users password. Also the documention does not mention the force=TRUE option. Could you add that to: https://yihui.name/tinytex/? |
…t know why sometimes the the /usr/bin/osascript hack doesn't work (#24)
Please try the current development version of tinytex. It no longer requires |
Thanks @yihui. I used |
@vnijs There was no change in the installation dir (it has always been The downside is as I said previously at #24 (comment): if those symlinks are not under |
Got it. Thanks @yihui. It seems like everything is working fine. If my students do hit any snags I'll let you know. |
FYI Some of my students still seem to be having problems installing tinytex on macOS because /usr/local/bin is not writable (see message below). I'll be able to investigate in more detail when I see the students in a few weeks.
|
I just created a new user account on my mac and was able to reproduce the problem (see below for latest version on CRAN 0.15). Tinytex still asks to run a script to change permissions but install fails at the end. Any suggestions?
|
@vnijs Should be fixed now. Thanks for the report and reproducing the issue! |
Seems to be working now. Thanks @yihui! |
A quick update. I'm currently setting up my Mac with an M1 processor and ran into the same issue. Running Yihui's instructions (#24 (comment)) helped, but the second command should be (for an M1 Mac):
|
@dragosmg Thank you! I just updated my instruction above to use the wildcard (i.e. |
Hello! I am new in R. I need to download files in pdf but I am having this error. Anyone can help me please? tinytex::install_tinytex(force = TRUE) |
@MariaQuintero I don't see any error. I see a message. If that is what you meant, you can safely ignore the message. |
…0.32 Charles Teague (1): Add AwesomeBox and FontAwesome (#306) Dirk Elmendorf (1): bug: If you set TINYTEX_VERSION the downloaded version is not named (#302) Yihui Xie (42): if cache = FALSE, remove the downloaded installer on exit (#294) cosmetic pin the CTAN mirror at https://ctan.math.illinois.edu/systems/texlive/tlnet (#293) update supported texlive platforms make the `repository` argument also work when install_tinytex() installs the prebuilt binary also respect the env var CTAN_REPO in the Windows installer unless running on CI servers, reset the CTAN mirror in binary installations since we have fixed it in ff565043d11ef042349d42bcbf178ce0b2a63167; should we fix the CTAN mirror no matter what? I don't know; if only there were a mirror that is based on CDN (then I wouldn't need to worry about which mirror to use) Dash doesn't support <<< when the env var CI is empty, don't check its value because the LHS of the != comparison would be empty, which would lead to an error fix #295: use the env var $OSTYPE in bash to make sure we install the prebuilt TinyTeX binary only for linux but not for other linux distributions such as linux-musl missed a space support install_tinytex(version = 'latest') set the default ctan mirror only when installing TinyTeX on non-CI servers store the regular expressions in a list so that I don't have to rely on the indices of items specifically later, e.g. put the first 5 items in r$font so I can test `if (p %in% r$font)` instead of `if (p %in% r[1:5])` fix #299: handle the error "! Package pdfx Error: No color profile sRGB_IEC61966-2-1_black_scaled.icc found" and install colorprofiles close #301: provide a global option `tinytex.source.install` to make it possible to install TinyTeX via the source installer if need_source_install() fails to make the decision (e.g. on old macOS), in which case users can specify options(tinytex.source.install = TRUE) install the dev version of knitr to fix the kableExtra problem https://github.com/yihui/tinytex/runs/2406634462?check_suite_focus=true fix ulyngs/oxforddown#4: also detect missing font definition files like LGRcmr.fd and install the missing packages accordingly fix #303: include psnfss in the default TinyTeX distribution use xfun::format_bytes() make sure tinytex is installed before it is used try to build tinytex-latexmk how come utils is not loaded? copy the tinytex binary to the bin/ directory copy the tinytex binary to the root dir match the binary names first mark the file as executable fix #311: install the glossary language moduel when a warning is detected: also install the language module for datetime2 just like we did for #311 specify more metadata for the tinytex command the executable was also renamed add a helper function for myself to open tlmgr.pl without going to the TinyTeX folder every time rename the `tinytex` binary to `tinitex` to avoid confusion: tinytex is the R package name, and tinitex will be the command name zip is not available on Windows don't include the directory structure in the tarball compress tinitex.exe inside R via powershell, otherwise appveyor will also try to run powershell on *nix, in which case tinitex.exe won't be found not sure why the tarball is empty on Linux shouldn't have specified the compression twice create the tarball under the directory of tinitex and return the absolute path of the tarball still don't know why tar() creates an empty tarball on Linux; try the system command instead suppress the messages from `tlmgr option repository`: rstudio/tinytex#24 (comment) CRAN release v0.32 christophe dervieux (1): update action following changes in r-lib/actions
Hi there I was trying to instal tinytex to R on mac (big sur) and I got this message. How do I check if tinytex already installed? thank you
The downloaded binary packages are in
trying URL 'https://yihui.org/tinytex/TinyTeX-1.tgz'
|
@marcsteph Please either see my very first reply in this thread to fix the problem, or ignore the message if you use TinyTeX from R. |
Hello,@yihui add_link_dir_dir: destination /usr/local/bin not writable, no links from /Users/xingyue.chen/Library/TinyTeX/bin/universal-darwin. And then I used the above codes what is the problem? thank you |
@Xingyue-Chen The problem is that you ran the code in the R console, but should really run it in your terminal. I've added emphasis in my first reply. |
Another note that this worked liked a charm! Thanks Yihui! |
I get error message after both: ~/Library/TinyTeX/bin/*/tlmgr path add |
@tortoisenme I don't know how it could be possible that sudo mkdir -p /usr/local/bin |
I ran the code into my terminal but when it asks for a password it wont let me write anything |
@KingxSlayer Just type the password. Nothing will show up as you type, but that's normal. |
I am seeing similar issue. When I try
When I try the solution @yihui I get: Do you see what I am doing wrong here? Thank you! |
@d-linnard Please use the exact command above: #24 (comment) That is, you should not replace |
Beautiful! Thank you, @yihui! I appreciate your time! |
Tried all instructions given above in order to be able to knit to pdf on rstudio but still giving directory error. Got message :
|
it ask for a password. what should i do? |
Input your password, and hit |
I do believe the procedures here work fine if there is only one account on a Mac, but they don't work if there is a second account and both users want to use TinyTex. The first user will install TinyTex in their home directory, making the symlinks in The solution is for the second user to install TinyTex, allow the symlink step to fail, then adjust their path to include the |
@pbchase You are absolutely correct. Thanks for sharing the solution! |
I get this error either using either
tinytex::install_tinytex()
or the os x install scriptmacOS 10.13.3
add_link_dir_dir: destination /usr/local/bin not writable, no links from /Users/hagen/Library/TinyTeX/bin/x86_64-darwin. add of symlinks had 1 error(s), see messages above. add of symlinks had 1 error(s), see messages above. tlmgr: An error has occurred. See above messages. Exiting.
The text was updated successfully, but these errors were encountered: