--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
When you installed ImageMagick you installed the libraries and headers, right? Also, which version of the DevKit?
Try changing LIBRARY_PATH to just C:\ImageMagick-6.7.0-Q16 and see if things work by allowing gcc to link against the *.dll files.
Jon
---
blog: http://jonforums.github.com/
twitter: @jonforums
"Anyone who can only think of one way to spell a word obviously lacks imagination." - Mark Twain
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
:(
Have you also looked at the two RMagic tuts at our wiki https://github.com/oneclick/rubyinstaller/wiki/Tutorials
Given that c:/ImageMagick-6.7.0-Q16/lib contains *.lib files I'd hoped that forcing the link against the *.dll's would have done the trick.
I'm guessing that the following won't work, but try it from a cmd.exe shell (without the env var mods) instead of PS. If it doesn't work, copy rmagick's ext/mkmf.log file to a pastie and reply with the link.
gem install rmagick --platform=ruby -- --with-opt-lib=c:\ImageMagick-6.7.0-Q16 --with-opt-include=c:\ImageMagick-6.7.0-Q16\include
C:\Users\Jon\Documents>set PATH=C:\ImageMagick-6.7.0-Q16;%PATH%
C:\Users\Jon\Documents>gem install rmagick --platform=ruby -- --with-opt-lib=c:\ImageMagick-6.7.0-Q16 --with-opt-include=c:\ImageMagick-6.7.0-Q16\include
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed
But it's likely you're going to face runtime problems as the RMagick2.so is linked against ImageMagick's CORE_RL_magick_.dll (you'll need C:\ImageMagick-6.7.0-Q16 on PATH at runtime for the DLLs to be picked up) which is linked against a private MSVCR100.DLL. Since RMagick2.so is linked against MSVCRT.DLL this "linking against multiple CRT versions" issue will likely cause problems.
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
What's odd is I can build the gem fine and run RMagick's examples/vignette.rb and it properly generates a vignette.png. It gives an error trying to run display but the png is fine. Maybe the multiple CRT issue isn't a problem in this case. Don't know as I don't use RMagick.
Have you posted an issue at the http://github.com/rmagick/rmagick/issues I see https://github.com/rmagick/rmagick/issues/27 but don't know if that's you.
Don't give up just yet since it seems RMagick can build with our DevKit. And even though the multiple CRT issue is a concern, it may turn out to be OK. If you've got any more patience on this one I'd say push it a bit more with the RMagick folks ;)
And if they get things working and are building gems from *nix, please request that they build a fat binary (1.8/1.9) binary gem with Luis' http://rubygems.org/gems/rake-compiler like Nokogiri and others are doing.
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
Understood.
If you _do_ get time to come back to it, create a http://pastie.org/ of the mkmf.log from the failed build as well as your PATH and the output of `gem env`.
You might also check out our https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting page (especially the wacky one about AutoRun entries) and see if any of these help. And maybe a more experienced RMagick user will grace this thread ;)
http://www.virtualbox.org/ + http://www.archlinux.org/ is my favorite combo on Win7.
Dunno how PowerShell works, but I know that Ruby uses COMSPEC to fire
child process.
If COMSPEC is set to PowerShell, expect issues as I was checking
Ruby's source code and it doesn't consider anything beyond cmd.exe to
run these child processes.
To answer your installation issues:
http://stackoverflow.com/questions/6473853/ruby-on-rails-rmagick-on-windows-7/6477787#6477787
https://github.com/oneclick/rubyinstaller/wiki/Tutorials
http://phosphor-escence.blogspot.com/2010/10/install-rmagick-on-mingw-and-msys.html
http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/
In the stack overflow article I do mention that RMagick can't be
installed using the gem because does not work with Ruby 1.9.2
Please read the thread that is linked from there.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
It is not possible with latest gem, as I mentioned in a thread in the
list, you need to checkout the source code and build the gem and then
install from it.
Also, instead of playing with env variables on PowerShell, you could
use the extra parameters of RubyGems (after the two dashes) that did
work for me several times in the past.
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
Thank for all the help, guys. Because of you my windows dev box will live to see another day. I have found the error of my ways - I had mistakenly installed a 64bit imagemagick.Btw, Luis, the latest rmagick gem got compiled just fine with 1.9.2.