2016-11-15 63 views
1

我想从我的工作目录与搬运工人文件其中的texlive包括多克阿尔卑斯山的texlive

泊坞窗形象正在像expectetd但当ICH尝试

docker run -v $PWD:/mountvolume texlive /bin/sh -c 'pdflatex article.tex' 

我得到生成PDF错误:

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Alpine Linux) (preloaded format=pdflatex) 
restricted \write18 enabled. 
    kpathsea: Running mktexfmt pdflatex.fmt 
    Can't locate mktexlsr.pl in @INC (@INC contains: /usr/share/tlpkg /usr/share/texmf-dist/scripts/texlive /usr/local/lib/perl5/site_perl /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/bin/mktexfmt line 23. 

BEGIN failed--compilation aborted at /usr/bin/mktexfmt line 25. 

我找不到格式文件pdflatex.fmt

回答

2

你Dockerfile需要更详细一点:看issue 4514

Looks like that texlive package isn't enough to get fully functional TeX system (2015: fmtutil.pl depends on mktexlsr.pl)

texlive has been on testing repo for a long time.
But it's missing some stuff, most important being texlive-texmf . If you want to use texlive today you must install the package from testing, download texlive-20160523b-texmf.tar.xz, copy contents to /usr/share/texmf-dist and reinstall the package from testing.

但是:

What alpine needs is to package texlive-texmf too.
But no alpine linux developer has looked into this yet

+0

我所做的更改,但得到了同样的错误 – Fesco