当我跑啤酒医生时,我会发出大量警告.所以我继续,清理现有的安装并从头开始.
现在我仍然收到一些警告:
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/opt/sm/pkg/active/bin/curl-config
/opt/sm/pkg/active/bin/ncurses5-config
/opt/sm/pkg/active/bin/ncursesw5-config
/opt/sm/pkg/active/bin/pkg-config
/opt/sm/pkg/active/bin/xml2-config
/opt/sm/pkg/active/bin/xslt-config
Warning: You have a non-Homebrew 'pkg-config' in your PATH:
/opt/sm/pkg/active/bin/pkg-config
`./configure` may have problems finding brew-installed packages using
this other pkg-config.
Run Code Online (Sandbox Code Playgroud)
但是因为我几天前才开始使用OS X,我不确定所提到的配置文件是否相关或者我是否可以删除它们?已经通过论坛查看了几个小时,但目前仍然没有更聪明...任何建议都非常感谢!
Pat*_*wis 11
尝试取消/opt/sm/pkg/active/bin/你的PATH.
这将防止安装在该目录中的脚本意外地优先于homebrew安装的脚本.
小智 5
如果你是一个像我一样的新手,想要一个更清楚的答案,确切地知道如何做到这一点,我在这里找到了这个答案如何改变自制程序的路径:"config"脚本存在于你的系统或Homebrew目录之外,它对我有用:
/ opt/sm位于/etc/profile.d目录中.输入即可打开
cd /etc/profile.d在终端然后
打开.
在文本编辑器中打开sm.sh文件,然后通过在前面放置一个井号#来注释掉路径
PATH = "$ {PATH}中:/ opt/SM /箱中:/ opt/SM /包装/活动/箱中:/ opt/SM /包装/活动/ sbin目录"
在文本编辑器中保存更改,然后退出并重新启动终端.运行brew医生'警告'应该消失.
| 归档时间: |
|
| 查看次数: |
8023 次 |
| 最近记录: |