<分区>
使用 brew install php71
用 Homebrew 安装 php71 包后
我在运行 PHP 时遇到此错误:
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
运行 brew info jpeg
我得到这个输出:
jpeg: stable 9b (bottled)
Image manipulation library
http://www.ijg.org
/usr/local/Cellar/jpeg/9b (20 files, 724KB) *
Poured from bottle on 2017-08-07 at 16:11:22
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/jpeg.rb
看来我需要安装 jpeg 版本 8b 而不是 9b;我该怎么做?