【问题标题】:OS X Yosemite : cannot brew install imagemagick on Yosemite : libtool-2.4.6 error?OS X Yosemite:无法在 Yosemite 上 brew install imagemagick:libtool-2.4.6 错误?
【发布时间】:2015-09-30 17:25:08
【问题描述】:

尝试在我的 Mac (Yosemite 10.10.5) 上安装 imagemagick(将与 PaperClip gem 一起使用)引发错误“libtool”会发生什么?

    $ brew update

    $ brew install imagemagick
    ==> Installing dependencies for imagemagick: libtool, jpeg, libpng, libti
    ==> Installing imagemagick dependency: libtool
    ==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6.yosemite.bott
    curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    Error: Failed to download resource "libtool"
    Download failed: https://homebrew.bintray.com/bottles/libtool-2.4.6.yosemite.bottle.tar.gz
    Warning: Bottle installation failed: building from source.
    ==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.xz
    curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    Trying a mirror...
    ==> Downloading https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz
    curl: (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision.
    Error: Failed to download resource "libtool"
    Download failed: https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz

【问题讨论】:

  • 您是否下载、安装和更新了 Xcode 命令行工具?
  • 我猜最近有一个 XCode 上传...我可能需要更新 CL 工具...检查谢谢...
  • 就是这样 .. OS X 已更新,但我忘记更新 CL 工具...感谢您让我上轨道...
  • 即使在 OS X CL 更新之后,也不会出现与 brew install imagemagick ownloading ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.xz curl 相同的错误消息:(4) 在此 libcurl 中未找到内置的请求功能、协议或选项构建时的决定。正在尝试镜像... ==> 正在下载 ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz curl:(4) 由于构建时间决定,在此 libcurl 中未找到内置的请求功能、协议或选项。
  • 我在 cactuslab.com/imagemagick 找到了一个包,它将 imagemagick 安装到 /opt 中,然后将 bin 添加到 $PATH... 现在正在运行

标签: imagemagick homebrew osx-yosemite


【解决方案1】:

遇到了同样的错误,https://github.com/Homebrew/homebrew/issues/43154 为我修复了它。您需要从.bash_profile.bashrc 中删除SSL_CERT_DIR 变量,并且您可能还需要运行unset SSL_CERT_DIR

【讨论】:

    【解决方案2】:

    在我的例子中,homebrew 目录 (~/Library/Caches/Homebrew) 拥有 root 作为所有者。所以执行

    sudo chown -R {myUserName}:staff Homebrew

    修复了这个问题,Homebrew 再次按预期工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-26
      • 1970-01-01
      • 2014-12-16
      • 1970-01-01
      • 1970-01-01
      • 2015-02-12
      • 1970-01-01
      相关资源
      最近更新 更多