【问题标题】:moving files after brew doctor advise - rubybrew医生建议后移动文件-红宝石
【发布时间】:2025-12-16 03:00:01
【问题描述】:

运行brew doctor 时,我收到此消息

Warning: You have a non-Homebrew 'pkg-config' in your PATH:
  /opt/local/bin/pkg-config

`./configure` may have problems finding brew-installed packages using
this other pkg-config.

我可以安全地移动/opt/local/bin/pkg-config 文件吗?

【问题讨论】:

    标签: ruby-on-rails ruby path homebrew


    【解决方案1】:

    /opt/local 不被主系统使用,而是被 MacPorts 使用。如果您想迁移到 brew,删除 pkg-config 并从 brew 安装它是最明智的做法。

    【讨论】:

    • 我认为brew 使用过/usr/local 否?