Closed RobertHeim closed 3 years ago
Actually, we were able to install it using mpm --install=expl3
before running pdflatex
. However, we then ended up understanding that the on-the-fly installation does not work, because we would see that error for all packages.
We then tried to install all packages upfront using mpm --install=packagelist
. But it turns out that most packages can not be found. Checking the repositories mpm --list-repositories
reports a valid and fine list.
So consequently, the issue seemed to be an outdated local db - we can fix that using mpm --update-db
. Now the install would work - nice, but unfortunately the mpm --install=packaglist
would fail because some packages of our huge list have already been installed. So we then could maybe use mpm --require=packaglist
instead - but wait - if the core issue was an outdated package list (cf. #7) and we just fixed that, then that might have resolve the original issue?
YES - it does!
We just removed all mpm --instsall=...
stuff and on the fly installation now works fine! :)
Note that for CI builds it might still be a good idea to install packages upfront and use some kind of caching (#22 ) of the packages or even build an own Dockerfile that includes the required packages upfront.
Since during research we found many people struggeling to use the image for CI but are actually trying to do it, we might want to explain that on the README?
For gitlab this works for us (where the Makefile
just runs pdflatex main.tex
):
image: miktex/miktex
variables:
MIKTEX_GID: 1111
MIKTEX_UID: 1111
build:
script:
- mpm --update-db
- make
# if something goes wrong on CI this might be very helpful:
# after_script:
# - cat /miktex/.miktex/texmfs/data/miktex/log/*.log
# - cat /miktex/.miktex/texmfs/data/miktex/log/*.out
artifacts:
paths:
- "*.pdf"
I had the same problem and this fixed it.
Thank you, Robert.
Trying to run
pdflatex
withgives an error
The
*.out
file contains this error:How can we fix it?