hhvm / homebrew-hhvm

Official Mac OS X Homebrew formula for HHVM
MIT License
81 stars 22 forks source link

Homebrew upgrade - Breaks HHVM #103

Closed everton-rosario closed 6 years ago

everton-rosario commented 6 years ago

Description

After Mac OS update to High Sierra, the Homebrew needed to be upgraded. With the new version, HHVM stoped working with this error:

> hhvm -v
dyld: Library not loaded: /usr/local/opt/libzip/lib/libzip.5.dylib
Referenced from: /usr/local/bin/hhvm
Reason: Incompatible library version: hhvm requires version 6.0.0 or later, but libzip.5.dylib provides version 5.0.0
Abort trap: 6

Context and Logs

Parameter Value
OS X Version: 10.13.3 (17D47)
Homebrew Version: 1.5.3
Xcode Version: 9.0.1 (9A1004)

Output of clang -v:

Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
InstalledDir: /Applications/Xcode_9.0.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
everton-rosario commented 6 years ago

cc. @fredemmott

ChrisRudall commented 6 years ago

Same as #102

diegoquinteiro commented 6 years ago

A workaround for now is to force downgrade libzip to 1.3.0:

brew uninstall --ignore-dependencies libzip
cd $(brew --repository)/Library/Taps/homebrew/homebrew-core
git checkout b6d3796 -- Formula/libzip.rb
HOMEBREW_NO_AUTO_UPDATE=1 brew install libzip
fredemmott commented 6 years ago

Closing for #102

I don't recommend that workaround: it's likely to break stuff, including future HHVM updates (like 3.24..2 later today).