所以我做了以下事情:
sudo apt-get install php-pear php5-dev
sudo apt-get install imagemagick libmagickwand-dev
sudo pecl install imagick
一切正常,直到我收到错误:
make: *** [imagick_class.lo] Error 1
ERROR: `make' failed
根据博客文章和表格,这是由于 libmagick9-dev 造成的,但是当我尝试安装它时,我得到了:
sudo apt-get install libmagick9-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmagick9-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
graphicsmagick-libmagick-dev-compat
E: Package 'libmagick9-dev' has no installation candidate
有什么想法吗?
答案1
您的错误消息表明该包不再可用。在执行这些命令之前,请尝试运行此命令。
sudo apt-get install graphicsmagick-libmagick-dev-compat
另请注意,如果可用,请尝试从存储库安装软件包。