符号查找错误:/usr/lib/x86_64-linux-gnu/libgs.so.9:未定义符号:FT_Property_Set .convert.bin:未定义图像

时间:2019-03-28 09:13:20

标签: node.js shell imagemagick ghostscript imagemagick-convert

我正在使用贝娄命令使用imagemagick将pdf转换为图像

convert -quality 100 "/home/pdfs/c5f28540-5136-11e9-8003-13b1ce237aeb.pdf[0]" "/home/pdfs/c5f28540-5136-11e9-8003-13b1ce237aeb-0.png"

当我尝试转换pdf时出现波纹管错误

gs: /opt/bitnami/common/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgs.so.9)
gs: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgs.so.9: undefined symbol: FT_Property_Set
.convert.bin: no images defined `/home/pdfs/c5f28540-5136-11e9-8003-13b1ce237aeb-0.png' @ error/convert.c/ConvertImageCommand/3258.

我已经安装了imagemagick,ghostscript和poppler-utils

gs vesrsion-

GPL Ghostscript 9.26 (2018-11-20)

转换版本-

Version: ImageMagick 6.9.8-3 Q16 x86_64 2018-12-27 http://www.imagemagick.org

可能是问题所在。它曾经可以在我的旧服务器上完美运行

1 个答案:

答案 0 :(得分:0)

只需稍微扩展一下上面emcconville的评论即可。

Ghostscript期望libtiff版本4.0.9,这是作为源分发的一部分提供的第三方代码的版本。您的软件包维护者已选择使用系统共享库,而不是使用Ghostscript附带的已知工作代码。您似乎有一个共享库版本5(名称在此处猜测)。

但是我怀疑这确实是问题所在; FT_Property_Set是实际上在FreeType中定义的符号。您是否安装了FreeType,如果安装了什么版本? Ghostscript期望使用FreeType 2.9.1,如果您没有安装FreeType,那么问题就出在这里。