If I start up TeXstudio by launching it normally as an app in OS X Yosemite, whenever I build and view a document, it complains kpsewhich: command not found.
However, which kpsewhich in a terminal shows it exists at /Library/TeX/texbin/kpsewhich. And echo $PATH includes /Library/TeX/texbin. So if I start up TeXstudio from the terminal the problem disappears.
I wonder if there is PATH configuration problem somewhere for TeXstudio such that it does not load /Library/TeX/texbin properly. If so, how do I fix it?
Note: my problem initially led me to this question, but I have installed the latest MacTex and updated all my packages using TexLive, so it should be safe to say the cause of my problem is different.
/usr/texbin. (This was a symbolic link to the directory in/Librarybut/Librarywould not typically have been inPATH.) However, I know Apple is locking out users from/usrso maybe this has changed to workaround that problem. – cfr Sep 12 '15 at 02:31PATH, and getting them to do that was a complete headache. However, I thought they had done away with at least some of the craziness of the system. – cfr Sep 12 '15 at 02:33/usr/texbinand/Library/TeX/texbinas future-proofing against the next release of OS X, which will wipe out/usr/texbinfor good. Yosemite did have an environment bug that would cause problems like this, but it should be fixed as of 10.10.4 or so. How do your paths compare to this? http://tex.stackexchange.com/questions/38627/commands-paths-in-texstudio-on-mac-os-x-with-could-not-start-the-command-err – Adam Maxwell Sep 12 '15 at 03:18/usr/texbinstuff are all symbolic links, but the question is which setting(s) in TeXstudio I should adjust to fix the problem. – MLister Sep 12 '15 at 03:42and I have little idea in terms of whether and how TeXstudio picks it up. Forpdflatex, the command config is:/usr/texbin/pdflatex -synctex=1 -shell-escape -interaction=nonstopmode %.tex` – MLister Sep 12 '15 at 06:39which pdflatexsay? – daleif Sep 12 '15 at 06:51.bash_profile? I don't think they do. – egreg Sep 12 '15 at 07:06ls -l /usr/texbin/pdflatexgive? – cfr Sep 12 '15 at 11:09Options -> Commands. – Tim Hoffmann Sep 12 '15 at 11:16which pdflatexgives/Library/TeX/texbin/pdflatex– MLister Sep 14 '15 at 20:26ls -l /usr/texbin/pdflatexgives/usr/texbin/pdflatex -> pdftex– MLister Sep 14 '15 at 20:28Commands ($PATH)field underAdditional Search Pathssection? At the moment it shows/usr/local/texlive/2012/bin/x86_64-darwin– MLister Sep 14 '15 at 20:31Additional Search Pathsto/usr/texbin.ls -l /usr/texbin/pdftexshould point to something under/Library. The stuff under/Libraryshould include symbolic links to/usr/local/texlive. – cfr Sep 14 '15 at 21:07/usr/local/texlive/2012/bin/x86_64-darwin, but it didn't even exist, instead, there is/usr/local/texlive/2015/bin/x86_64-darwin, which made me think that TeXstudio hardcodes some of these paths and ignore it if not available and try to look elsewhere automatically. – MLister Sep 14 '15 at 21:30