I'm trying to get pdflatex working on AWS Lambda and I've hit a roadblock. I believe I have the basic tex engine running as I'm able to run the command
pdflatex -version and get the correct information.
However, when I try to compile an actual latex file (
pdflatex sample.tex) I get the following error:
kpathsea: Running mktexfmt pdflatex.fmt mktexfmt: No such file or directory
Due to the ephemeral nature of AWS Lambda I created a new
bin/ folder, added it to the
$PATH and included in it all of the required dependencies as well as rebuild the
ls-R file at the root of the directory. The
ls-R file contains the location of
pdflatex.fmt but my guess is that it's not searching the correct directory for the
ls-R file. The
kpathsea documentation states you can set the default installation location in
$TEXMF but that doesn't seem to have worked.
$ echo $TEXMF /var/task/bin # the created bin directory
Any ideas on how to continue debugging this installation? Or if there's a better approach at this.