请提供GraphicsMagick安装的前缀[自动检测]
我正在尝试使用此 pecl 命令安装 GraphicsMagick 的 PHP 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 服务器,有人知道如何安装这个程序吗?
I'm trying to install the PHP API for GraphicsMagick using this pecl command:
sudo pecl install channel://pecl.php.net/gmagick-1.0.10b1
during installation I am asked this question:
Please provide the prefix of GraphicsMagick installation [autodetect]
I have no idea how to answer this and if I just press enter for auto detection the install fails.
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
I am using ubuntu server, does anyone know how I can install this program?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试安装 libgraphicsmagick1-dev 软件包(sudo apt-get install libgraphicsmagick1-dev)。这应该会在 /usr/bin 中为您提供 GraphicsMagick-config。
当试图找出特定文件需要什么包时,运行 apt-file search会有所帮助。因此,在本例中,
apt-file search GraphicsMagick-config
在 Ubuntu Server 11.04 上给出:Try installing the
libgraphicsmagick1-dev
package (sudo apt-get install libgraphicsmagick1-dev). That should give you GraphicsMagick-config in /usr/bin.When trying to figure out what package is needed for a particular file running
apt-file search <filename>
helps. So in this caseapt-file search GraphicsMagick-config
which on Ubuntu Server 11.04 gives:在 OS X 上只需运行
然后重新运行 pecl 安装命令
On OS X simply run
and then rerun the pecl installation command