无法安装RMagick 0.0.0。找不到Magick-config [英] Can't install RMagick 0.0.0. Can't find Magick-config

查看:85
本文介绍了无法安装RMagick 0.0.0。找不到Magick-config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行debian服务器并在很长一段时间后升级所有软件包( apt-get update apt-get upgrade apt-get distro-upgrade )。然后rmagick不再工作因为imagemagick已更新。

I'm running a debian server and upgraded all packages after quite a while (apt-get update, apt-get upgrade, apt-get distro-upgrade). Then rmagick didn't work anymore becuase imagemagick was updated.

所以我跑了:

gem uninstall rmagick
bundle install

然后我得到了这个:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 0.0.0. Can't find Magick-config in /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/bin/ruby

extconf failed, exit code 1

Gem files will remain installed in /srv/www/www.example.com/shared/vendor/bundle/ruby/2.1.0/gems/rmagick-2.13.3 for inspection.
Results logged to /srv/www/www.example.com/shared/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/rmagick-2.13.3/gem_make.out
An error occurred while installing rmagick (2.13.3), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.3'` succeeds before bundling.

这是 cat mkmf.log

    checking for Ruby version >= 1.8.5... -------------------- yes

--------------------

find_executable: checking for gcc... -------------------- yes

--------------------

find_executable: checking for Magick-config... -------------------- no

--------------------

Can't install RMagick 0.0.0. Can't find Magick-config in /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

任何人都可以帮我这个吗?

Can anyone help me with this?

推荐答案

无论谁碰到这个未来的问题:我花了很长时间,但它是固定的。这就是我做的:

For whoever runs into this problem in the future: It took me long but it's fixed. This is what I did:


  • sudo apt-get purge imagemagick libmagickcore-dev libmagickwand-dev

  • sudo rm -R / usr / include / ImageMagick-6 / magick

  • sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config / usr / bin / Magick-config

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

  • sudo apt-get purge imagemagick libmagickcore-dev libmagickwand-dev
  • sudo rm -R /usr/include/ImageMagick-6/magick
  • sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config /usr/bin/Magick-config
  • sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev

这篇关于无法安装RMagick 0.0.0。找不到Magick-config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆