php - php dyld:未为 libldap 加载库
问题描述
我在我的电脑上安装了 ruby,Mac OSX High Sierra
但由于某种原因,我的 php 安装现在遇到了问题。我在php 7.1
。
brew update && brew reinstall php71
在安装时,它打破了
==> Pouring php@7.1-7.1.23.high_sierra.bottle.tar.gz
==> /usr/local/Cellar/php@7.1/7.1.23/bin/pear config-set php_ini /usr/local/etc/php/7.1/php.ini system
有错误:
dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib
Referenced from: /usr/local/Cellar/php@7.1/7.1.23/bin/php
Reason: image not found
Warning: The post-install step did not complete successfully
You can try again using `brew postinstall php@7.1`
在php
终端中输入会引发相同的错误。
我尝试过的其他事情:
- 我想也许它没有链接,所以我也尝试了:
brew unlink libldap && brew link libldap
- 但libldap
Homebrew 不支持 - 然后在这里,虽然与 postgres 无关,但它确实讨论了问题
libldap
并说要通过brew install openldap
(我猜libldap
被称为openldap
Homebrew)安装 - 这安装得很好,但没有解决问题
我怎样才能解决这个问题?
解决方案
推荐阅读
- xero-api - 我正在将 Xero 集成到我的 c# 项目中,每次用户单击连接时如何显示连接屏幕?
- visual-studio - 我如何在 Visual Studio 2019 中修复 CS0119
- python - python中的for循环忽略了if语句
- reactjs - 使用 SVG 的 React Icon 组件
- mysql - 连接两个表带来不匹配的值MYSQL
- html - 是什么导致我的动画在第一次播放后失败?
- c++ - 任何人都可以使用位掩码向我解释这种蛮力吗
- javascript - 如何为单个请求多次发送数据
- xcode - Swift XCode macOS NSTextField - 启用快捷方式复制/粘贴没有菜单
- javascript - 在Javascript中的嵌套对象中输入零值