Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2012 11:49
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/4336148 to your computer and use it in GitHub Desktop.
Save anonymous/4336148 to your computer and use it in GitHub Desktop.
How to downgrade imagemagick with brew if you have issues with rmagick gem
brew uninstall imagemagick
cd /usr/local/Cellar
git checkout 834ce4a /usr/local/Library/Formula/imagemagick.rb
brew install imagemagick
@dcastellano1
Copy link

Newbie here. How do I undo this. Now cant even reinstall imagemagick!

curl: (22) The requested URL returned error: 404
Warning: Bottle installation failed: building from source.
Error: /usr/local/opt/pkg-config not present or broken
Please reinstall pkg-config. Sorry :(

@xeraa
Copy link

xeraa commented May 10, 2013

It's a git repository, simply reset it:

cd /usr/local/Cellar
git reset --hard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment