微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

php – 请提供GraphicsMagick安装的前缀[autodetect]

我正在尝试使用此pecl命令安装 GraphicsMagickPHP API:
sudo pecl install channel://pecl.PHP.net/gmagick-1.0.10b1

在安装过程中我被问到这个问题:

Please provide the prefix of GraphicsMagick installation [autodetect]

我不知道如何回答这个问题,如果我按Enter键进行自动检测,则安装失败.

checking whether to enable the gmagick extension... yes,shared
checking GraphicsMagick configuration program... configure: error: not found. Please provide a path to GraphicsMagick-config program.
ERROR: `/tmp/pear/temp/gmagick/configure --with-gmagick' Failed

我正在使用ubuntu服务器,有谁知道如何安装这个程序?

尝试安装libgraphicsmagick1-dev软件包(sudo apt-get install libgraphicsmagick1-dev).这应该给你/usr/bin中的GraphicsMagick-config.

当试图弄清楚运行apt-file search< filename>的特定文件需要什么包时帮助.所以在这种情况下,apt-file搜索在Ubuntu Server 11.04上提供的GraphicsMagick-config

% apt-file search GraphicsMagick-config    
libgraphicsmagick1-dev: /usr/bin/GraphicsMagick-config
libgraphicsmagick1-dev: /usr/share/man/man1/GraphicsMagick-config.1.gz

原文地址:https://www.jb51.cc/php/137092.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐