9

我正在尝试在山狮上安装 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 吗?

干杯

4

3 回答 3

15

我以前也有同样的问题。因此:

Error: Permission denied - /usr/local/share/emacs/site-lisp/autotest-mode.elc

使用 --dry-run 运行:

brew link --overwrite --dry-run autoconf

提供以下信息:

    Would remove:
    ...
    /usr/local/share/emacs/site-lisp/autoconf-mode.el
    ...
    /usr/local/share/autoconf/m4sugar/version.m4
    ... etc.

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

brew link --overwrite autoconf

它有效。虽然,这不是一种优雅的方式,在我尝试之前brew doctor,它brew updatebrew tap homebrew/dupes没有解决它。看来问题是在brew install操作不成功之后出现的。

于 2013-11-14T02:18:07.010 回答
2

运行$sudo

$sudo brew link --overwrite --dry-run autoconf

或者

$sudo brew link --overwrite autoconf
于 2015-12-21T09:36:51.590 回答
-3

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

brew link --overwrite autoconf
于 2013-05-11T01:28:17.727 回答