22 Jun Date_middle

Homebrew and installing old package versions

2 comments

Homebrew and installing old package versions

Homebrew to date has been a refreshing change to MacPorts; a lot less time consuming and a lot less problematic than previous experiences of using MacPorts.

When fixing up a Rails application to use wicked_pdf, a PDF generation Gem i started having some problems with wkhtmltopdf, the binary that generates the PDF's. A quick Google showed that there appears to be one or two issues with the 0.11.rc1 version and recommendation to downgrade to a previous version: 0.9.9.

This wasn't a process i'd had to go through before with Homebrew so i thought i'd document what worked as it's not as clear cut and intuitive as the rest of the Homebrew commands.

OS X instructions:

  1. Find out versions exist for the Forumla you are looking to install: brew versions wkhtmltopdf
  2. Copy and paste the git command for the version of the forumla you are interested in: git checkout 6e2d550 /usr/local/Library/Formula/wkhtmltopdf.rb
  3. Navigate to your local Formula folder: cd /usr/local/Library/Formula/
  4. Paste and run the git command copied from above.
  5. Uninstall the previous version of the installed package if you have one: brew uninstall wkhtmltopdf
  6. Reinstall the package using homebrew: brew install wkhtmltopdf
  7. Double check the right version of the package has been installed: wkhtmltopdf --version

Leave a comment * required

Please leave the following field blank. If you fill this in then your comment will be marked as spam and not delivered. This is a honey-pot trap for automated bots, to prevent spam.

  • Brennan

    July 20th, 2012

    This was extremely helpful. Thanks for writing this up. It actually corrected the problem with Wicked_PDF which made my night!

  • A

    July 19th, 2012

    Waheyy! This worked!

Recent posts

Browse the Shop

Coming
Soon

Official Rakkit Tee

By PANDR

Latest Tweet

Oh, no Mozilla open space in London anymore. Shame. Can anyone recommend a space in London with wifi we can work from for a couple of hours?

about about 1 year ago

via @wearepandr

Star

Want to get started?

If you already have an idea, then what are you waiting for?
Get started right away with our project planner.
Project Planner