RMagick安装问题

在Ubuntu 10.0.4上尝试sudo apt-get install libmagick9-dev ( 根据此要求 )之后,由于以下依赖性问题,我无法安装RMagick:

 Note, selecting libmagickwand-dev instead of libmagick9-dev Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libmagickwand-dev: Depends: libmagickwand2 (= 7:6.5.7.8-1ubuntu1.1) but it is not going to be installed Depends: libmagickcore2-extra (= 7:6.5.7.8-1ubuntu1.1) but it is not going to be installed Depends: libmagickcore-dev (= 7:6.5.7.8-1ubuntu1.1) but it is not going to be installed 

尝试apt-get install libmagickwand2,我得到这个:

 > The following packages have unmet dependencies: libmagickwand2: > Depends: libice6 (>= 1:1.0.0) but it is not installable > Depends: libjpeg62 but it is not installable > Depends: libmagickcore2 (>= 7:6.5.7.8) but it is not going to be installed > Depends: libsm6 but it is not installable > Depends: libtiff4 but it is not going to be installed > Depends: libxt6 but it is not installable 

这有效:

 sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev 

根据dalibor-filus的评论如下。

[ 原始答案 – 好吧我似乎用apt-get install imagemagick libmagickwand-dev解决了这个问题,所以libmagick9-dev没有必要。 ]

我在Ubuntu 11.10上遇到过这个问题,@ mahemoff的解决方案对我没用。 最后,我卸载了与ImageMagick有关的所有内容,然后从源代码编译了最新版本的ImageMagick,然后安装了rmagick就好了。

试试OSX: https : //github.com/maddox/magick-installer

对于apt-get和brew失败的人来说,这非常有效