dyld: Library not loaded: /usr/local/opt/openldap/lib/liblber.2.dylib ``` //mac安装多版本后 执行下列代码查看PHP查看版本号 /usr/local/Cellar/php@7.1/7.1.33_4/bin/php -v //报错如下: ![](https://www.jiateng.wang/uploads/images/editor/202202/1645592205.png) ``` 查看下列报错地址下 其实是存在liblber的 只不过版本不对 ![](https://www.jiateng.wang/uploads/images/editor/202202/1645592353.png) 文件存在就简单了 直接简单粗暴一个软连接就搞定了 代码如下: ``` ln -s /usr/local/opt/openldap/lib/liblber-2.5.0.dylib /usr/local/opt/openldap/lib/liblber.2.dylib ``` 然后再次查看 就OK了 效果如图: ``` ln -s /usr/local/opt/openldap/lib/liblber-2.5.0.dylib /usr/local/opt/openldap/lib/liblber.2.dylib ```
《dyld: Library not loaded: /usr/local/opt/openldap/lib/liblber.2.dylib》上暂无评论!