每当我安装东西时,如何防止Homebrew出现以下警告?
警告:您似乎安装了MacPorts或Fink.与其他软件包管理器一起安装的软件会导致Homebrew的已知问题.如果公式无法构建,请卸载MacPorts/Fink并重试.
请注意,我从未(我记得)在这台机器上安装了Fink,而我只是卸载了Macports.我试过从我的PATH中删除/ opt/local/bin无济于事.
查看源代码(在def macports_or_fink_installed?中),它似乎检查了这样的事情:
$ which port
$ which fink
$ ls /sw/bin/fink /opt/local/bin/port # if they exist
$ ls -ld /sw /opt/local # if either directory exists it must be readable
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17338 次 |
| 最近记录: |