Mac yld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
问题:yld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
描述:
➜ ~ php -v
dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.8.dylib
Referenced from: /usr/local/Cellar/php56/5.6.25_1/bin/php
Reason: image not found
[1] 23896 abort php -v
➜ ~ cd /usr/local/opt/jpeg/lib/
➜ lib git:(stable) ✗ ll
total 960
-r--r--r-- 1 admin admin 203K 12 13 17:03 libjpeg.9.dylib
-r--r--r-- 1 admin admin 269K 1 17 2016 libjpeg.a
lrwxr-xr-x 1 admin admin 15B 1 17 2016 libjpeg.dylib -> libjpeg.9.dylib
解决方案:
~ wget -c http://www.ijg.org/files/jpegsrc.v8d.tar.gz
~ tar xzf jpegsrc.v8d.tar.gz
~ cd jpeg-8d
./configure
make
cp ./.libs/libjpeg.8.dylib /usr/local/opt/jpeg/lib
~ jpeg-8d php -v
PHP 5.6.25 (cli) (built: Sep 13 2016 14:42:39)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
本文链接二维码可以保存在本地:保存
http://phpersay.com/index.php?c=index&m=articleDetailInfo&id=111
分类 其他 | 浏览 (4415) | 赞 (0) | 踩 (0) | | 2017-12-14 20:08:56 |
相关文章
- Mac 终端查看外网IP
- 用古诗吵架的小两口
- Mac下brew卸载php7重新安装php7
- Mac homebrew install php7自定义参数生成libphp7.so
- Mac brew安装多个版本PHP
- Mac brew Error: Cannot tap homebrew/php: invalid syntax in tap!