RMagick安装问题


12

在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

Answers:


17

这有效:

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

根据以下dalibor-filus的评论。

[ 原始答案-好的,我似乎已经通过解决了这个问题apt-get install imagemagick libmagickwand-dev,因此没有必要使用libmagick9-dev。]


1
这对我有用。只是想指出,要求“ rmagick”仍然无法正常工作。您必须使用require'RMagick'。
ayckoster 2012年

这对我不起作用。我得到:libmagickwand-dev:取决于:libmagickcore-dev(= 8:6.6.0.4-3ubuntu1.2)但它不会被安装
jackocnr 2012年

同样在这里...收到此错误:gist.github.com/4709742
TrinitronX

1
@TrinitronX @jackocnr,您必须先安装libmagickcore-dev,然后再安装libmagickwand-dev,这是在Ubuntu 14.04 LTS上完成的。(您应该能够在一个命令行中安装它们,如下所示:sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev
Dalibor Filus 2015年

0

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


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.