Mac OX 10.11 安裝XAMPP+cakePHP
- Installing XAMPP。
- Download cakePHP-3-1-2
> 将解壓後檔案夾移入Application/XAMPP/xamppfiles/htdocs/
開啟Apache,通路localtion/cakePHP3-1-2。出現錯誤提示,需安裝intl extension。
- Installing php intl extension
參考http://www.phpzce.com/blog/view/15/installing-intl-package-on-your-mac-with-xampp
Check which php path is set i.e.
If you are using xampp on your mac it should be
/Applications/XAMPP/xamppfiles/bin/php
but if its
/usr/bin/php
you need to change your OSx php
Install icu4c 1
Install Intl via PECL
root$: sudo pecl update-channels
root$: sudo pecl install intl
You can check if Intl was installed successfully
Problem with homebrew
when I
root$: brew update
, faced with following error:
Error: uninitialized constant
Formulary::HOMEBREW_CORE_FORMULA_REGEX
Please report this bug: https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:214:in
loader_for’/usr/local/Library/Homebrew/formulary.rb:174:infactory’
/usr/local/Library/Homebrew/cmd/update.rb:205:in block in
report’/usr/local/Library/Homebrew/cmd/update.rb:190:ineach_line’
/usr/local/Library/Homebrew/cmd/update.rb:190:in
report’/usr/local/Library/Homebrew/cmd/update.rb:24:inupdate’
/usr/local/Library/brew.rb:127:in
solution
root$: brew upgrade
root$: brew update
- Mac OX 1011 安裝XAMPPcakePHP
- - Installing XAMPP
- - Download cakePHP-3-1-2
- - Installing php intl extension
- Check which php path is set ie
- Install icu4c 1
- Install Intl via PECL
- You can check if Intl was installed successfully
- Problem with homebrew
- 需要安裝brew。 ↩