Brew Necessary error with php

after installing php71 with homebrew

brew install php71

      

I also see him through

php -v 

      

and what does he 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

      

It looks like I need to install jpeg 8b and not 9b, how can I do this

+3


source to share


1 answer


Just ran into a very similar problem.

Did this:

  • Remote PHP 7.1

    brew uninstall php71
  • 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

      

The solution is found in this post .

Edit: middle name of a missing command formula

+5


source







All Articles