redmine 2.6 and rmagick
Added by Mehrab Moghadam almost 10 years ago
Hi,
I have installed redmine 2.6 using Helicon. now I am trying to install rmagick as I want to use it to export images to pdf but when I try to install it:
I get error messages:
gem install rmagick -v'2.13.2'
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
C:/Ruby19/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... 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=C:/Ruby19/bin/ruby
C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:931:in `block in have_header'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:930:in `have_header'
from extconf.rb:194:in `<main>'
Gem files will remain installed in C:/inetpub/wwwroot/redmine/GEM_HOME/gems/rmagick-2.13.2 for inspection.
Results logged to C:/inetpub/wwwroot/redmine/GEM_HOME/gems/rmagick-2.13.2/ext/RMagick/gem_make.out
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
I have installed Ruby 1.9.3, rails 3.2.21, Redmine 2.6
Could you please help me with this issue? or is there any alternative way that i can export images to pdf? Many thanks
Replies (9)
RE: redmine 2.6 and rmagick - Added by Ivan Cenov almost 10 years ago
Did you set the environment variables that point to where is ImageMagick installed? Something like this:
CPATH=C:\Program Files (x86)\ImageMagick-6.8.0-Q16\include LIBRARY_PATH=C:\Program Files (x86)\ImageMagick-6.8.0-Q16\lib
RE: redmine 2.6 and rmagick - Added by Mehrab Moghadam almost 10 years ago
Thanks for reply,
Yes, I have. I did install the latest version of ImageMagick and set the ENVs. I also tried some of the old version of ImageMagic to see if they are compatible with rmagick and redmineb still I got same error.
RE: redmine 2.6 and rmagick - Added by Mehrab Moghadam almost 10 years ago
At the moment I am just uploading images with *.png format so i can export images in PDF, but this is not a direct solution for exporting images into the pdf.
RE: redmine 2.6 and rmagick - Added by Ivan Cenov almost 10 years ago
When I installed rmagick I had problems, and as far as I remember, I should install the right version. This was long ago and I do not remember what I did exactly...
RE: redmine 2.6 and rmagick - Added by Ivan Cenov almost 10 years ago
I suppose you have seen it, but in case if you haven't, here is a HowTo install rmagick gem on Windows
RE: redmine 2.6 and rmagick - Added by Mehrab Moghadam almost 10 years ago
Yes, I have seen this instruction. What version of ImageMagic and rmagick you installed? I should say that I have tried to install ImageMagic for 64 and 32bits version to see if it makes any changes but still same result.
RE: redmine 2.6 and rmagick - Added by Ivan Cenov almost 10 years ago
C:\Program Files (x86)\ImageMagick-6.8.0-Q16>convert -version Version: ImageMagick 6.8.0-3 2012-10-24 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP
rmagick (2.13.4, 2.13.3, 2.13.2, 2.13.1)
RE: redmine 2.6 and rmagick - Added by Ivan Cenov almost 10 years ago
C:\Program Files (x86)\ImageMagick-6.8.0-Q16>gcc --ver Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=e:/devkit/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe Target: mingw32 Configured with: ../../src/gcc-4.5.2/configure --build=mingw32 --enable-languages=c,c++,ada,fortran,objc,obj-c++ --enabl e-threads=win32 --enable-libgomp --enable-lto --enable-fully-dynamic-string --enable-libstdcxx-debug --enable-version-sp ecific-runtime-libs --with-gnu-ld --disable-nls --disable-win32-registry --disable-symvers --disable-werror --prefix=/mi ngw32tdm --with-local-prefix=/mingw32tdm --enable-cxx-flags='-fno-function-sections -fno-data-sections' --with-pkgversio n=tdm-1 --enable-sjlj-exceptions --with-bugurl=http://tdm-gcc.tdragon.net/bugs Thread model: win32 gcc version 4.5.2 (tdm-1)
RE: redmine 2.6 and rmagick - Added by Mehrab Moghadam almost 10 years ago
Thanks Ivan,
I have installed the rmagick using the old version of imagemagick 6.7.9 for win 32bits. I also had to install MingW Developer tool kit. Thanks for your help.