0

我正在尝试使用完整的 TeXLive 2017 和latexml制作一个 docker 图像,用于将乳胶编译为 pdf 并将乳胶转换为 html。我相信这将是一个有用的工具。这是我的码头文件:

FROM debian:testing
MAINTAINER Dr Suman Khanal <suman81765@gmail.com>
LABEL updated_at '2017-07-26'
RUN apt-get update \
  && apt-get install -y gnupg git wget curl libgetopt-long-descriptive-perl libdigest-perl-md5-perl python python-pygments
WORKDIR /usr/local/src
RUN curl -sL http://mirror.utexas.edu/ctan/systems/texlive/tlnet/install-tl-unx.tar.gz | tar zxf - && mv install-tl-20* install-tl

WORKDIR install-tl
RUN echo "selected_scheme scheme-full" > profile \
  && ./install-tl -repository http://mirror.utexas.edu/ctan/systems/texlive/tlnet -profile profile
WORKDIR /
ENV PATH /usr/local/texlive/2017/bin/x86_64-linux:$PATH
RUN apt-get install -y libarchive-zip-perl \
  libfile-which-perl libimage-size-perl  \
  libio-string-perl libjson-xs-perl libtext-unidecode-perl \
  libparse-recdescent-perl liburi-perl libuuid-tiny-perl libwww-perl \
  libxml2 libxml-libxml-perl libxslt1.1 libxml-libxslt-perl  \
  imagemagick libimage-magick-perl 
RUN git clone https://github.com/brucemiller/LaTeXML.git && cd LaTeXML && perl Makefile.PL && make && make install 
CMD ["tlmgr", "--version"]

但是它抛出了这个错误Build failed: The command '/bin/sh -c git clone https://github.com/brucemiller/LaTeXML.git && cd LaTeXML && perl Makefile.PL && make && make install' returned a non-zero code: 127。在我犯错的地方有什么帮助吗?

4

1 回答 1

2

您缺少make可执行文件(apt-get install make),因此构建过程在之后崩溃perl Makefile.PL

于 2017-08-03T09:18:12.937 回答