Installing rmagick on Ubuntu
有针对不同版本的 ubuntu 的解决方案,但没有一个适用于 17.04 ?sudo apt-get install libmagickwand-dev
给
Reading package lists... Done
Building dependency tree
Reading state information... Done
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: imagemagick-6-common (= 8:6.9.7.4+dfsg-3ubuntu1) but 8:6.9.7.4+dfsg-3ubuntu1.2 is to be installed
Depends: libmagickwand-6.q16-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
找不到任何解决方案。更新到 Ubuntu 到 17.10,它工作正常。
最佳答案
您可以在 ubuntu 中搜索任何软件包,执行 sudo apt-cache search libmagickwand-dev
如果你找到你正在寻找的包然后安装它做sudo apt-get install libmagickwand-dev
,
安装所有未满足的依赖项应该可以解决问题,并且执行以下命令来升级任何丢失的包总是有帮助的
sudo apt-get upgrade && sudo apt-get update
您应该可以安装
rmagick
在此之后没有任何问题。
关于ruby-on-rails - 我如何在 ubuntu 17.04 上安装 rmagick,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49500599/