brew php55,brew install php55 报错 BZip2 not found解决办法

max os x安装 php,使用brew 安装,一直提示

checking for gzgets in -lz... yes

checking whether to enable bc style precision math functions... yes

checking for BZip2 support... yes

checking for BZip2 in default path... not found

configure: error: Please reinstall the BZip2 distribution

READ THIS: https://git.io/brew-troubleshooting

If reporting this issue please do so at (not Homebrew/homebrew):

https://github.com/josegonzalez/homebrew-php/issues 解决办法,换安装 php56 版本。

checking for gzgets in -lz... yes

checking whether to enable bc style precision math functions... yes

checking for BZip2 support... yes

checking for BZip2 in default path... not found

configure: error: Please reinstall the BZip2 distribution

READ THIS: https://git.io/brew-troubleshooting

If reporting this issue please do so at (not Homebrew/homebrew):

https://github.com/josegonzalez/homebrew-php/issues 安装后,php5.so 位于

LoadModule php5_module /usr/local/Cellar/php56/5.6.9/libexec/apache2/libphp5.so

重启启动 ,sudo apachectl restart (可以解决yii2 安装提示缺少freetype 的问题)

bogon:basic ksoul$ php -v

PHP 5.6.9 (cli) (built: May 15 2015 09:36:14)

Copyright (c) 1997-2015 The PHP Group

Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

bogon:basic ksoul$ php --ini

Configuration File (php.ini) Path: /usr/local/etc/php/5.6

Loaded Configuration File:         /usr/local/etc/php/5.6/php.ini

Scan for additional .ini files in: /usr/local/etc/php/5.6/conf.d

Additional .ini files parsed:      /usr/local/etc/php/5.6/conf.d/ext-apcu.ini,

/usr/local/etc/php/5.6/conf.d/ext-igbinary.ini,

/usr/local/etc/php/5.6/conf.d/ext-imagick.ini,

/usr/local/etc/php/5.6/conf.d/ext-intl.ini,

/usr/local/etc/php/5.6/conf.d/ext-memcached.ini,

/usr/local/etc/php/5.6/conf.d/ext-pdo_dblib.ini,

/usr/local/etc/php/5.6/conf.d/ext-pdo_pgsql.ini

bogon:basic ksoul$

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值