gem install rmagick fails on OS X El Capitan
Fixed it.
The magic command to run is this:
xcode-select --install
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. 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
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. Unable to install ImageMagick on Mac OS X El Capitan
After uninstalling brew and installing brew again this work fine thanks.
here is the command to install brew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Issue with installing ImageMagick and rmagick on Mountain Lion
I just updated to Mountain Lion this morning and had rmagick troubles. I had installed ImageMagick through homebrew at some point in the past, so this worked for me after installing the new commandline tools through xcode's preferences window.
brew update
brew uninstall ImageMagick
brew install ImageMagick
gem uninstall rmagick
gem install rmagick
I didn't have to get funky with gcc like some above posts mentioned. 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.
gem install json issue with Mac OS X 10.11
I should have used the latest ruby (2.2.3) not the old one (2.2.1)
ruby-rails-sample> rvm --default use 2.2.3
Using /Users/smcho/.rvm/gems/ruby-2.2.3
smcho@macho ruby-rails-sample> gem install json
Building native extensions. This could take a while...
Successfully installed json-1.8.3
Parsing documentation for json-1.8.3
Installing ri documentation for json-1.8.3
Done installing documentation for json after 1 seconds
1 gem installed
Related Topics
How to Get Nokogiri to Parse and Return an Xml Document
How to Silence The Call to a Rails Controller's Action All Together
Rails How to Create Data Schema Seed Data
How to Make Http Delete Request in My Ruby Code Using Net::Http
Prawn Doesn't Seem to Push Layout Down When Using Repeat(:All)
How to Use (Ruby) Rgeo to Transform (Unproject) Coordinates
Many to Many Table with an Extra Column in Rails
How to Include Actionmailer Class in Rake Task
Foreign Key (Class_Id) Not Populating in Belongs_To Association
Puma and Nginx 502 Bad Gateway Error (Ubuntu Server 14.04)
What Is 'stringify_Keys' in Rails and How to Solve It When This Error Comes
Dbi::Interfaceerror: Could Not Load Driver (Uninitialized Constant MySQL error)
When Is a Block or Object That Is Passed to Hash.New Created or Run
Error Generating Source Map - Grunt and SASS Configuration
Calling Module Method into Another Module in Ruby
Starting with Redmine Locally - How Easy Is Migration to Server Later