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

TKp*_*pop 9 php linux pear imagemagick graphicsmagick

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

sudo pecl install channel://pecl.php.net/gmagick-1.0.10b1
Run Code Online (Sandbox Code Playgroud)

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

Please provide the prefix of GraphicsMagick installation [autodetect]
Run Code Online (Sandbox Code Playgroud)

我不知道如何回答这个问题,如果我按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
Run Code Online (Sandbox Code Playgroud)

我正在使用ubuntu服务器,有谁知道如何安装这个程序?

Rob*_*ers 11

尝试安装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
Run Code Online (Sandbox Code Playgroud)