2017-08-07 14:21 阅读 126


after install php71 with homebrew

brew install php71

i try too see it via

php -v 

and that what it get enter image description here

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

look like i need to install jpeg 8b not 9b how i can do this

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • doujiene2845 doujiene2845 2017-08-07 16:11

    Just faced a very similar problem.

    Did this:

    1. Uninstalled PHP 7.1

      brew uninstall php71
    2. Installed From source:

      brew install --build-from-source php71

    And now when I do php -v I get:

    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

    Solution was found on this post.

    Edit: second command missed formula name

    点赞 评论 复制链接分享