php – 请提供GraphicsMagick安装的前缀[autodetect]
发布时间:2020-12-13 13:21:43 所属栏目:PHP教程 来源:网络整理
导读:我正在尝试使用此pecl命令安装 GraphicsMagick的PHP API: sudo pecl install channel://pecl.php.net/gmagick-1.0.10b1 在安装过程中我被问到这个问题: Please provide the prefix of GraphicsMagick installation [autodetect] 我不知道如何回答这个问题,
我正在尝试使用此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服务器,有谁知道如何安装这个程序?
尝试安装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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |