skip to Main Content

Running [email protected] which requires version 2.5.0 of this lib or I get this error:

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

If I try the typical brew reinstall openldap libiconv solution, this installs 2.6.0 which PHP 7.2 won’t use.

I’ve tried brew install [email protected] but that doesn’t work.

How can I get the older version 2.5.0 back on my system?

2

Answers


  1. Install PHP 7.2 from the shivammathur/php tap:

    (First, I recommend making a copy of /usr/local/Cellar/[email protected] as a backup, in case any non-default files have been installed there.)

    brew uninstall [email protected]
    brew install shivammathur/php/[email protected]
    
    Login or Signup to reply.
  2. How can I get the older version 2.5.0 back on my system?

    @eComEvo you may want to improve the question by stating your system.

    @fn-control-option you may want to improve your answer by providing the reader with information such as "its not a system specific issue" or the like.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search