Skip to content
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

texlive-bin not finding tlmgr installed packages #39522

Closed
danjenson opened this issue Sep 29, 2022 · 13 comments
Closed

texlive-bin not finding tlmgr installed packages #39522

danjenson opened this issue Sep 29, 2022 · 13 comments
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed

Comments

@danjenson
Copy link

Is this a new report?

Yes

System Info

Void 5.18.19_1 x86_64 GenuineIntel notuptodate rFFFF

Package(s) Affected

texlive-bin-2022_2

Does a report exist for this bug with the project's home (upstream) and/or another distro?

Not that I'm aware of.

Expected behaviour

Installing a package with /opt/texlive/2022/bin/x86_64-linux/tlmgr will allow pdflatex, latexmk, etc to use that package in compilation.

Actual behaviour

It fails to find all tlmgr installed packages.

Steps to reproduce

  1. sudo /opt/texlive/2022/bin/x86_64-linux/tlmgr install physics, then check by running again to get:
tlmgr: package repository https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet (verified)
tlmgr install: package already present: physics

Another check:
fd physics /opt/texlive:

/opt/texlive/2022/texmf-dist/doc/latex/physics/
/opt/texlive/2022/texmf-dist/doc/latex/physics/physics.pdf
/opt/texlive/2022/texmf-dist/doc/latex/physics/physics.tex
/opt/texlive/2022/texmf-dist/tex/latex/physics/
/opt/texlive/2022/texmf-dist/tex/latex/physics/physics.sty
/opt/texlive/2022/tlpkg/tlpobj/physics.tlpobj
  1. Create file below.
\documentclass[12pt]{article}
\usepackage{physics}
\begin{document}
Test
\end{document}
  1. pdflatex t.tex
Rc files read:
  /home/danj/.latexmkrc
Latexmk: This is Latexmk, John Collins, 17 Mar. 2022. Version 4.77, version: 4.77.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
  /data/repos/stats-270/t.tex
Rule 'pdflatex': The following rules & subrules became out-of-date:
  pdflatex
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex -synctex=1 -interaction=nonstopmode -shell-escape  -recorder -output-directory="build"  "/data/repos/stats-270/t.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/VoidLinux) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(/data/repos/stats-270/t.tex
LaTeX2e <2020-10-01> patch level 4
L3 programming layer <2021-02-18>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size12.clo))

**! LaTeX Error: File `physics.sty' not found.**

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.
<read *>

l.3 \begin
          {document}^^M
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on build/t.log.
Latexmk: Getting log file 'build/t.log'
Latexmk: Examining 'build/t.fls'
Latexmk: Examining 'build/t.log'
Latexmk: Missing input file 'physics.sty' (or dependence on it) from following:
  '! LaTeX Error: File `physics.sty' not found.'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to 'build/t.log' for details
Latexmk: If appropriate, the -f option can be used to get latexmk
  to try to force complete processing.

kpsewhich -var-value=TEXMFDIST also returns /opt/texlive/2022/texmf-dist, so it's unclear why tex cannot find physics.sty.

@danjenson danjenson added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Sep 29, 2022
@danjenson danjenson changed the title TeX not finding tlmgr installed packages texlive-bin not finding tlmgr installed packages Sep 29, 2022
@classabbyamp
Copy link
Member

what's the output of which pdflatex?

@danjenson
Copy link
Author

It's number 3 in the reproduction above^

@classabbyamp
Copy link
Member

no, I want to know where the pdflatex binary is. what's the output of command -v pdflatex or which pdflatex?

@danjenson
Copy link
Author

/usr/bin/pdflatex

@danjenson
Copy link
Author

image

@classabbyamp
Copy link
Member

what's the output of xbps-query -Rs texlive?

@danjenson
Copy link
Author

[*] texlive-20210325_4                TeX Live
[-] texlive-BibTeX-20210325_4         TeX Live - reference management software
[-] texlive-ConTeXt-20210325_4        TeX Live - alternative general-purpose document processor
[*] texlive-LuaTeX-20210325_4         TeX Live - extended pdfTeX using Lua
[-] texlive-LuaTeX-devel-20210325_4   TeX Live - extended pdfTeX using Lua - development files
[-] texlive-PythonTeX-20210325_4      TeX Live - executing Python in LaTeX
[-] texlive-Xdvi-20210325_4           TeX Live - displaying DVI files on the X window system
[-] texlive-XeTeX-20210325_4          TeX Live - engine supporting modern typography
[-] texlive-basic-2021.0_1            TeX Live - Metapackage including some simple packages
[-] texlive-bibtexextra-2021.58697_1  TeX Live - Additional BibTeX styles and bibliography databases
[*] texlive-bin-2022_2                TeX Live Binary distribution through tl-install (newest version)
[*] texlive-core-2021.58710_1         TeX Live - core texmf distribution
[-] texlive-devel-20210325_4          TeX Live - development files
[*] texlive-dvi-20210325_4            TeX Live - tools for dvi based workflow
[-] texlive-fontsextra-2021.58704_1   TeX Live - All sorts of extra fonts
[-] texlive-formatsextra-2021.57972_1 TeX Live - Collection of extra TeX 'formats'
[-] texlive-full-2021.0_1             TeX Live - Metapackage including all packages
[-] texlive-games-2021.56833_1        TeX Live - Typesetting board games
[-] texlive-humanities-2021.58589_1   TeX Live - Packages for humanities, law, linguistics, etc
[-] texlive-lang-2021.0_1             TeX Live - Metapackage including all languages
[-] texlive-langchinese-2021.58583_1  TeX Live - Fonts and macro packages for typesetting Chinese
[-] texlive-langcyrillic-2021.58426_1 TeX Live - Fonts and macro packages for typesetting Cyrillic text
[-] texlive-langextra-2021.58019_1    TeX Live - Packages for a bunch of extra languages
[-] texlive-langgreek-2021.57684_1    TeX Live - Fonts and macro packages for typesetting Greek
[-] texlive-langjapanese-2021.58632_1 TeX Live - Fonts and macro packages for typesetting Japanese
[-] texlive-langkorean-2021.58468_1   TeX Live - Fonts and macro packages for typesetting Korean
[-] texlive-latexextra-2021.58668_1   TeX Live - Collection of LaTeX addon packages
[*] texlive-latexmk-20210325_4        TeX Live - script for compiling the correct number of times
[-] texlive-minimal-2021.0_2          TeX Live - Metapackage including minimal packages
[-] texlive-most-2021.0_1             TeX Live - Metapackage including most packages
[-] texlive-music-2021.58331_1        TeX Live - Music typesetting packages
[-] texlive-pictures-2021.58558_1     TeX Live - Packages for drawing graphics
[-] texlive-pstricks-2021.58293_1     TeX Live - Additional PSTricks packages
[-] texlive-publishers-2021.58683_1   TeX Live - Classes and packages for certain publishers
[-] texlive-science-2022.62977_1      TeX Live - Typesetting for mathematics and science disciplines
[-] texlive2014-bin-2014_10           TeX Live Binary distribution through tl-install
[-] texlive2016-bin-2016_4            TeX Live Binary distribution through tl-install
[-] texlive2017-bin-2017_5            TeX Live Binary distribution through tl-install
[-] texlive2018-bin-2018_4            TeX Live Binary distribution through tl-install
[-] texlive2019-bin-2019_4            TeX Live Binary distribution through tl-install
[-] texlive2020-bin-2020_5            TeX Live Binary distribution through tl-install
[-] texlive2021-bin-2021_3            TeX Live Binary distribution through tl-install
[*] texlive2022-bin-2022_2            TeX Live Binary distribution through tl-install

@danjenson
Copy link
Author

Whats interesting is if I do: xbps-query -m | rg tex I get

texlive-LuaTeX-20210325_4
texlive-bin-2022_2
texlive-dvi-20210325_4

@classabbyamp
Copy link
Member

ok, the issue is caused by having both texlive-bin and texlive installed. uninstall all the texlive xbps packages except texlive-bin (and texliveYYYY-bin) and install the desired tex compilers via tlmgr (e.g. tlmgr install pdflatex etc)

@danjenson
Copy link
Author

ok, How do I then install texlive-dvi and texlive-LuaTex? Are they tlmgr packages too? it looks like texlive must have been a dependent of one of those.

@classabbyamp
Copy link
Member

classabbyamp commented Sep 29, 2022

yes, everything in the texlive packages is available via ctan/tlmgr

@classabbyamp
Copy link
Member

actually, you should be able to have both installed side-by-side, but the critical bit is they aren't able to interact with each other, so you would have to install pdflatex/luatex/etc from ctan to use it with tlmgr-installed packages

@danjenson
Copy link
Author

great thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-testing Testing a PR or reproducing an issue needed
Projects
None yet
Development

No branches or pull requests

2 participants