Zihao

Make small but daily progress

0%

dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib - homebrew php

1
2
3
4
5
$ php -v
dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
Trace/BPT trap: 5

方式一:

1
2
3
4
5
6
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

方式二:

1
brew install --build-from-source php56
  • 本文作者: Zihao Yao
  • 本文链接: https://yaozihao.com/php_library_load/
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

欢迎关注我的其它发布渠道