-
Download the Command Line Tools (OS X Mavericks) from https://developer.apple.com/downloads
-
From the Terminal:
sudo xcode-select --reset sudo xcode-select --switch /Library/Develop/CommandLineTools
-
Install openssl with homebrew:
brew remove openssl brew install openssl
-
Reinstall rbenv and ruby-build
brew remove --force ruby-build brew remove --force rbenv brew install rbenv ruby-build if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
-
Install the latest ruby with rbenv and use the openssl installed above:
CONFIGURE_OPTS="--with-openssl-dir=
brew --prefix openssl
--without-tcl --without-tk" rbenv install 2.0.0-p451 rbenv rehash -
Reload a bunch of brew packages
function reload_brew() { local pkg=${1} brew unlink ${pkg} && brew remove ${pkg} && brew install ${pkg} }
Do either of the following:
# The somewhat manual method:
for p in ffmpeg x264 libvorbis lame faac libffi libtiff libogg libyaml; do reload_brew ${p} done
OR
Reload all pkgs installed in brew:
pkgs=
brew list
for p in${pkgs}; do reload_brew $ {p} done
Created
February 28, 2014 23:02
-
-
Save nbrew/9281834 to your computer and use it in GitHub Desktop.
Reload all installed homebrew formulas. (I found this useful after updating from OS X 10.8.x to 10.9.)
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 | |
# the unlink then remove probably isn't necessary but it's what I ran | |
function reload_brew() { | |
local pkg=${1} | |
brew unlink ${pkg} && brew remove ${pkg} && brew install ${pkg} | |
} | |
pkgs=`brew list` | |
for p in ${pkgs}; do | |
reload_brew ${p} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment