TeX Live and MacTeXTexdoc not found

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
hamaryns
Posts: 2
Joined: Thu Apr 11, 2019 2:14 am

Texdoc not found

Post by hamaryns »

HI all,

I installed a small version of TL. Then later I did tlmgr install texdoc. Texdoc was installed, but still isn’t found in the PATH. What am I missing? (Same happens with texdoctk.)

Linux Mint 19, 64 bit

Cheers, H.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Texdoc not found

Post by rais »

Hi,
tlmgr installs binaries under $TEXMFROOT/bin/<architecture>, AFAIUI.
For $TEXMFROOT you can ask kpsewhich (assuming it's installed):

Code: Select all

kpsewhich -var-value TEXMFROOT
<architecture> should be `x86_64-linux' on your system.
If tlmgr's sys_bin option is set, it will also attempt to create a symbolic link in the directory specified (which is usually part of a user's $PATH variable, like /usr/local/bin).
Then again, if this sys_bin option is not set, the binaries directory should be part of the $PATH variable..unless you have to prepend the path to pdflatex & friends to begin with.
What does

Code: Select all

which pdflatex
tell you?

BTW: if you're unable to open the documentation to package x, maybe you don't have its documentation installed...
What is the output of

Code: Select all

tlmgr option docfiles
on your system?

KR
Rainer
hamaryns
Posts: 2
Joined: Thu Apr 11, 2019 2:14 am

Texdoc not found

Post by hamaryns »

Hi,

Thanks for the explanation. Indeed, there is texdoc(tk) in /usr/local/texlive/2018/bin/x86_64-linux/, but not in /usr/local/bin (pdflatex etc. are there indeed and work).

tlmgr option show tells me docfiles are installed (1), and sys_bin is set to /usr/local/bin. So somehow it knows where to put the symlinks, but it doesn’t.

Ok, reading a bit further in man tlmgr, the only thing I had to do was:

Code: Select all

$ sudo tlmgr path add
I was in the (naive?) supposition that installing a binary would trigger that automatically. Why not? Can I set that?

Thanks.
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Texdoc not found

Post by rais »

I dunno...perhaps one of TL's mailing lists would be more suited to answer that particular question.
OTOH, if you already know your problem's caused by a missing symbolic link, you could either create such a link yourself or include `kpsewhich -var-value TEXMFROOT`/bin/`tlmgr --print-arch` to your $PATH environment variable, omitting the need for such a symbolic link altogether.

KR
Rainer
Post Reply