WP Cli commands do not work, getting error message

I open a site shell in Local by right-clicking on the site name.

I get the following output:

Setting Local environment variables…

WP-CLI: WP-CLI 2.5.0
Composer: 2.1.5 2021-07-23
PHP: 7.3.5
MySQL: mysql Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)

Launching shell: /bin/zsh …

I then try:
wp --version

But I get the error message:

dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib
Referenced from: /usr/local/bin/php
Reason: image not found

I’m on a Mac, Big Sur, latest Local

Can someone help me fix this?

Thanks so much.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.