在ubuntu 7.10上安装imagemagick-dev

想安装JMagick处理网站上的缩略图。
但是要安装imagemagick、imagemagick-dev,但是在ubuntu使用:
$ sudo apt-get install imagemagick-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package imagemagick-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
E: Package imagemagick-dev has no installation candidate

解决方法:
$ apt-cache showpkg imagemagick-dev
Package: imagemagick-dev
Versions: 

Reverse Depends: 
  libmagick9-dev,imagemagick-dev


接下来通过
$ sudo apt-get install libmagick9-dev
安装库文件就可以了。

你可能感兴趣的:(cache,ubuntu)