Skip to content

Instantly share code, notes, and snippets.

@berryp
Last active August 29, 2015 13:56
Show Gist options
  • Save berryp/9099803 to your computer and use it in GitHub Desktop.
Save berryp/9099803 to your computer and use it in GitHub Desktop.
Install libevent 1.4 with Homebrew on OS X
#!/bin/bash
# Enter the Homebrew root directory.
cd `brew --prefix`
# Clean out all previous libevent installs.
echo "Removing any existing installations..."
brew uninstall libevent
brew cleanup libevent
# Checkout the revision for 1.4.14b.
echo "Installing version 1.4.14b..."
git checkout fc30989 Library/Formula/libevent.rb
brew install libevent
# Reset to keep the brew repo clean.
echo "Cleaning up..."
git checkout HEAD Library/Formula/libevent.rb
@berryp
Copy link
Author

berryp commented Feb 19, 2014

Paste this into your terminal to run the script 1:

curl https://gist.github.com/berryp/9099803 | sh

1. Make sure you trust the source before blindly running code from a URL.

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