Last active
August 29, 2015 13:56
-
-
Save berryp/9099803 to your computer and use it in GitHub Desktop.
Install libevent 1.4 with Homebrew on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.