ahmadj |
01-03-2011 10:07 AM |
Can't install 'rmagick' Ruby gem...
Hi all,
Has anyone been able to successfully install rmagick on slackware 13.1? On both my systems (one multilib and one 32-bit), it complains about having a 'partial' ImageMagick install!
Code:
$ sudo gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install rmagick
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes
Warning: Found a partial ImageMagick installation. Your operating system likely has some built-in ImageMagick libraries but not all of ImageMagick. This will most likely cause problems at both compile and runtime.
Found partial installation at: /usr
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.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=/usr/bin/ruby
/usr/lib64/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib64/ruby/1.9.1/mkmf.rb:433:in `try_cpp'
from /usr/lib64/ruby/1.9.1/mkmf.rb:811:in `block in have_header'
from /usr/lib64/ruby/1.9.1/mkmf.rb:670:in `block in checking_for'
from /usr/lib64/ruby/1.9.1/mkmf.rb:276:in `block (2 levels) in postpone'
from /usr/lib64/ruby/1.9.1/mkmf.rb:250:in `open'
from /usr/lib64/ruby/1.9.1/mkmf.rb:276:in `block in postpone'
from /usr/lib64/ruby/1.9.1/mkmf.rb:250:in `open'
from /usr/lib64/ruby/1.9.1/mkmf.rb:272:in `postpone'
from /usr/lib64/ruby/1.9.1/mkmf.rb:669:in `checking_for'
from /usr/lib64/ruby/1.9.1/mkmf.rb:810:in `have_header'
from extconf.rb:193:in `<main>'
Gem files will remain installed in /usr/lib64/ruby/gems/1.9.1/gems/rmagick-2.13.1 for inspection.
Results logged to /usr/lib64/ruby/gems/1.9.1/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
|