篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 使用自制软件将Mac Os X的php版本更新为php 7.1。包括curl和mcrypt相关的知识,希望对你有一定的参考价值。
# 1. Install brew --> http://brew.sh/
# 2. run the following commands in your Terminal
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew install --with-openssl curl
brew install --with-homebrew-curl --with-apache php71
brew install php71-mcrypt php71-imagick
# 3. Follow these instructions to make Apache and php-cli use the newer php executable and make the change persist after reboot.
brew info php71
# restart apache
sudo apachectl restart
# apply PATH changes without relogging
source ~/.profile
以上是关于sh 使用自制软件将Mac Os X的php版本更新为php 7.1。包括curl和mcrypt的主要内容,如果未能解决你的问题,请参考以下文章