Summary
First, you need to upgrade your to the latest version of XCode and reinstall XCode client tools: xcode-select --installEven then, you may run into problems upgrading PHP:
Problems Upgrading PHP
~ $ brew upgrade
==> Upgrading 2 outdated packages, with result:
gdal 1.11.1_2, php55 5.5.19
==> Upgrading gdal
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gdal-1.11.1_2.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gdal-1.11.1_2.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/gdal/1.11.1_2: 229 files, 34M
==> Upgrading php55
==> Downloading https://www.php.net/get/php-5.5.19.tar.bz2/from/this/mirror
######################################################################## 100.0%
Error: Permission denied - /usr/local/Cellar/php55/5.5.19
~ $ brew doctor
Your system is ready to brew.
Problems Upgrading PHP
Run the following commands and you should be set...
$ sudo chmod -R g+w /Library/Caches/Homebrew
$ brew rm zlib
$ brew update && brew upgrade
$ brew install git
$ brew install openssl
$ brew install php56 --homebrew-apxs --with-apache --with-homebrew-curl --with-homebrew-openssl --with-phpdbg --with-tidy --without-snmp
References
http://lexsheehan.blogspot.com/2013/12/while-testing-new-async-infrastructure.html http://superuser.com/questions/550305/homebrew-install-problems-permission-denied-library-caches-homebrew-formula http://stackoverflow.com/questions/25149032/brew-install-php55-intl-fails-cant-install-composerShare this article
This work is licensed under the Creative Commons Attribution 3.0 Unported License.
Informative article. Helped a lot as I used it in training my students. Thank you, keep writing.
ReplyDeleteSalesforce training center in Chennai
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
ReplyDeleteRegards,
cognos Training in Chennai|Best COGNOS Training Institute in Chennai|cognos Certification
Excellent Post, I welcome your interest about to post blogs. It will help many of them to update their skills in their interesting field.
ReplyDeleteRegards,
python training chennai|Python Course in Chennai|FITA Academy Chennai|FITA Academy reviews