将Ghostscript从v9.07升级到9.22

问题描述 投票:0回答:1

我的服务器是CentOS,我试图通过composer使用这个库:

https://github.com/imalhasaranga/PDFLib

但是,我收到以下错误消息:

Fatal error: Uncaught Exception: Your version of GhostScript 9.07 is not compatible with the library

如何在服务器上更新Ghostscript的版本,以便我可以在PHP中使用它?

php linux ghostscript
1个回答
0
投票

您可以看到CentOS是否有更新的软件包(可能没有),您可以尝试使用ghostscript.com提供的预构建二进制文件。如果两者都不成功,则需要从源代码构建Ghostscript。

为此,您需要安装一个可用的C编译器(gcc)和autotools。

© www.soinside.com 2019 - 2024. All rights reserved.