当前位置: 首页 > news >正文

MAC macport上安装软件的流水账1 [特殊字符]

流水账,自从用了mac 安装软件成了难题,不是homebrew就是> > macport 关键是这俩的源都要修正成国内源,国内源又不是什么包> 都有,每次换来换去 着实不好用。

喏!又来个wget安装前的问题port更新出错。

mac 上通过docker compose up -d,安装milvus。 先下载wget 、更新macport 报错:错误日志:

(base) ➜ milvus-standalone sudo port -v selfupdat Password: Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'. ---> Checking for newer releases of MacPorts % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 63 100 63 0 0 273 0 --:--:-- --:--:-- --:--:-- 273 MacPorts base version 2.12.5 installed, MacPorts base version 2.12.5 available. ---> MacPorts base is already the latest version ---> Updating the ports tree Synchronizing local ports tree from rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ +==================================================+ | Tsinghua University | | -= Open Source Mirror Site =- | +--------------------------------------------------+ | Welcome to Tsinghua Open Source Mirror Site. | | | | This mirror is also available on HTTP. | | HTTP [https://mirrors.tuna.tsinghua.edu.cn] | | RSYNC [rsync://mirrors.tuna.tsinghua.edu.cn] | | | | If you have any issues, please contact us | | via GitHub @ https://github.com/tuna/issues | | or IRC at #tuna on freenode | | or Fishroom at https://fishroom.tuna.moe/ | | | | Supported by | | Tsinghua Information Technology Center | | Maintained by | | Tsinghua University TUNA Association | | Service Provided by | | bravo | | This storage server is sponsored by | | Huawei Inc. | | | | TUNA acknowledges the contribution from Huawei | | to open source software and communities | | | +==================================================+ receiving file list ... rsync: [sender] change_dir "/release/ports" (in macports) failed: No such file or directory (2) done sent 21 bytes received 9 bytes 60.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(1404) [receiver=2.6.9] Command failed: /usr/bin/rsync -rtzvl --delete-after '--exclude=/PortIndex*' rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ /opt/local/var/macports/sources/mirrors.tuna.tsinghua.edu.cn/macports/release Exit code: 23 Error: Synchronization of the local ports tree failed doing rsync Error: Couldn't sync the ports tree: Synchronization of 1 source failed Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug. Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source failed (base) ➜ milvus-standalone

解析:

根据你提供的报错信息,问题出在 MacPorts 的清华源同步配置上。 问题原因 你的 MacPorts 配置尝试从 rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ 同步 ports tree,但该路径在服务器上不存在,导致 rsync 报错 change_dir ... failed: No such file or directory (2)。 解决方案 你需要将 MacPorts 的源配置文件 sources.conf 中的 rsync 地址修改为正确的路径。 打开配置文件 在终端中执行以下命令,使用文本编辑器打开 sources.conf 文件: sudo nano /opt/local/etc/macports/sources.conf 修改 rsync 地址 在文件中找到以 rsync:// 开头的行,它可能看起来像这样: rsync://mirrors.tuna.tsinghua.edu.cn/macports/release/ports/ [default] 请将其修改为以下正确的地址: rsync://mirrors.tuna.tsinghua.edu.cn/macports/macports-ports/ [default] 注意: 主要是将路径中的 release/ports/ 修改为 macports-ports/。 保存并退出 如果你使用的是 nano 编辑器,按 Control + O 保存,然后按 Enter 确认。 接着按 Control + X 退出编辑器。 再次尝试更新 修改完成后,再次运行更新命令: sudo port -v selfupdate 这次应该可以成功同步 ports tree 了。 当前文件过长, 我已阅读部分内容
http://www.jsqmd.com/news/1115978/

相关文章:

  • LTC6904与TM4C1294实现高精度方波脉冲生成方案
  • AI工程水位线周度观测:5个重塑落地实践的技术信号
  • SPI EEPROM与MCU硬件协同设计与优化实践
  • ai工具使用笔记-持续更新
  • 如何用Python自动化工具2分钟完成U校园网课必修题
  • 智能教材获取革命:tchMaterial-parser 让教育资源触手可及
  • AI辅助越多,视频修改时间反而更长?
  • nginx性能优化新方案:借助oeAware-manager实现11%吞吐量提升
  • iSulad Rust扩展与containerd集成:实现跨容器运行时兼容性的完整指南
  • BepInEx游戏模组框架:5分钟快速安装与终极配置指南
  • openeuler/agentic-engineering-team:重新定义AI协作开发!一站式提升软件全生命周期效率
  • 龙门剪刀片选购指南:可靠厂商这样选!
  • SPI接口EEPROM与PIC微控制器的优化应用
  • PilotGo-plugins配置管理插件实战:实现集群配置统一管理的完整指南
  • ICM-42688-P与STM32F410RB在工业自动化中的高精度应用
  • C/C++哈希表与字符串进阶面试题
  • 我国成功发射海洋二号E卫星,顺利进入预定轨道
  • Python计算常用统计量化
  • STC3115电池监控芯片与PIC18F45K80 MCU的精准电池管理系统设计
  • YOLOv11涨点实战:TGRS 2026 DBDM动态下采样模块,遥感小目标检测有效涨点
  • Kiran-panel与Wayland协议集成:现代桌面环境的终极兼容性解决方案
  • 2026免费Word转图片在线工具指南:无需注册无水印转换实操教程
  • 4-20mA电流环原理与工业自动化应用
  • Microsoft Agent Framework - 顺序执行 Workflow
  • 国产开源图片大模型选型指南:DiT架构、许可证合规与本地化部署实战
  • TC78H653FTG与PIC18F4553直流电机驱动方案解析
  • 2026年玻璃转子流量计亲测排行分享
  • utshell在企业环境中的应用:部署、维护与最佳实践
  • Kiran-panel内存管理优化:如何避免内存泄漏并提升系统稳定性
  • AI 编程越用越返工?因为你让 AI 自己批改自己的作业