9

PHP Homebrew 版本问题 dyld: Library not load

 2 years ago
source link: https://shockerli.net/post/php-homebrew-dyld-library-not-load/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

PHP Homebrew 版本问题 dyld: Library not load

2021-08-16 约 154 字 预计阅读 1 分钟

macOSHomebrewPHP 7.1.x

执行 php 时报错:

dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib
  Referenced from: /usr/local/opt/[email protected]/bin/php
  Reason: image not found
[1]    24650 abort      php

通过 brew 更新了其他有依赖此 Library 的软件

更新其他软件时,也一并更新了依赖,导致 PHP 依赖的软件版本不符。

比如此案例中,PHP 依赖的 openldap 版本是 2.4.2,而实际最新安装的是 2.5.6

重新安装 PHP。例:

brew reinstall shivammathur/php/[email protected]

Go 语言规范 - 编码风格(2020)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK