在 Suse 中安装 libgd2

在 Suse 中安装 libgd2

我通常在 CentOS 和 Ubuntu 机器上工作,但我一直在绞尽脑汁尝试在 Suse(Suse Enterprise Server 11. x86_64)上安装 libgd2。很多谷歌搜索都建议我安装 gd,但那是版本 1。即使是 zypper 搜索“gd”,也只能得到“gd - 使用 PNG 和 JPEG 输出的程序的绘图库”。最终,我尝试安装 Perl 的 GD 模块,但它依赖于 libgd2,并且尝试从源代码安装也会不断出错。大多数情况下...

configure.ac:51: warning: macro `AM_ICONV' not found in library
configure.ac:51: error: possibly undefined macro: AM_ICONV        
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
Failed

在 CentOS 和 Ubuntu 上安装 libgd2 只需一行,就是这样,但不幸的是我只能尝试让它在 Suse 上运行。

有人曾经在 Suse 机器上安装过 libgd2 吗?或者如果你知道 zypper 的魔法命令那就太好了。

非常感谢!Janie

答案1

安装 gettext 的开发库(我猜测是 opensuse 下的 gettext-devel),清理所有内容并重新配置。

相关内容