Last night, I migrated my MacBook's operating system from 10.10 "Yosemite" to 10.11 "El Capitan". Everything seemed to go smoothly. Happily, regarding my TeX-related work, I am able to use the GUI front ends "TeXworks" and "TeXshop" just fine since completing the OS upgrade. I use MacTeX2015, with all the latest updates installed.
Oddly, though, since completing the upgrade I can no longer run any MacTeX command-line utilities such as texdoc and kpsewhich. (Actually, as I just discovered, I can no longer run pdflatex either from a command line. However, I never do run pdflatex from a command line prompt, so that's not an urgent problem for me -- at least not for now.)
The suggestions given in the posting Mavericks upgrade screwed up my pdflatex (command not found) do not seem to be applicable to this case, as they all seem to revolve around setting up /usr/texbin correctly -- /usr/texbin is no longer allowed under MacOSX 10.11. The document MacTEX-2015 and El Capitan by Herb Schulz deals in depth with adjusting settings in the GUI front ends, but it appears not to touch on what to do about /usr/texbin, which appears to be the now-missing link to TeX's command line utilities.
Pointers and solutions most welcome!
/Library/TeX/texbinto the list available in/etc/paths.d? That's where the 'magic' happens. (I've got for using the normal *nix approach of just adding the real binary location to my path for other reasons.) – Joseph Wright Oct 01 '15 at 06:01/etc/paths.d(all three world-readable but only root-writeable):40-XQuartz,TeX, andgit. The content of the file namedTeXis a single line,/Libary/TeX/bin. Do I need to modify the file calledTeX? – Mico Oct 01 '15 at 06:52/Library/TeX/bininto your path, and its there that the real links should be. What doesecho $PATHgive, and if it's in the path what aboutls -l /Library/TeX/binandcommand -v pdftex? – Joseph Wright Oct 01 '15 at 07:21/Library/TeX/bincontains all the correct symbolic links. The source of the problem, then, appears to be that (a) the file.profile(or, equivalently, I suppose,.bashrc) didn't include the string/Library/TeX/texbinin the definition of$PATHand (b) for some reason, the information in/etc/paths.dwasn't being "taken" by MacOSX 10.11. For now, I think I've solved the problem by adding/Library/TeX/texbinto the definition of$PATH. – Mico Oct 01 '15 at 08:11/etc/paths.ddata which has been set correctly at the 'TeX end'. – Joseph Wright Oct 01 '15 at 08:38/etc/profile. – Alan Munn Feb 01 '16 at 16:36~/.profile, which contains only the following line:export PATH=/Library/TeX/texbin:/opt/local/bin:/opt/local/sbin:$PATH. I left/etc/profileunmodified; that file continues to point to (in two steps) toPATH="$PATH:/usr/texbin:/usr/local/bin. Indeed,/usr/texbinno longer exists under El Capitan. Note that with~/.profilein place,/Library/TeX/texbinis searched first. – Mico Feb 01 '16 at 18:32/etc/profileand replaced it witheval $(/usr/libexec/path_helper -s)within thewhoami != "root"conditional. – Alan Munn Feb 01 '16 at 19:36