我试图在我的Macbook上安装hack和hhvm。我遵循了其官方文件上的指示。我用自制软件安装hhvm。然而,当我尝试运行我的第一个黑客程序时,我得到了以下错误:
hhvm hello.hack
dyld[56813]: Library not loaded: /usr/local/opt/boost/lib/libboost_fiber-mt.dylib
Referenced from: /usr/local/Cellar/hhvm-4.149/4.149.0/bin/hhvm
Reason: tried: '/usr/local/opt/boost/lib/libboost_fiber-mt.dylib' (no such file), '/usr/local/lib/libboost_fiber-mt.dylib' (no such file), '/usr/lib/libboost_fiber-mt.dylib' (no such file), '/usr/local/Cellar/boost/1.78.0/lib/libboost_fiber-mt.dylib' (no such file), '/usr/local/lib/libboost_fiber-mt.dylib' (no such file), '/usr/lib/libboost_fiber-mt.dylib' (no such file)
zsh: abort hhvm hello.hack
它与自制程序更新hhvm所依赖的库有关。我建议在docker 中运行hhvm
https://docs.hhvm.com/hhvm/installation/docker
php也遇到了这些问题dyld:未加载库:/usr/local/lib/libpng16.16.dylib和任何与php相关的
你可以尝试上面链接中的一些步骤,但docker可能是你最好的选择