Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dancro's avatar

I cannot install php 8.0 back

i needed tot downgrade my php version from 8.0 to 7.2 for a project and now i cant go back, i tried with brew reinstall php and link and unlink and link etc nothing worked and now when i try to php -v i get the following error:

dyld[13450]: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.5.0.dylib Referenced from: /usr/local/Cellar/[email protected]/7.2.34_4/bin/php Reason: tried: '/usr/local/opt/openldap/lib/libldap-2.5.0.dylib' (no such file), '/usr/local/lib/libldap-2.5.0.dylib' (no such file), '/usr/lib/libldap-2.5.0.dylib' (no such file), '/usr/local/Cellar/openldap/2.6.0/lib/libldap-2.5.0.dylib' (no such file), '/usr/local/lib/libldap-2.5.0.dylib' (no such file), '/usr/lib/libldap-2.5.0.dylib' (no such file) zsh: abort php -v

0 likes
4 replies
Dancro's avatar

@Tray2 and the if i want to link php it shows me that is already link but when i use php -v it displays the same message that i put in the discussion

Tray2's avatar

@Dancro Sounds like you need to remove php7.2 completly and start over

Please or to participate in this conversation.