gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 00:12:10 24 4
gpt4 key购买 nike

我正在尝试为 GraphicsMagick 安装 PHP API使用这个 pecl 命令:

sudo pecl install channel://pecl.php.net/gmagick-1.0.10b1

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

Please provide the prefix of GraphicsMagick installation [autodetect]

我不知道如何回答这个问题,如果我只是按回车键进行自动检测,安装就会失败。

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 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

关于php - 请提供GraphicsMagick安装的前缀[autodetect],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8626558/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com