duanhu7400
2016-09-21 20:46
浏览 212
已采纳

无法在macOS Sierra上安装带有Homebrew的PHP 7

I'm trying to setup Laravel's Valet which, as a dependency, requires PHP 7. When I try to install PHP 7 with Homebrew I get the following error:

Configuring SAPI modules
checking for Apache 2.0 handler-module support via DSO through APXS... 

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/sbin/apxs follows:
apxs:Error: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/apr-1-config not found!.

configure: error: Aborting

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/Homebrew/homebrew-php/issues

These open issues may also help:
php70-dbase  https://github.com/Homebrew/homebrew-php/issues/3508
php70-intl not found https://github.com/Homebrew/homebrew-php/issues/3591
php70-opcache install issue https://github.com/Homebrew/homebrew-php/issues/3586
Problem installing php70-mcrypt, php70-opcache, php70-xdebug on El Capitan https://github.com/Homebrew/homebrew-php/issues/3587
Add php70-zmq formula https://github.com/Homebrew/homebrew-php/pull/3474
Problem installing homebrew/php/php70-imagick https://github.com/Homebrew/homebrew-php/issues/3571
Install PHP70: Incompatible library version https://github.com/Homebrew/homebrew-php/issues/3444
brew install php70-redis https://github.com/Homebrew/homebrew-php/issues/2762
Allow --enable-redis-igbinary for php70-redis https://github.com/Homebrew/homebrew-php/pull/3473
Add head formula for php70-uploadprogress https://github.com/Homebrew/homebrew-php/pull/3178

This is on a fresh install of macOS Sierra (actual release, not a beta) with a fresh install of Homebrew (updated). I have installed, ran and agreed to the Xcode licensing agreement.

I have no idea what these errors mean or how to fix them. Can anyone offer any help?

Thanks.

图片转代码服务由CSDN问答提供 功能建议

我正在尝试设置Laravel的Valet,作为依赖项,需要PHP 7.当我尝试安装PHP时 7与Homebrew我收到以下错误:</ p>

 通过DSX通过APXS配置SAPI模块
检查Apache 2.0处理程序模块支持... 
 
对不起,我无法运行 APXS。 可能的原因如下:
 
1。 没有安装Perl 
2。 找不到apxs。 尝试使用--with-apxs2 = / path / to / apxs 
3传递路径。  Apache不是使用--enable-so构建的(显示apxs用法页面)
 
 / usr / sbin / apxs的输出如下:
apxs:错误:/Applications/Xcode.app/Contents/Developer/Toolchains/  OSX10.12.xctoolchain / usr / local / bin / apr-1-config not found!。
 
configure:error:Aborting 
 
READ THIS:https://git.io/brew-troubleshooting
如果报告此情况 问题请在(不是Homebrew / brew)这样做:
 https://github.com/Homebrew/homebrew-php/issues

这些公开问题也可能有所帮助:
php70-dbase https://github.com  / Homebrew / homebrew-php / issues / 3508 
php70-intl not found https://github.com/Homebrew/homebrew-php/issues/3591
php70-opcache install issue https://github.com/Homebrew/homebrew  -php / issues / 3586 
 Problem在El Capitan上安装php70-mcrypt,php70-opcache,php70-xdebug https://github.com/Homebrew/homebrew-php/issues/3587
Add php70-zmq公式https://  github.com/Homebrew/homebrew-php/pull/3474
Problem安装homebrew / php / php70-imagick https://github.com/Homebrew/homebrew-php/issues/3571
I 安装PHP70:不兼容的库版本https://github.com/Homebrew/homebrew-php/issues/3444
brew安装php70-redis https://github.com/Homebrew/homebrew-php/issues/2762
Allow-  enable-redis-igbinary for php70-redis https://github.com/Homebrew/homebrew-php/pull/3473
添加头部公式为php70-uploadprogress https://github.com/Homebrew/homebrew-php/pull/  3178 
 </ code> </ pre> 
 
 

这是全新安装的macos Sierra(实际版本,不</ strong>测试版),全新安装Homebrew(已更新) )。 我已安装,运行并同意Xcode许可协议。</ p>

我不知道这些错误是什么意思或如何解决它们。 任何人都可以提供任何帮助吗?</ p>

谢谢。</ p> </ div>

4条回答 默认 最新

相关推荐 更多相似问题