dongren1977 2017-08-07 14:21
浏览 162

brew需要php的错误

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 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

    评论

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试