0

convert从命令行运行以将少量 JPG 文件合并为 PDF 时出现段错误:

$ convert ./file_*.jpg  p.pdf
Segmentation fault

在那里,你看到了吗?为了尝试追踪发生了什么,我在调试器下运行它,得到以下结果:

(gdb) run ./file_*.jpg  p.pdf
Starting program: /usr/local/bin/convert ./file_*.jpg  p.pdf
warning: .dynamic section for "/usr/lib/libfreetype.so.6" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for "/usr/lib/libpng12.so.0" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
warning: .dynamic section for "/usr/lib/libfontconfig.so.1" is not at the expected address

谁能告诉我这是什么意思?看起来好像有一个库不兼容,但我不确定我能做些什么或能做些什么。

抱歉,如果我的标签有误 - 如果您能想到更合适的标签,请随时更改。我从源代码配置并制作了转换应用程序,所以我想我并没有真正期待这一点。

4

1 回答 1

1

prelinkPrelink似乎是一个问题,它试图通过帮助动态链接器来加快上传时间。有关它的作用的更多信息,请参见man prelink 。您可以使用以下命令取消预链接可执行文件。

prelink --undo /path/to/executable

这应该将可执行文件恢复为正常的动态链接。

于 2012-12-23T02:51:33.090 回答