RMagick installation: Can't find MagickWand.h
Something was severely wrong on my system, so badly that it was completely f*d up, but I was finally to able to install RMagick for Ruby 1.8.7 again after I installed
- an older version of ImageMagick with Homebrew
- a new Ruby version of 1.8.7
- a new version of GCC
The installation of a new Ruby version with RVM rvm install 1.8.7
also installed a new GCC compiler: it removed an older GCC version 4.6 and installed GCC version 4.9. Apparently GCC was not able to find the right headers despite pkg-config.
Installing RMagick gem -- Can't find MagickWand.h
Turns out the answer was in Can't install RMagick 2.13.1. Can't find MagickWand.h. after all. I had just followed the suggestion incorrectly.
C_INCLUDE_PATH=/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick gem install rmagick
This installed rmagick gem successfully.
Unfortunately, rmagic is still not working with CarrierWave :-(, but that is a different problem altogether.
Can't install RMagick 2.13.1. Can't find MagickWand.h.
I had a similar issue with running
$ gem install rmagick
First of all, do you have imagemagick installed? If you're not sure, run
$ convert --version
If you do, you probably either installed it with fink or macports (maybe homebrew?). What is happening is that rvm can't find the imagemagick directory.
After reading
https://superuser.com/questions/361435/i-have-compiled-imagemagick-on-my-centos-and-rmagick-wont-install
I exported the imagemagick path by adding
$ export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"
to my ~/.bash_profile, sourcing the new profile, then running:
gem install rmagick
It worked for me after I did this.
Rails - Can't install RMagick 2.16.0. Can't find MagickWand.h
I have had the same issue for about a month, Mark (ever since the Imagemagick 7 update). I'm using homebrew on OSX Sierra.
For future visitors to this question, you can try linking and unlinking pkgconfig (brew unlink pkgconfig && brew link pkgconfig
) or specifying the path as Mayur describes, but if those don't work you'll need to install Imagemagick 6 from source as Mark has done:
$ brew uninstall imagemagick
$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/6f014f2b7f1f9e618fd5c0ae9c93befea671f8be/Formula/imagemagick.rb
I believe the issue ultimately lies with pkgconfig, so when you see an update to pkgconfig, that should be the tipoff to try again.
Can't install RMagick 2.15.4. Can't find MagickWand.h
I had this issue a while back. You need to install imagemagick. Per the github repo for the rmagic gem
Pre-reqs:
ImageMagick Version 6.4.9 or later. You can get ImageMagick from www.imagemagick.org.
I believe you can also install it with brew
$ brew install imagemagick@6
$ brew link imagemagick@6 --force
$ gem install rmagick
Related Topics
Differencebetween Ruby's 'Open-Uri' and 'Net:Http' Gems
Rails Custom Validation Based on a Regex
Simplest Way to Send Raw Byte-Arrays Using Ruby's Tcpsocket-Class
How to Split Routes.Rb into Smaller Files
How to Serialize an Object Using Tcpserver Inside
Openshift and Net-Ssh Incompatibility? (2.9.3-Beta1 VS 2.9.2)
Ruby on Rails: How to Add a CSS File with Rails Project
How to Get Out of a "Hung" State in Irb
Splitting String into Pair of Characters in Ruby
How to Remove Non-Printable/Invisible Characters in Ruby
Does Ruby 1.9.2 Have an Is_A? Function
Delete Contents of Array Based on a Set of Indexes
Using SASS with User-Specified Colors
How to Use Same Browser Window for Automated Test Using Selenium-Webdriver (Ruby)