Rmagick ruby ​​gem kann unter CentOS 7 nicht installiert werden

670
Sudheer
gem install rmagick 

gibt mir:

Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension.  /usr/bin/ruby extconf.rb checking for gcc... yes checking for Magick-config... yes *** 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=$/include --with-opt-lib --without-opt-lib=$/lib64 --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby extconf.rb:189:in ``': No such file or directory - which (Errno::ENOENT) from extconf.rb:189:in `has_graphicsmagick_libmagick_dev_compat?' from extconf.rb:66:in `configure_compile_options' from extconf.rb:16:in `initialize' from extconf.rb:548:in `new' from extconf.rb:548:in `<main>'   Gem files will remain installed in /home/redmine/.gem/ruby/gems/rmagick-2.16.0 for inspection. Results logged to /home/redmine/.gem/ruby/gems/rmagick-2.16.0/ext/RMagick/gem_make.out 

Ich habe die Pakete ImageMagick und ImageMagick-devel. Gibt es eine Möglichkeit herauszufinden, welches Paket mir fehlt?

cat /home/redmine/.gem/ruby/gems/rmagick-2.16.0/ext/  /usr/bin/ruby extconf.rb checking for gcc... yes checking for Magick-config... yes *** 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=$/include --with-opt-lib --without-opt-lib=$/lib64 --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby extconf.rb:189:in ``': No such file or directory - which (Errno::ENOENT) from extconf.rb:189:in `has_graphicsmagick_libmagick_dev_compat?' from extconf.rb:66:in `configure_compile_options' from extconf.rb:16:in `initialize' from extconf.rb:548:in `new' from extconf.rb:548:in `<main>' 
0

1 Antwort auf die Frage

1
Michael Hampton

Die Fehlerausgabe weist darauf hin, dass auf Ihrem Server das genannte Programm fehlt which. Versuchen Sie, dieses Programm zu installieren.

yum install which