用自制软件安装PHP71之后
brew install PHP71
我也试着看看它
PHP -v
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
Referenced from: /usr/local/bin/PHP
Reason: image not found
[1] 55097 abort PHP -v
看起来我需要安装jpeg 8b而不是9b我怎么能这样做
解决方法:
刚遇到一个非常相似的问题.
做过这个:
>卸载PHP 7.1
brew uninstall PHP71
>从源头安装:
brew install --build-from-source PHP71
现在,当我做PHP -v时,我得到:
PHP 7.1.7 (cli) (built: Aug 7 2017 13:05:56) ( NTS )
copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, copyright (c) 1998-2017 Zend Technologies
解决方案被发现on this post.
编辑:第二个命令错过了公式名称