b-u7ug
Last Updated: March 02, 2016
·
2.371K
· parndt

Install RMagick 2.12.2 on Yosemite

Basically, we're going to fake 2.13.2 as 2.12.2 because often it will refuse to build.

Steps:

git clone https://github.com/rmagick/rmagick
cd rmagick
diff --git a/rmagick.gemspec b/rmagick.gemspec
index 3ae86bb..38fbc20 100644
--- a/rmagick.gemspec
+++ b/rmagick.gemspec
@@ -1,7 +1,7 @@
 require 'date'
 Gem::Specification.new do |s|
   s.name = %q{rmagick}
-  s.version = "2.13.2"
+  s.version = "2.12.2"
   s.date = Date.today.to_s
   s.summary = %q{Ruby binding to ImageMagick}
   s.description = %q{RMagick is an interface between Ruby and ImageMagick.}
gem build rmagick.gemspec
gem install rmagick-2.12.2.gem -l

Note: current development for rmagick is happening at https://github.com/gemhome/rmagick but this trick was last tested against version 2.13.2 from https://github.com/rmagick/rmagick

Thanks to @vassilevsky for pointing this out.

7 Responses
Add your response

17292

rmagick has been adopted by new maintainers. The current repository is:

https://github.com/gemhome/rmagick

Any contributions are very welcome :D

over 1 year ago ·
17293

Also, rmagick 2.13.3 installs on Yosemite without problems :)

over 1 year ago ·
17296

@vassilevsky ah - thank you! And yes, later versions install on Yosemite fine, but when your application/server environment require you to use the earlier version this is the only way that I've found to make that happen.

over 1 year ago ·
17391

This is great! So simple :)

I couldn't install rmagick 2.13.1 which is depended on by a project I'm working on. I had actually updated the version in Gemfile.lock and figured I would stash the lock file and not commit it. But this is so much better. Now my Gemfile.lock is the same as on the servers and I don't have to worry about accidentally commit the Gemfile.lock.

Thanks! :)

over 1 year ago ·
17476

I take it back

over 1 year ago ·
17837

I don't understand the steps after cd rmagick. What the second box code mean? Should I run that in terminal or is it a file inside rmagick folder that I should edit?? Please elaborate.

over 1 year ago ·
18270

Hah, this is a great hack. Thanks for saving me a lot of headaches!

over 1 year ago ·