1.brew 安装 svn 报错
问题:# curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
原因:
DNS 污染,发现是 github 的一些域名的 DNS 解析被污染,导致DNS 解析过程无法通过域名取得正确的IP地址。
解决方法:
在本机的 host 文件中添加,建议使用 switchhosts 方便 host 管理
199.232.68.133 raw.githubusercontent.com
199.232.68.133 user-images.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com 添加以上几条 host 配置,解决该问题
附上原文连接连接
2. brew 安装 svn 报错 2
问题:
Error: python@3.12: the bottle needs the Apple Command Line Tools to be installed. You can install them, if desired, with: xcode-select --install
解决方法:
xcode-select --install