码迷,mamicode.com
首页 > Web开发 > 详细

Mac OS X 10.10 Yosemite PHP 5.5.14 free type support fix

时间:2014-11-25 07:06:04      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:blog   http   ar   os   sp   on   div   2014   art   

通过将php将至5.4来勉强支持freetype扩展,不推荐此方法

after upgrading to new Mac OS X Yosemite, i noticed that free type support is not working with php 5.5, so i had to downgrade to php 5.4 using homebrew

first install Xcode Command line Tool

xcode-select --install

then install Homebrew

then run the following commands

brew update
brew install homebrew/php/php54

then add the following to your ~/.bashrc

export PATH="$(brew --prefix homebrew/php/php54)/bin:$PATH"

then edit apache config /etc/apache2/httpd.conf

LoadModule php5_module /usr/local/opt/php54/libexec/apache2/libphp5.so

and comment the following ling

#LoadModule php5_module libexec/apache2/libphp5.so

restart apache

sudo apachectl restart
来源: 
http://dev3k.com/blog/2014/10/mac-os-x-10-10-yosemite-php-5-5-14-free-type-support-fix/

Mac OS X 10.10 Yosemite PHP 5.5.14 free type support fix

标签:blog   http   ar   os   sp   on   div   2014   art   

原文地址:http://www.cnblogs.com/walter371/p/4120065.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!