OS X Yosemite:不能在Yosemite上安装imagemagick: libtool-2.4.6错误?

时间:2022-07-27 08:57:28

Trying to install imagemagick ( to be used w PaperClip gem) on my mac ( Yosemite 10.10.5) raising error with 'libtool' what happen with it ?

试图在我的mac上安装imagemagick(使用w PaperClip gem) (Yosemite 10.10.5)用“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

2 个解决方案

#1


0  

Had the same error and https://github.com/Homebrew/homebrew/issues/43154 fixed it for me. You will need to remove SSL_CERT_DIR variable from .bash_profile or .bashrc and you might also need to run unset SSL_CERT_DIR

如果有相同的错误和https://github.com/homebrew/homebrew/es/43154为我修复。您将需要从.bash_profile或.bashrc中删除SSL_CERT_DIR变量,您可能还需要运行unset SSL_CERT_DIR。

#2


0  

In my case, the homebrew-directory (~/Library/Caches/Homebrew) had root as owner. So executing

在我的例子中,homebrew-directory (~/Library/ cache /Homebrew)有根作为所有者。所以执行

sudo chown -R {myUserName}:staff Homebrew

sudo chown -R {myUserName}:员工自制程序。

fixed this issue and Homebrew worked again as expected.

修正了这个问题,而Homebrew又像预期的那样工作了。

#1


0  

Had the same error and https://github.com/Homebrew/homebrew/issues/43154 fixed it for me. You will need to remove SSL_CERT_DIR variable from .bash_profile or .bashrc and you might also need to run unset SSL_CERT_DIR

如果有相同的错误和https://github.com/homebrew/homebrew/es/43154为我修复。您将需要从.bash_profile或.bashrc中删除SSL_CERT_DIR变量,您可能还需要运行unset SSL_CERT_DIR。

#2


0  

In my case, the homebrew-directory (~/Library/Caches/Homebrew) had root as owner. So executing

在我的例子中,homebrew-directory (~/Library/ cache /Homebrew)有根作为所有者。所以执行

sudo chown -R {myUserName}:staff Homebrew

sudo chown -R {myUserName}:员工自制程序。

fixed this issue and Homebrew worked again as expected.

修正了这个问题,而Homebrew又像预期的那样工作了。