RMagick 安装问题

mah*_*off 12 imagemagick

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

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
Run Code Online (Sandbox Code Playgroud)

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

mah*_*off 17

这有效:

sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev
Run Code Online (Sandbox Code Playgroud)

根据 dalibor-filus 下面的评论。

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