【问题标题】:Autoconf not linked in homebrew, how to link it?Autoconf没有在自制软件中链接,如何链接它?
【发布时间】:2013-05-07 02:12:33
【问题描述】:

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

干杯

【问题讨论】:

    标签: terminal homebrew


    【解决方案1】:

    我之前也遇到过同样的问题。结果:

    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操作失败后出现的问题。

    【讨论】:

      【解决方案2】:

      使用$sudo 运行

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

      $sudo brew link --overwrite autoconf
      

      【讨论】:

        【解决方案3】:

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

        brew link --overwrite autoconf
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2017-07-16
          • 2016-02-15
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-11-19
          相关资源
          最近更新 更多