【发布时间】:2021-11-16 15:28:37
【问题描述】:
我在我的 Mac 上安装/卸载或基本上运行特定命令时遇到问题。
我一直在尝试安装 brew 库,但它失败了,我尝试执行的其他一些不属于 brew 的命令也失败了。我在 Google 上搜索了很多关于它的信息,但总有一些解决方法对于 rm 和 find 等特定命令,情况并非如此。
以下是 brew install (install.sh) 和我尝试过的库的示例(我从他们的网站下载了 install.sh,因为我也遇到了 curl install 命令的问题)
% ./install.sh
==> Checking for `sudo` access (which may request your password).
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Caskroom
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Caskroom
==> /usr/bin/sudo /bin/chmod u=rwx,g=rwx /usr/local/Cellar /usr/local/Caskroom
==> /usr/bin/sudo /usr/sbin/chown orirefael /usr/local/Cellar /usr/local/Caskroom
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Caskroom
==> /usr/bin/sudo /usr/sbin/chown -R orirefael:admin /usr/local/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Users/orirefael/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/orirefael/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R orirefael /Users/orirefael/Library/Caches/Homebrew
==> Downloading and installing Homebrew...
HEAD is now at 1f0ed9ddf Merge pull request #12106 from Bo98/style-parser-warning
/usr/local/bin/brew: line 134: /usr/bin/env: Argument list too long
/usr/local/bin/brew: line 134: /usr/bin/env: Undefined error: 0
Failed during: /usr/local/bin/brew update --force --quiet
以及库安装问题:
% brew install pod
/usr/local/bin/brew: line 134: /usr/bin/env: Argument list too long
/usr/local/bin/brew: line 134: /usr/bin/env: Undefined error: 0
ulimit 返回unlimited
ulimit -n 返回256
ulimit -n 500000 返回ulimit: setrlimit failed: invalid argument
ulimit -s 返回16384
【问题讨论】:
-
根据消息“Failed during: /usr/local/bin/brew update --force --quiet”,运行
brew命令时发生错误。这看起来不是 编程 问题,所以它在 Stack Overflow 上是题外话。 -
Stackoverflow 不直接用于编程,因为它涵盖了任何与编码员/程序员相关的问题。 pod 是为程序员设计的,专门针对我的用例,开发一个混合应用程序。如果您对这个问题感到不舒服,或者您缺乏帮助的知识,请允许其他人。
-
您确定您的问题是针对 pod 的特定吗?对我来说,你似乎可以运行
brew install xxx,你会得到同样的错误信息。比如that bugreport for brew。
标签: linux macos linux-kernel macos-catalina