! Can't locate mktexlsr.pl in @INC

How to handle mktexlsr.pl issue? Thanks. I installed texlive-core with the following command:

conda install -c conda-forge texlive-core

output file: bookdown.knit.md

/home/sguo2/miniconda3/bin/pandoc +RTS -K512m -RTS bookdown.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output bookdown.tex --lua-filter /home/sguo2/miniconda3/lib/R/library/bookdown/rmarkdown/lua/custom-environment.lua --lua-filter /home/sguo2/miniconda3/lib/R/library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /home/sguo2/miniconda3/lib/R/library/rmarkdown/rmarkdown/lua/latex-div.lua --metadata-file /tmp/Rtmp5shZ4w/filec5cf3e6a457b --self-contained --table-of-contents --toc-depth 2 --number-sections --highlight-style tango --pdf-engine pdflatex --variable graphics --wrap preserve --variable tables=yes --standalone -Mhas-frontmatter=false
! kpathsea: Running mktexfmt pdflatex.fmt

! Can't locate mktexlsr.pl in @INC (@INC contains: /home/sguo2/miniconda3/share/tlpkg /home/sguo2/miniconda3/share/texmf-dist/scripts/texlive /home/sguo2/perl5/lib/perl5/x86_64-linux-thread-multi /home/sguo2/perl5/lib/perl5 /home/sguo2/miniconda3/lib/site_perl/5.26.2/x86_64-linux-thread-multi /home/sguo2/miniconda3/lib/site_perl/5.26.2 /home/sguo2/miniconda3/lib/5.26.2/x86_64-linux-thread-multi /home/sguo2/miniconda3/lib/5.26.2 .) at /home/sguo2/miniconda3/bin/mktexfmt line 23.

! BEGIN failed--compilation aborted at /home/sguo2/miniconda3/bin/mktexfmt line 25.

Error: LaTeX failed to compile bookdown.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See bookdown.log for more info.

I don't know about texlive with conda. Maybe something is missing.

Have you tried to use TinyTeX ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.