I've been trying to install rmagick via ruby and just can't seem to get it to work.
I installed through the cPanel gem installer and got this error:
Installing "rmagick" Ruby Gem
Need to update 12 gems from http://gems.rubyforge.org
............
complete
Building native extensions. This could take a while...
*** 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/bin/ruby
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /home/trinity/ruby/gems/gems/rmagick-2.0.0 for inspection.
Results logged to /home/xxxxxxx/ruby/gems/gems/rmagick-2.0.0/ext/RMagick/gem_make.out
The gem_make.out file is blank, but here is what is in the mkmf.log:
checking for Ruby version >= 1.8.2... -------------------- yes
--------------------
find_executable: checking for Magick-config... -------------------- yes
--------------------
checking for ImageMagick version >= 6.3.0... -------------------- yes
--------------------
checking for HDRI disabled version of ImageMagick... -------------------- yes
--------------------
have_header: checking for sys/types.h... -------------------- no
"gcc -E -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/include -g -O2 -Wall -W -pthread conftest.c -o conftest.i"
checked program was:
/* begin */
#include <sys/types.h>
/* end */
--------------------
have_header: checking for magick/MagickCore.h... -------------------- no
"gcc -E -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/include -g -O2 -Wall -W -pthread conftest.c -o conftest.i"
checked program was:
/* begin */
#include <magick/cd>
/* end */
--------------------
Can't install RMagick 2.0.0. Can't find MagickCore.h.
however, both of these header files exist in /usr/include
-rw-r--r-- 1 root root 5494 Jan 1 08:57 /usr/include/magick/MagickCore.h
-rw-r--r-- 1 root root 6658 Jun 12 2007 /usr/include/sys/types.h
I installed through the cPanel gem installer and got this error:
Installing "rmagick" Ruby Gem
Need to update 12 gems from http://gems.rubyforge.org
............
complete
Building native extensions. This could take a while...
*** 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/bin/ruby
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /home/trinity/ruby/gems/gems/rmagick-2.0.0 for inspection.
Results logged to /home/xxxxxxx/ruby/gems/gems/rmagick-2.0.0/ext/RMagick/gem_make.out
The gem_make.out file is blank, but here is what is in the mkmf.log:
checking for Ruby version >= 1.8.2... -------------------- yes
--------------------
find_executable: checking for Magick-config... -------------------- yes
--------------------
checking for ImageMagick version >= 6.3.0... -------------------- yes
--------------------
checking for HDRI disabled version of ImageMagick... -------------------- yes
--------------------
have_header: checking for sys/types.h... -------------------- no
"gcc -E -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/include -g -O2 -Wall -W -pthread conftest.c -o conftest.i"
checked program was:
/* begin */
#include <sys/types.h>
/* end */
--------------------
have_header: checking for magick/MagickCore.h... -------------------- no
"gcc -E -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/include -g -O2 -Wall -W -pthread conftest.c -o conftest.i"
checked program was:
/* begin */
#include <magick/cd>
/* end */
--------------------
Can't install RMagick 2.0.0. Can't find MagickCore.h.
however, both of these header files exist in /usr/include
-rw-r--r-- 1 root root 5494 Jan 1 08:57 /usr/include/magick/MagickCore.h
-rw-r--r-- 1 root root 6658 Jun 12 2007 /usr/include/sys/types.h