gem install rmagick don't work.
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/home/sergey/rubystack/ruby/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
Warning: Found more than one ImageMagick installation. This could cause problems at runtime.
/home/sergey/rubystack/common/bin/Magick-config reports version 6.7.5 Q16 is installed in /home/sergey/rubystack/common
/usr/bin/Magick-config reports version 6.6.9 Q16 is installed in /usr
Using 6.7.5 Q16 from /home/sergey/rubystack/common.
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no
Can't install RMagick 2.13.2. Can't find MagickWand.h.
*** 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=/home/sergey/rubystack/ruby/bin/ruby
Gem files will remain installed in /home/sergey/rubystack/ruby/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2 for inspection.
Results logged to /home/sergey/rubystack/ruby/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/ext/RMagick/gem_make.out
I try to do
# . /home/sergey/rubystack/scripts/setenv.sh
# export LDFLAGS="-L/home/sergey/rubystack/common/lib"
# export CFLAGS="-I/home/sergey/rubystack/common/lib/ImageMagick"
# gem install rmagick
But it also don't help me.