rmagick

RMagick installation: Can't find MagickWand.h

浪子不回头ぞ 提交于 2019-11-28 13:22:35
问题 Updating RMagick and Imagemagick is a painful expierence. I have updated the Imagemagick version on my mac (MacOS El Capitan Version 10.11.5) with homebrew for one project in Ruby 2.3 to 6.9.5-9 $ convert --version Version: ImageMagick 6.9.5-9 Q16 x86_64 2016-09-09 Now an older project in Ruby 1.8.7 refuses to work with the error message "this installation of RMagick was configured with ImageMagick 6.8.9 but ImageMagick 6.9.5-9 is in use". Thus I uninstalled "rmagick", but it can not be

Error installing Rmagick on Mac OS X

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 07:02:35
I followed the installation of RMagick for OSX: http://rmagick.rubyforge.org/install-faq.html#osx I have done the Imagemagick installation from John Maddux (solution to install ImageMagick on OSX without using MacPorts ) Here's my terminal window: Suebphatt:~ suebphattleelertphong$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] Suebphatt:~ suebphattleelertphong$ rails -v Rails 3.0.3 Suebphatt:~ suebphattleelertphong$ gem -v 1.3.7 Suebphatt:~ suebphattleelertphong$ gem install rmagick Building native extensions. This could take a while... ERROR: Error installing rmagick:

rmagick and OS X Lion

此生再无相见时 提交于 2019-11-28 05:14:58
Just upgraded (i.e. not a new install) to Lion from Leopard and my previously well-working rmagick now doesn't work anymore and gives me this error: Your Rack app raised an exception when Pow tried to run it. LoadError: dlopen(/Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib Referenced from: /Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1/lib/RMagick2.bundle Reason: image not found - /Users/rassom/.rvm/gems/ruby-1.8.7-p334/gems/rmagick-2.13.1

ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find Magick-config

你离开我真会死。 提交于 2019-11-28 03:22:42
I used a script to install ImageMagick http://github.com/masterkain/ImageMagick-sl After a while, I got ImageMagick installed. Then I ran sudo gem install rmagick and got Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. .rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes checking for gcc... yes checking for Magick-config... no Can't install RMagick 2.13.1. Can't find Magick-config in... I'm working in OSX Snow Leopard with Ruby 1.9.2 and Rails 3. Any ideas? I was getting the

Issue with installing ImageMagick and rmagick on Mountain Lion

霸气de小男生 提交于 2019-11-28 02:56:41
问题 I am facing issues with installing rmagick in mountain lion. I have installed Xcode 4.4 and developer tools. Still facing this issue. Installing rmagick (2.13.1) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks! /Users/mohit/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions':

Is it possible to get the average image color with RMagick?

早过忘川 提交于 2019-11-27 11:20:31
问题 I need to know the average color from an image when I upload it to my Ruby on Rails application. Is it possible to get the average color value in HEX or in RGB to use this color later in the view that's going to display this image? Something like: img = Magick::Image.read(path).first hexVal = img.getHexValue 回答1: Resize the image to one pixel and get its color? img = Magick::Image.read(path).first pix = img.scale(1, 1) averageColor = pix.pixel_color(0,0) 回答2: I don't think you can ask an

Mac Rmagick won't install with Xcode 4.2

淺唱寂寞╮ 提交于 2019-11-27 11:15:36
I just got a new macbook pro and trying to setup my dev environment. I downloaded xcode 4.2 from the app store and installed it, after this i installed homebrew and RVM. ImageMagick, readline, ruby 1.9.3-head all installed perfectly until i ran bundle update which tried to install rmagick. After a long long time investigating i come down to the conclusion that it can't find libgomp. The output is from gem install rmagick is: $ gem install rmagick Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /Users/dhiemstra

ERROR: Error installing rmagick: in Windows with Ruby 2.2

半世苍凉 提交于 2019-11-27 09:49:38
I cloned my code from git to my Windows machine and when I run bundle install, I am getting this error: An error occurred while installing rmagick (2.13.4), and Bundler cannot continue. Make sure that gem install rmagick -v '2.13.4' succeeds before bundling. D:\project\MyProject2>gem install rmagick -v '2.13.4' Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. D:/RailsInstaller/Ruby2.2.0/bin/ruby.exe -r ./siteconf20160721-7208-bn9t3e.rb extconf.rb checking for Ruby

Installing rmagick on Ubuntu

孤街浪徒 提交于 2019-11-27 06:05:57
I'm trying to get RMagick setup on Ubuntu 10.04. Looked here but had no joy. I even compiled and installed ImageMagick from source, but the instructions here still didn't help me when I try to install RMagick using RubyGems. I got this error: carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$ 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/ruby1.8 extconf.rb extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:1 Gem files will remain installed in

Rails and OS X: How to install rmagick?

时光总嘲笑我的痴心妄想 提交于 2019-11-27 05:28:00
问题 I am already completely desperate - I spent whole day with trying to install rmagick gem to Mac OS X Lion, but literally it's a tragedy. I saw many similar threads on Google, but nothing has helped me. I tried completely uninstall imagemagick via brew and install it again (this is working well) and then to install the rmagick , but every time when I try to install this gem, I receive this error: Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: