slatex / LaTeXML-Plugin-sTeX

A LaTeXML Plugin for Semantic LaTeX (sTeX)
LaTeX Project Public License v1.3c
2 stars 3 forks source link

trang not found in make process #110

Closed kohlhase closed 4 years ago

kohlhase commented 8 years ago

On Mac OS I get

Entering /mounted/lmh/ext/LaTeXMLsTeX
Running Makefile.PL
Configuring /mounted/lmh/ext/LaTeXMLsTeX ... Can't exec "type": No such file or directory at Makefile.PL line 14.

Trang is not found which could lead to a make failure.
You can ignore this message if you do not intend to change the schema.
See README for more info!

make: trang: Command not found
make: *** [LaTeXML.rng] Error 127
Generating a Unix-style Makefile
Writing Makefile for LaTeXML::Plugin::sTeX
Writing MYMETA.yml and MYMETA.json

but trang is installed in /usr/local/bin/trang.

angerhang commented 8 years ago

The message you got comes from type which does not exist in the Debian distribution that we are using for lmh_docker so I added which to the checking as well. which does exist in Debian.

I think what we should really is to provide trang inside the docker image by default (see https://github.com/KWARC/localmh_docker/pull/29) because this checking mechanism won't have the access to the resources outside the docker. (this is the nature of having a docker) Even if the checking works, it would still don't know if we have trang installed on the host system or not.

The checking here is mainly for the developers using the plugin outside the docker so that they are informed about the need of trang if they would like to customize the scheme, and the detection mechanism does work outside docker now (being tested on both Mac and Ubuntu)

kohlhase commented 4 years ago

seems to be a duplicate of #116