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

时间:2013-05-07 02:12:34

标签: 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吗?

干杯

2 个答案:

答案 0 :(得分: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 doctorbrew updatebrew tap homebrew/dupes之前,它并没有解决它。似乎问题出现在brew install操作失败后。

答案 1 :(得分:-3)

就像在错误消息中所说:

brew link --overwrite autoconf