Mac 10.10 php 使用homebrew安装后出现问题

WBOY
Release: 2016-06-06 20:28:40
Original
1621 people have browsed it

安装后php无法运行错误原因是:
dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib
Referenced from: /usr/local/bin/php
Reason: Incompatible library version: php requires version 34.0.0 or later, but libpng16.16.dylib provides version 23.0.0
Trace/BPT trap: 5
不知道该怎么操作

回复内容:

安装后php无法运行错误原因是:
dyld: Library not loaded: /usr/local/lib/libpng16.16.dylib
Referenced from: /usr/local/bin/php
Reason: Incompatible library version: php requires version 34.0.0 or later, but libpng16.16.dylib provides version 23.0.0
Trace/BPT trap: 5
不知道该怎么操作

dyld 依赖出了问题了。

不兼容。PHP 要求 dyld 版本 >= 34.0.0,而你的是 23.0.0;

brew update && brew upgrade # 升级
brew reinstall php55 # 重新安装

我觉得装个虚拟机更方便,VirtualBox+Vagrant杠杠的

最近也碰到过这个问题

你尝试下这个 不知道能否解决
解决dyld: Library not loaded:

rm /usr/local/lib/libpng16.16.dylib
ln -s /usr/X11/lib/libpng15.dylib /usr/local/lib/libpng16.16.dylib

加载出错而已。

还是放弃Homebrew吧,使用Virtualbox虚拟机的方式即可。

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template