[tex-live] OT2 vs. T2A; compilation by apache user issues

mario chiari ml at mariochiari.net
Thu Feb 27 18:00:36 CET 2014


On Tue, 2014-02-25 at 22:53 +0100, Zdenek Wagner wrote:
> 2014-02-25 21:34 GMT+01:00 mario chiari <ml at mariochiari.net>:
> > Hi
...
> 
> > kpathsea: Running mktextfm larm1728
> > mkdir: cannot create directory `././var/www/.texlive2013': Permission
> > denied
> 
> Something is broken in your setup, path ././var/www/.texlive2013 looks
> really strange

This is just what I get from the updated texlive2013.

> 
> > mktextfm: mktexdir /var/www/.texlive2013/texmf-var/fonts/tfm/lh/lh-t2a
> > failed.
> > kpathsea: Appending font creation commands to missfont.log.
> > ! Font T2A/cmr/m/n/17.28=larm1728 at 17.28pt not loadable: Metric (TFM)
> > **************
> > (btw, why that warning does not show up in the log file?)
> >
> This is a message issued by mktextfm, not by tex

Ok, I see.
I see also some doc info for mktextfm too:
***********
mktextfm is typically called by other programs, rather than from the
command line.
mktextfm accepts the following options:
--destdir dir
A directory name. If the directory is absolute, it is used as-is.
Otherwise, it is appended
to the root destination directory set in the script.
************
now, how do I do that? What is considered root directory here? Which
argument should I pass to have larm1728.mf available to my web server?

> 
> > now, setting
> >
> > chown apache:apache /var/www/
> >
> > i get instead
> > ******************
> > LaTeX Font Warning: Font shape `T2A/wncyr/m/n' undefined
> > (Font)              using `T2A/cmr/m/n' instead on input line 2.
> > kpathsea: Running mktextfm larm1728
> > mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;
> > nonstopmode; input larm1728
> > This is METAFONT, Version 2.718281 (TeX Live 2013)
> > kpathsea: Running mktexmf larm1728
> > mktexmf: /var/www/.texlive2013/texmf-var/fonts/source/lh/lh-t2a/larm1728.mf: successfully generated.
> > --snip--
> > *******************
> > then i run
> >
> > bash-4.2$ /usr/local/texlive/2013/bin/i386-linux/biber  MyFile.bcf
> > bash-4.2$ /usr/local/texlive/2013/bin/i386-linux/pdflatex  MyFile.tex
> >
> > and output is very fine.
> >
> > Similarly, if a run
> > bash-4.2$ php direct.php    # direct.php as last mail (see below)
> >
> > BUT if I call localhost/<my path>/direct.php from my client, it still
> > fails.
> >
> There are too many things that can be wrong in your apache setup. 

I hope not :-)
I think it is a issue
with .texlive2013/texmf-var/fonts/source/lh/lh-t2a/larm1728.mf being
created into /var/www/, instead of somewhere down inside my
DocumentRoot /var/www/html/. 

However, I am not sure where it should be, as to be seen when I call my
php script from the web client. 


> You
> should start with a simple "Hello world" sample just with default
> fonts and look how your php script searches for tex and how tex
> searches its files. It is hardly possible to catch 15 fish on a single
> hook at the same time...

Note, I have been compiling a number of .tex file, using a number of php
scripts, without a single issue, until I needed to quote a cyrillic
text. 

Thanks for all
cheers
mario





More information about the tex-live mailing list