szhorvat / MaTeX

LaTeX labels in Mathematica
http://szhorvat.net/mathematica/MaTeX
MIT License
375 stars 45 forks source link

"/usr/bin/gs is either not working or is not a command line version of Ghostscript." #35

Closed mauricioquintela closed 4 years ago

mauricioquintela commented 4 years ago

The only version of Ghstscript installed in my system (Linux) is 9.53.1, running Mathematica 12.1.

When configuring MaTeX, the error "/usr/bin/gs is either not working or is not a command line version of Ghostscript." is presented, making MaTeX unable to be used.

Both

RunProcess[{"/usr/bin/gs", "--version"}]

MaTeX`Private`runProcess[{"/usr/bin/gs", "--version"}]

return

<|"ExitCode" -> 0, "StandardOutput" -> "9.53.1
  ", "StandardError" -> ""|>

Furthermore, Ghostscript works in terminal and ~ > which gs returns /usr/bin/gs, as expected.

szhorvat commented 4 years ago

This is likely because of the unusual version number. In the past, Ghostscript was always x.y, but this is an x.y.z pattern version. I'll look into it.

szhorvat commented 4 years ago

Thanks for the report! Version 1.7.7 fixes this problem.

mauricioquintela commented 4 years ago

Thank you for the quick fix.