I've installed MacTeX (full version) on my mac os (10.6.7).
I do need to generate pdf thru php script. The problem is that while everything works fine in shell but when using shell_exec (or passthru, exec) the font error occurs.
PHP code
Code: Select all
putenv("PATH=".getenv('PATH').":/opt/local/bin:/usr/local/texlive/2010/bin/x86_64-darwin:/usr/texbin");
exec("texi2pdf -c -o work.pdf work.tex");
Code: Select all
/Volumes/data/Projects/test/work.tex:13: Font T2A/cmr/m/n/10=larm1000 at 10.0pt
not loadable: Metric (TFM) file not found.
I've set enough access permissions to font files and it didn't help either.