尝试在我的mac(Yosemite 10.10.5)上安装imagemagick(要使用w 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
答案 0 :(得分:0)
有同样的错误,https://github.com/Homebrew/homebrew/issues/43154为我修好了。您需要从SSL_CERT_DIR
或.bash_profile
中删除.bashrc
变量,您可能还需要运行unset SSL_CERT_DIR
答案 1 :(得分:0)
就我而言,homebrew-directory(〜/ Library / Caches / Homebrew)以root身份拥有。所以执行
sudo chown -R {myUserName}:员工Homebrew
解决了这个问题,Homebrew再次按预期工作。