RMagick 安装问题

RMagick 安装问题

我无法安装 RMagick,因为尝试后出现以下依赖关系问题sudo apt-get install libmagick9-dev根据此要求)在Ubuntu 10.0.4上:

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

答案1

这有效:

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

根据下面 dalibor-filus 的评论。

[原始答案 - 好的,我似乎已经解决了这个问题apt-get install imagemagick libmagickwand-dev,所以 libmagick9-dev 不是必需的。]

答案2

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

答案3

在 OSX 上尝试一下:https://github.com/maddox/magick-installer

这对我来说非常有效,apt-get但 brew 失败了

相关内容