gpt4 book ai didi

ruby - 如何修改 Homebrew 的 PATH?

转载 作者:数据小太阳 更新时间:2023-10-29 06:17:02 25 4
gpt4 key购买 nike

尝试安装 ruby​​ 1.9.3,读到我需要先安装 homebrew。运行 brew doctor,它给了我很多警告。其中之一是:

Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both paths:

easy_install
easy_install-2.6

Consider amending your PATH so that /usr/local/bin is ahead of /usr/bin in your PATH.

如何按照这里的要求进行操作?

最佳答案

打开/etc/paths 文件,将/usr/local/bin 放在/usr/bin 之上

$ sudo vi /etc/paths
/usr/local/bin
/usr/local/sbin
/usr/bin
/bin
/usr/sbin
/sbin

重启终端,@mmel

关于ruby - 如何修改 Homebrew 的 PATH?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10343834/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com