Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/328.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Can';找不到初始化文件gs_init.ps_C#_.net_Latex_Pdflatex - Fatal编程技术网

C# Can';找不到初始化文件gs_init.ps

C# Can';找不到初始化文件gs_init.ps,c#,.net,latex,pdflatex,C#,.net,Latex,Pdflatex,我有一个使用ghostscript的.net windows窗体应用程序。只有在1台机器上我才能收到错误消息。在所有其他(100)上,它都可以找到。这是在Citrix环境中 错误是“AFPL Ghostscript 8.53:找不到初始化文件gs_init.ps” 我已经检查过了,文件确实存在。从Delphi应用程序调用GS dll时,我遇到了类似的问题;我通过设置环境变量解决了这个问题 从文档中:Ghostscript按以下顺序尝试目录: 当前目录(除非被-P-开关禁用) 命令行中由-I开关指

我有一个使用ghostscript的.net windows窗体应用程序。只有在1台机器上我才能收到错误消息。在所有其他(100)上,它都可以找到。这是在Citrix环境中

错误是“AFPL Ghostscript 8.53:找不到初始化文件gs_init.ps”


我已经检查过了,文件确实存在。

从Delphi应用程序调用GS dll时,我遇到了类似的问题;我通过设置环境变量解决了这个问题

从文档中:Ghostscript按以下顺序尝试目录:

  • 当前目录(除非被
    -P-
    开关禁用)
  • 命令行中由
    -I
    开关指定的目录(如果有)
  • GS_LIB
    环境变量指定的目录(如果有)

  • 在OSx(
    pdflatex*.tex
    )上编译latex文件时,我遇到了类似的问题。 这个问题是由MacTeX安装的
    gs
    引起的。 命令
    pdflatex
    使用的是MacTex安装的命令gs,而不是
    brew
    安装的命令gs。
    我通过运行以下命令修复了该问题:brew链接--overwrite ghostscript

    该机器上的环境路径变量是否相同?在那台机器上有不同的用户权限吗?谢谢你的回复。是的,路径变量相同,计算机上的权限也相同。Ghostscript安装程序还为
    GS_LIB
    目录添加注册表项,并在其中进行搜索。谢谢!同样适用于通过X11安装的GS。