pstoedit 不创建 svg

pstoedit does not create svg

实际上,我在使用 Inkscape 0.91 时发现了最初的问题 - 它有一个选项可以在 SVG 表面上渲染 Latex 图像。稍微挖掘一下,问题似乎是由于 pstoedit 失败,当单独调用时报告:

$ pstoedit -f svg test.ps test.svg
pstoedit: version 3.70 / DLL interface 108 (built: Sep 25 2017 - release build - g++ 4.9.3 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz
Unsupported output format svg

更深入地挖掘,似乎 pstoedit 使用 plotutils 来完成这项工作,但是,从测试来看,plotutils 似乎做了它应该做的事情:

echo 0 0 1 1 2 0 | spline | graph > test.meta

成功创建了一个包含样条曲线的 test.meta 文件,而

plot -T svg test.meta > test.svg

将该图元文件正确转换为 test.svg

安装的版本是:

我还查看了 ./configure 选项以检查是否缺少某些内容 - 运气不好。

分布是Slackware64-current。由于 Slackware 总是安装头文件,这里没有头文件(-dev、-devel...)丢失(我也检查过。安装 plotutils 后重新编译 pstoedit

深入挖掘,我找到了问题的原因。 Slackware64 将库安装到 /usr/lib64,因此 pstoedit 插件安装在 /usr/lib64/pstoedit 中。但似乎 pstoedit 在运行时尝试加载插件时不会在该目录中查找 - 它会查找 /usr/lib/pstoedit

然后它报告支持除 svg 之外的多种格式 - 给人的印象是它确实找到了一些插件。在 Debian 错误报告中,我发现报告者使用 -verbose 命令行选项检查插件搜索,该选项不会退出(只是 -v

无论如何,我通过创建从 /usr/lib/pstoedit/usr/lib64/pstoedit 的符号链接解决了这个问题(暂时)。我也给程序作者发个报告吧