Westwick
Westwick

Reputation: 2487

problems with php53-mcrypt brew

While trying to install mcrypt for php53, using homebrew, I'm running into this error:

$ php -i
dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
Trace/BPT trap: 5

I've tried uninstalling/reinstalling libpng, switching to different versions of libpng, remove/reinstall php53-mcrypt, etc. I've now uninstalled both those with homebrew and it's giving the same error still. Haven't turned up any good results on google for solutions. Any ideas?

Upvotes: 0

Views: 244

Answers (1)

John Doh
John Doh

Reputation: 26

What fixed it for me was doing a brew re-install of PHP itself, so here are the steps:

brew reinstall php53

then restart apache:

apachectl stop  
apachectl start

Upvotes: 1

Related Questions