从没有homedi的用户的tex生成pdf

2024-04-18 10:28:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图通过python cgi脚本从tomcat运行pdflatex。 但我得到了错误

ERROR: Permission denied: readWrite="true", path="/home/user_from_which_i_switched_to_tomcat_user/.miktex/texmfs/data/miktex/data/le/d26685eb8f310815af8ade7524bcc869.fndb"
ERROR: Info: readWrite="true", path="/home/user_from_which_i_switched_to_tomcat_user/.miktex/texmfs/data/miktex/data/le/d26685eb8f310815af8ade7524bcc869.fndb"
ERROR: Source: Libraries/MiKTeX/Core/MemoryMappedFile/unx/unxMemoryMappedFile.cpp
ERROR: Line: 88

当我试图从命令行以tomcat用户的身份运行脚本时。 我真的需要tomcat用户的主目录来运行pdflatex吗? 或者我可以使用另一个不需要生成home dir的程序吗 来自tex的pdf


Tags: topathfrom脚本truewhichhomedata