推荐 最新
Mia好纠结

如何让 brew 安装软件之前不要 update?

╰─➤ brew install stress 127 ↵ Running `brew update --auto-update`... 装啥都会先自动 update,就很烦,因为太慢了,等半天。如何让 brew 安装软件之前不要 update? *** "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250109/c15baf0d9a01113dd795a4b6a941d172.png) 按照 chatGPT 的建议,添加 "--no-update" 没用 ╰─➤ brew install --no-update stress Running `brew update --auto-update`...

17
1
0
浏览量211
米斯达

brew 一直没有更新内容怎么办?

最近一个月,使用 brew 一直更新不到内容 ╰─➤ brew upgrade Running `brew update --auto-update`... 上面的就是全部输出了,看起来是没有什么需要更新。但是 brew 更新一直很激进的 比如我现在的 python3.11 还是 4 版本,但是python 官方都已经发布 python3.11.5 了 按照 brew 的尿性,可能已经要给我更新 python3.11.5 了 ╭─ponponon@MBP13ARM ~/Desktop ╰─➤ where python3.11 /opt/homebrew/bin/python3.11 ╭─ponponon@MBP13ARM ~/Desktop ╰─➤ python3.11 --version Python 3.11.4 *** 我用的是中科大的镜像,是中科大的镜像不更新了吗? ─➤ brew config HOMEBREW_VERSION: 3.6.20 ORIGIN: https://mirrors.ustc.edu.cn/brew.git HEAD: 344d32bf7f40183359592ef81ca6486e0587981b Last commit: 8 months ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 6b4073f6a9f41c5c1fc3261965244d5571add5b5 Core tap last commit: 9 minutes ago Core tap branch: master HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 8 Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: octa-core 64-bit arm_firestorm_icestorm Clang: 14.0.3 build 1403 Git: 2.41.0 => /opt/homebrew/bin/git Curl: 8.1.2 => /usr/bin/curl macOS: 13.5.2-arm64 CLT: 14.3.1.0.1.1683849156 Xcode: N/A Rosetta 2: false 我该如何排查? *** 先update ,然后upgrade ─➤ brew update && brew upgrade fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Recv failure: Operation timed out Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core failed! ==> Homebrew collects anonymous analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics have been recorded yet (nor will be during this `brew` run). Installing from the API is now the default behaviour! You can save space and time by running: brew untap homebrew/core brew untap homebrew/cask ==> Downloading https://formulae.brew.sh/api/formula.jws.json #=#=- # # #=O#- # # -#O=- # # # ######################################################################################################################################################################################################################################################### 100.0% ==> Downloading https://formulae.brew.sh/api/cask.jws.json ######################################################################################################################################################################################################################################################### 100.0% Updated 1 tap (homebrew/services). No changes to formulae or casks. 查看 python3.11 版本,还是没有更新 ╰─➤ python3.11 --version 1 ↵ Python 3.11.4

16
1
0
浏览量269
萌蒙萌

macos Sonoma 不能使用brew, 请问你们是怎么安装软件的?

请问你们是通过什么命令安装macos软件? macos Sonoma 不能使用brew, 请问你们是怎么安装软件的?

12
1
0
浏览量358
世界唯一的

homebrew安装httpd无法顺利启动?

之前首次安装httpd后就成功启动了,时隔几个月想打开本地的wordpress,发现localhost无法打开,甚至连localhost/index.html也是无法打开 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240916/58691076580b052dcddd67975557ddb0.png) 我觉得apache坏了,于是用homebrew重装,但始终无法顺利启动,哪位大佬看看问题出在哪里? 在mac中用homebrew装了httpd来启动apache,安装结果如图,没问题 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240916/6508cec9c738c018b690d7b8fc58f2d0.png) 但启动失败,如图 报错编号有6和256 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240916/0d0808c999445a1b619dec59d89d03b3.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240916/a7fcabf79827a8da37be9d21a8ff0526.png) plist文件如图 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240916/cff91a2e3af2fc36a81cd0099e0e0458.png) 用which httpd查看该程序路径,发现也是用的homebrew下的httpd "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240916/60ac7940f1fc74a6ab35bee7855355df.png) 问题究竟在哪里呢? 补充 执行brew services restart httpd命令,如图 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240916/81856dc661b5223d21c05e6c2af1f853.png) 更新解决办法 我把所有有关homebrew的文件和文件夹全删了,接着用"https://zhuanlan.zhihu.com/p/547898033" (https://link.segmentfault.com/?enc=BDvYLdCy7UzRzRgwBbEHFw%3D%3D.UZ5k9Olhrntc5HotrEou2osVGaiJRZsyEuV1X%2BCbU3zD5iX3Yt4RMzUZHIlHYA65)提供的安装脚本重新安装,然后就一切正常了...怀疑之前是网络原因,包没下载完整.导致各种诡异的报错

0
1
0
浏览量162