Autoconf没有在自制网中链接,如何链接呢?

use*_*856 9 terminal homebrew

我正在尝试在山狮上安装autoconf view homebrew,我这样做了$ brew install autoconf,我得到了

Warning: Could not link autoconf. Unlinking... Error: The brew link step did not complete successfully The formula built, but is not symlinked into /usr/local You can try again using brew link autoconf ==> Summary /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M, built in 52 seconds server:~ europemart$ brew link autoconf Linking /usr/local/Cellar/autoconf/2.69... Warning: Could not link autoconf. Unlinking... Error: Could not symlink file: /usr/local/Cellar/autoconf/2.69/bin/ifnames Target /usr/local/bin/ifnames already exists. You may need to delete it. To force the link and delete this file, do: brew link --overwrite formula_name

当我$ brew install autoconf再次尝试时,我得到:

Warning: autoconf-2.69 already installed, it's just not linked

我之前从未使用过自制软件,对终端几乎没有经验.有人能帮我解决并正确安装autoconf吗?

干杯

小智 15

我之前遇到过同样的问题.结果是:

Error: Permission denied - /usr/local/share/emacs/site-lisp/autotest-mode.elc
Run Code Online (Sandbox Code Playgroud)

使用--dry-run运行:

brew link --overwrite --dry-run autoconf
Run Code Online (Sandbox Code Playgroud)

提供以下信息:

    Would remove:
    ...
    /usr/local/share/emacs/site-lisp/autoconf-mode.el
    ...
    /usr/local/share/autoconf/m4sugar/version.m4
    ... etc.
Run Code Online (Sandbox Code Playgroud)

所以我暂时移动了两个文件夹/usr/local/share/autoconf//usr/local/share/emacs/(emacs文件夹 - 以防万一)从它的默认位置,然后运行:

brew link --overwrite autoconf
Run Code Online (Sandbox Code Playgroud)

它有效.虽然,它没有这样做,我尝试过的一种优雅的方式brew doctor,brew updatebrew tap homebrew/dupes它并没有解决它.似乎问题是在不成功的brew install操作之后出现的.


Pet*_*aut -3

就像错误消息中所说的那样:

brew link --overwrite autoconf
Run Code Online (Sandbox Code Playgroud)