2013-05-07 109 views
8

我想在山狮安装autoconf的观点自制,我这样做$ brew install autoconf和我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?

干杯

回答

-3

就像在错误消息称:

brew link --overwrite autoconf 
14

我以前有同样的问题。其结果是:

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

与--dry跑跑步:

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操作失败之后。

2

$sudo

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

OR

$sudo brew link --overwrite autoconf 
运行