请提供GraphicsMagick安装的前缀[自动检测]

发布于 2024-12-22 13:32:34 字数 696 浏览 7 评论 0原文

我正在尝试使用此 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沫雨熙 2024-12-29 13:32:34

尝试安装 libgraphicsmagick1-dev 软件包(sudo apt-get install libgraphicsmagick1-dev)。这应该会在 /usr/bin 中为您提供 GraphicsMagick-config。

当试图找出特定文件需要什么包时,运行 apt-file search会有所帮助。因此,在本例中,apt-file search GraphicsMagick-config 在 Ubuntu Server 11.04 上给出:

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

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 case apt-file search GraphicsMagick-config which on Ubuntu Server 11.04 gives:

% apt-file search GraphicsMagick-config    
libgraphicsmagick1-dev: /usr/bin/GraphicsMagick-config
libgraphicsmagick1-dev: /usr/share/man/man1/GraphicsMagick-config.1.gz
衣神在巴黎 2024-12-29 13:32:34

在 OS X 上只需运行

酿造安装GraphicsMagick

然后重新运行 pecl 安装命令

On OS X simply run

brew install GraphicsMagick

and then rerun the pecl installation command

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文