文章出處
文章列表
brew install homebrew/php/php56 --with-apache
報錯:
checking if the location of ZLIB install directory is defined... no
configure: error: Cannot find libz
解決:
xcode-select --install 五分鐘之后ok
ok
note:
mac自帶了一個版本的PHP, 自帶的Apache關聯了PHP,可以跑通,但是brew不能安裝這個自帶版本的PHP擴展
當brew install someextension 的時候,它會自動的安裝一個版本的PHP,所有就把Apache關聯到這個新安裝的PHP版本上
文章列表
全站熱搜