- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在尝试设置 Laravel 的 Valet,作为依赖项,它需要 PHP 7。当我尝试使用 Homebrew 安装 PHP 7 时,出现以下错误:
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
这是全新安装的 MacOS Sierra(实际版本,不是测试版)和全新安装的 Homebrew(已更新)。我已经安装、运行并同意 Xcode 许可协议(protocol)。
我不知道这些错误是什么意思。我该如何修复它们?
最佳答案
是的,我已经弄明白了。我在下面发布了成功安装所需组件的步骤,以防其他人偶然发现此问题:
1).确保 Homebrew 是最新的:
brew update
2).通过确保安装了 Xcode 然后在终端中键入以下内容来修复 PHP 7 错误:
brew install apr apr-util
sudo mkdir -p /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/
sudo ln -s /usr/local/opt/apr/bin/apr-1-config /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/
sudo ln -s /usr/local/opt/apr-util/bin/apu-1-config /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/local/bin/
3).运行以下命令(否则 PHP 安装会提示缺少 libz):
xcode-select --install
4).您现在可以使用 Homebrew 安装 PHP 7:
brew install homebrew/php/php70
关于php - 无法在 macOS Sierra 上使用 Homebrew 安装 PHP 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39626301/
我今天升级到 MacOS Sierra 并像往常一样去了我的仓库,但没有任何 git 命令工作,实际上我的机器无法识别我安装了 git。帮助? 我找到了 this article但似乎有点复杂。 最佳
我正在尝试通过 sshfs 永久安装卷在 mac .我已尝试按照 how-to-get-automount-and-sshfs-osxfuse-working-with-yosemite 中的说明进行
将我的开发环境从 El Capitan 迁移到 Sierra 并将 Tizen Studio 从 1.0.1 更新到 1.1.1 后,SDB CLI 在我的新机器上不再工作。我已经安装了 JDK 1.
下面的问题已经得到部分解答,请参阅下面的解决方案部分。所以我发布这个部分是为了帮助其他人,也是因为我的解决方案还没有真正解决问题。 问题 所以,问题是为什么以下技术(使用 python 的平台和套接字
我有一台运行MacOS high sierra 10.13.6的Mac,2011年初。 我的Mac无法升级到更高的MacOS版本。 我需要安装XCode 11才能利用SwiftUI。 此answer适
我正在尝试 root 一个 android 设备,为此我需要运行 ADB 和 Fastboot 命令。 问题是,fastboot 命令给出了一个错误,对我来说没有任何意义。谷歌搜索后,我发现的唯一建议
我刚刚从 Yosemite 升级到 El Capitan(并复制了从 El Capitan 升级到 Sierra 的问题),当我尝试在终端内输入例如 git status 时,出现以下错误: xcru
我刚刚从 Yosemite 升级到 El Capitan(并复制了从 El Capitan 升级到 Sierra 的问题),当我尝试在终端中输入例如 git status 时,我收到以下错误: xcr
将 macOS 从 Sierra 升级到 High Sierra 会破坏正常的 Valet 安装。 Ping 工作正常,只是浏览器上的 *.dev 给出无法连接、站点无法连接的错误。 我已经尝试了常见
我最近将 iPhone 设备中的 iOS 升级到 12.2(为我的应用程序“Match4app”提供对最新版本的支持),这似乎与 Xcode 10.1 不兼容。我应该将 Xcode 更新到 10.2
所以它看起来像新的“系统完整性保护”lockdown/usr(在其他目录中)使 pear 和 pecl 无法启动。有没有人找到禁用它的解决方法? 最佳答案 有一个更简单的方法 - 无需禁用 SIP 或
所以它看起来像新的“系统完整性保护”lockdown/usr(在其他目录中)使 pear 和 pecl 无法启动。有没有人找到禁用它的解决方法? 最佳答案 有一个更简单的方法 - 无需禁用 SIP 或
我在手机上使用Siri,并看着它随时随地创建提醒。当我在办公室时,我不想使用Siri干扰安静,因此我通常使用与Reminders应用程序集成的Alfred工作流程,或直接使用Reminders应用程序
我刚刚将 MacBook 更新为 macOS Sierra。我在 Eclipse 中遇到了这个奇怪的问题,每次我尝试使用自动完成功能(Cmd+鼠标悬停)打开任何内容时,或者即使我只是将鼠标悬停在附加了
我最近将我的工作机器更新为 macOS Sierra,现在我的虚拟主机配置都不起作用。我需要重新配置所有这些,这是一个巨大的痛苦。 我想知道 - 发生这种情况是否正常?当我更新操作系统时,有没有办法防
在 Mac 上使用 sshfs 后,我无法再看到我的用户目录。 当我打开终端窗口时,我看到以下内容: Last login: Mon May 22 10:54:30 on ttys003 mkdir:
当我将我的 mac 更新到 macOS Sierra 10.12.1 时,在真实设备上运行应用程序的时间显着增加。 “运行自定义脚本 'Embed Pods Frameworks'”和“复制 Swif
在我在 OS X 或 macOS 上的所有终端 session 中,如果我输入 who ,除了预期的用户(所有我在各种窗口中)我也总是看到 _mbsetupuser console ... 那是谁,
不幸的是,我在网上找不到有关此主题的任何最新信息。类似于这里提出的问题: OS X Yosemite Spotlight extensions ,现在可以在 macOS Sierra 上扩展 Sp
我遵循本指南: valgrind installation guide 下载软件包后,我运行了 sh 脚本,但是当我启动 make install 命令时,它无法创建该文件夹,因为它没有权限(即使我使
我是一名优秀的程序员,十分优秀!