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

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...