Skip to content

Commit

Permalink
Link openssl formalue to /usr/local
Browse files Browse the repository at this point in the history
To let other software to find keg-only openssl headers we link them
to /usr/local

Without that gems like eventmachine will not build at all.
eventmachine/eventmachine#602 (comment)
  • Loading branch information
timurvafin committed Nov 16, 2015
1 parent beb0c88 commit eb99547
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ brew "z"
brew "ssh-copy-id"
brew "heroku-toolbelt"
brew "tmux"
brew "openssl"

# Essential Mac applications
tap "caskroom/cask"
Expand Down
4 changes: 4 additions & 0 deletions modules/brew.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ info_echo "Install Brew formalue"
brew tap "Homebrew/bundle" 2> /dev/null
brew bundle --file="$osx_bootstrap/Brewfile"

info_echo "Link keg-only openssl to /usr/local to let software outside of Homebrew to find it"
info_echo "https://github.com/eventmachine/eventmachine/issues/602#issuecomment-152184551"
brew link openssl --force

info_echo "Remove outdated versions from the cellar"
brew cleanup

Expand Down
2 changes: 1 addition & 1 deletion modules/functions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version() {

catch_exit() {
ret=$?
test $ret -ne 0 && error_echo "\n\nInstallation fails" >&2
test $ret -ne 0 && error_echo "Installation fails" >&2
exit $ret
}

Expand Down

0 comments on commit eb99547

Please sign in to comment.