用自制软件安装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.
编辑:第二个命令错过了公式名称