hhvm / homebrew-hhvm

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

HHVM Homebrew Libzip dependency error #102

Closed ChrisRudall closed 6 years ago

ChrisRudall commented 6 years ago

Description

After installing HHVM via Homebrew, HHVM will not run due a versioning error with Libzip

Context and Logs

Parameter Value
OS X Version: 10.13.2
Homebrew Version: 1.5.3
Xcode Version: 9.2
HHVM Version: 3.24.1
Libzip version: 1.4.0

When attempting to run HHVM I get this error: ▶ hhvm 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 [1] 446 abort hhvm

Admittedly I'm not sure whether this is a problem with HHVM, Libzip (which was also recently updated) or my machine. I'd appreciate it if someone could point me in the right direction?

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

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