Hombrew libpng and mpfr failed on OSX Yosemite
Two or three days ago I upgraded my OSX to the Yosemite. It’s pretty awesome (you may complain, but I will ignore). After upgrading my system, I tried to install Phalcon PHP using my Homebrew and I got a problem with libpng. I got an error like this:
You must install libpng and mpfr .... $ brew link libpng Linking /usr/local/Cellar/libpng/1.6.12... Error: No such file or directory -/usr/local/Cellar/libpng/1.6.10/include/libpng16 $ brew link mpfr Linking /usr/local/Cellar/mpfr/3.1.2-p8... Error: No such file or directory - /usr/local/Cellar/mpfr/3.1.2/share/doc/mpfr
So I’m stuck. The solution I executed is:
$ brew prune $ brew remove libpng mpfr $ sudo echo export PATH='/usr/local/sbin:$PATH' >> ~/.bash_profile $ brew install freetype $ brew prune $ brew install libpng mpfr
That’s it, after running these I was able to install Phalcon PHP via Homebrew.