Can't install rmagick, pkg-config: command not found
Reinstalling pkg-config
solved the issue for me.
Unable to install Rmagick
Finally , I downgraded the version of imagemagick to make it working i.e.
brew uninstall imagemagick
brew uninstal imagemagick@6
Then, set the path for MagicWand & MagicCore.h
export PKG_CONFIG_PATH=/usr/local/Cellar/imagemagick\@6/6.9.7-6/lib/pkgconfig/
Bundle can't install RMagick gem on Mac OSX 10.7
I suggest that you use brew to manage your binary dependencies. You can easily install imageMagick with brew, like this:
brew install imagemagick
This is what I have on my system:
imagemagick 6.7.1-1
http://www.imagemagick.org
Depends on: jpeg, libtiff, little-cms, jasper
/usr/local/Cellar/imagemagick/6.7.1-1 (1389 files, 32M)
http://github.com/mxcl/homebrew/commits/master/Library/Formula/imagemagick.rb
And I have the same setup as you have in terms of machine and ruby-version.
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.
rmagick gem install Can't find Magick-config
When building native Ruby gems, sometimes you'll get an error containing "ruby extconf.rb". This is often caused by missing development libraries for the gem you're installing, or even Ruby itself.
Do you have apt
installed on your machine? If not, I'd recommend installing it, because it's a quick and easy way to get a lot of development libraries.
If you see people suggest installing "libmagick9-dev", that's an apt package that you'd install with:
$ sudo apt-get install libmagickwand-dev imagemagick
or on centOs:
$ yum install ImageMagick-devel
On Mac OS, you can use Homebrew:
$ brew install imagemagick
Related Topics
Convert String with Comma to Integer
Jruby: Import VS Include VS Java_Import VS Include_Class
Weird Rails Error "Permission Denied: Bin/Rails" for Old Rails Apps
How to Split a String into Only Two Parts, by the Last Occurrence of the Split Char
Round a Ruby Float Up or Down to the Nearest 0.05
Access Node Attributes in Chef Library
Why Is Devise Not Displaying Authentication Errors on Sign in Page
Ruby - Activerecord::Connectionnotestablished
Cannot Load Such File - Rubygems.Rb
Ruby on Rails - Differentiating Plural VS Singular Resource in a Rest API
Dynamically Define Named Classes in Ruby
Passing @Object into a Rails Partial Render
Use Sudo for Gem Install Cocoapods
Extract Fast Fourier Transform Data from File