Sunday, November 16, 2014

Upgrade PHP on OSX 10.10 (yosemite)

Summary

First, you need to upgrade your to the latest version of XCode and reinstall XCode client tools: xcode-select --install

Even 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-composer

Share this article



This work is licensed under the Creative Commons Attribution 3.0 Unported License.

6 comments:

  1. Great Post, Actually PHP is a beautiful source for developing a database driven web application, I love this post, thanks for spending your time for discussing about this topic.
    Regards,
    PHP Course in Chennai

    ReplyDelete
  2. Thanks for sharing this niche useful informative post to our knowledge, Actually SAP is ERP software that can be used in many companies for their day to day business activities it has great scope in future so do your SAP training in chennai
    Regards,
    SAP Course in Chennai|sap training institute in Chennai|SAP BI Training In Chennai

    ReplyDelete
  3. Well post, Thanks for sharing this to our vision. In recent day’s customer relationship play vital role to get good platform in business industry, Sales force crm tool helps you to maintain your customer relationship enhancement.
    Regards,
    Salesforce training in Chennai|Salesforce training center in Chennai|Salesforce training in velachery

    ReplyDelete
  4. Informative article. Helped a lot as I used it in training my students. Thank you, keep writing.
    Salesforce training center in Chennai

    ReplyDelete
  5. 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…
    Regards,
    cognos Training in Chennai|Best COGNOS Training Institute in Chennai|cognos Certification

    ReplyDelete
  6. Excellent Post, I welcome your interest about to post blogs. It will help many of them to update their skills in their interesting field.
    Regards,
    python training chennai|Python Course in Chennai|FITA Academy Chennai|FITA Academy reviews

    ReplyDelete