在Mac OS X mavericks上不能安装imagemagick和brew吗?

时间:2022-10-28 20:52:49

I am using Homebrew v0.9.5 on my Mac OS X version 10.9.4

我正在我的Mac OS X版本10.9.4上使用Homebrew v0.9.5

When I run the command: `brew install imagemagick, this error occurred.

当我运行命令:' brew install imagemagick时,发生了这个错误。

$ brew install imagemagick
==> Installing dependencies for imagemagick: libpng, freetype
==> Installing imagemagick dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz

curl: (7) Failed connect to downloads.sf.net:443; Operation timed out
Error: Failed to download resource "libpng"
Download failed: https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.12.mavericks.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz

curl: (7) Failed connect to downloads.sf.net:443; Operation timed out
Error: Failed to download resource "libpng"
Download failed: https://downloads.sf.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz

I have added --disable-openmp option, it also doesn't go well.

我添加了-disable-openmp选项,它也不太好。

$ brew install imagemagick --disable-openmp

brew doctor command result has no problem.

酿造医生指令结果没有问题。

$ brew doctor
Your system is ready to brew.

6 个解决方案

#1


58  

Have you tried a

你试过一个

$ brew update
$ brew install imagemagick --disable-openmp --build-from-source

Apparently that seemed to fix it for me on Mac OS 10.8 (Mountain Lion). Previously I checked out the latest imagemagick brew recipe with "brew versions imagemagick" and "git checkout e68e443", see here and here

显然,这似乎是为了在Mac OS 10.8 (Mountain Lion)上修复它。在此之前,我查看了最新的imagemagick brew菜谱,包括“brew version imagemagick”和“git checkout e68e443”

#2


5  

I'm not certain whether the source of my problem was the same as the OP's, however (though this has an accepted answer already) I'll post this in case this solution works for others.

我不确定我的问题的来源是否与OP的相同,但是(尽管这已经是一个公认的答案)我将发布这篇文章,以防这个解决方案对其他人有效。

Using brew install imagemagick, I would encounter the following error:

使用brew install imagemagick,我会遇到以下错误:

curl: (52) Empty reply from server Error: Failed to download resource "libpng" Download failed: https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz

(52)服务器错误的空回复:下载资源“libpng”失败:https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng- 1.16.tar .xz

Which is similar, if less specific than the OP's message.

这是相似的,如果没有OP的消息那么具体的话。

As it turned out, I already had a previous version of libpng installed (version 1.5.7). I then ran:

事实证明,我已经安装了libpng的先前版本(版本1.5.7)。然后我跑:

brew upgrade libpng

Followed by another brew install libpng, and this time it succeeded, as it now had the correct version needed.

接下来是另一个brew安装libpng,这次它成功了,因为它现在需要正确的版本。

#3


5  

This problem also occurs because https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz has a badly configured SSL certificate. Open the link in your browser and see if your browser complains.

这个问题也会发生,因为https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz有一个配置不良的SSL证书。打开浏览器中的链接,看看浏览器是否有问题。

If that's the case, you can manually download the file to /Library/Caches/Homebrew and run again.

如果是这样,您可以手动将文件下载到/Library/ cache /Homebrew并再次运行。

Source: https://github.com/Homebrew/homebrew/issues/36703

来源:https://github.com/Homebrew/homebrew/issues/36703

#4


3  

For me it was upgrading to El Capitan. I found the simplest solution was to force remove homebrew:

对我来说,它是升级到El Capitan。我发现最简单的解决办法是强制移除自制啤酒:

sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

then to re-install it:

然后重新安装:

sudo /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

then install imageMajick:

然后安装imageMajick:

brew install ImageMagick

Depending on your setup you may not want to sudo. For me, its fine. Enjoy a snack while you manipulate images.

根据您的设置,您可能不希望sudo。对我来说,这是很好的。当你操纵图片时,享受一份零食。

#5


2  

In my case the url was simply not correct, with which homebrew wanted to download the required file. I looked it up here http://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.16/ by myself and copied it to /Library/Caches/Homebrew like @Dan suggested.

在我的例子中,url根本不正确,homebrew希望下载所需的文件。我在这里找到了http://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.16/,并将它复制到/Library/ cache /Homebrew,就像@Dan建议的那样。

I then run brew install libpng again and it worked.

然后,我再次运行brew安装libpng,它成功了。

#6


0  

Follow this:

遵循这个:

brew install imagemagick@6

Add below lines in to ~/.bash_profile file

在~/中添加以下行。bash_profile文件

export LDFLAGS="-L/usr/local/opt/imagemagick@6/lib" export
CPPFLAGS="-I/usr/local/opt/imagemagick@6/include" export
PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig"

Install Rmagick

安装Rmagick

source ~/.bash_profile
gem install rmagick

#1


58  

Have you tried a

你试过一个

$ brew update
$ brew install imagemagick --disable-openmp --build-from-source

Apparently that seemed to fix it for me on Mac OS 10.8 (Mountain Lion). Previously I checked out the latest imagemagick brew recipe with "brew versions imagemagick" and "git checkout e68e443", see here and here

显然,这似乎是为了在Mac OS 10.8 (Mountain Lion)上修复它。在此之前,我查看了最新的imagemagick brew菜谱,包括“brew version imagemagick”和“git checkout e68e443”

#2


5  

I'm not certain whether the source of my problem was the same as the OP's, however (though this has an accepted answer already) I'll post this in case this solution works for others.

我不确定我的问题的来源是否与OP的相同,但是(尽管这已经是一个公认的答案)我将发布这篇文章,以防这个解决方案对其他人有效。

Using brew install imagemagick, I would encounter the following error:

使用brew install imagemagick,我会遇到以下错误:

curl: (52) Empty reply from server Error: Failed to download resource "libpng" Download failed: https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz

(52)服务器错误的空回复:下载资源“libpng”失败:https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng- 1.16.tar .xz

Which is similar, if less specific than the OP's message.

这是相似的,如果没有OP的消息那么具体的话。

As it turned out, I already had a previous version of libpng installed (version 1.5.7). I then ran:

事实证明,我已经安装了libpng的先前版本(版本1.5.7)。然后我跑:

brew upgrade libpng

Followed by another brew install libpng, and this time it succeeded, as it now had the correct version needed.

接下来是另一个brew安装libpng,这次它成功了,因为它现在需要正确的版本。

#3


5  

This problem also occurs because https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz has a badly configured SSL certificate. Open the link in your browser and see if your browser complains.

这个问题也会发生,因为https://downloads.sf.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz有一个配置不良的SSL证书。打开浏览器中的链接,看看浏览器是否有问题。

If that's the case, you can manually download the file to /Library/Caches/Homebrew and run again.

如果是这样,您可以手动将文件下载到/Library/ cache /Homebrew并再次运行。

Source: https://github.com/Homebrew/homebrew/issues/36703

来源:https://github.com/Homebrew/homebrew/issues/36703

#4


3  

For me it was upgrading to El Capitan. I found the simplest solution was to force remove homebrew:

对我来说,它是升级到El Capitan。我发现最简单的解决办法是强制移除自制啤酒:

sudo ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

then to re-install it:

然后重新安装:

sudo /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

then install imageMajick:

然后安装imageMajick:

brew install ImageMagick

Depending on your setup you may not want to sudo. For me, its fine. Enjoy a snack while you manipulate images.

根据您的设置,您可能不希望sudo。对我来说,这是很好的。当你操纵图片时,享受一份零食。

#5


2  

In my case the url was simply not correct, with which homebrew wanted to download the required file. I looked it up here http://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.16/ by myself and copied it to /Library/Caches/Homebrew like @Dan suggested.

在我的例子中,url根本不正确,homebrew希望下载所需的文件。我在这里找到了http://sourceforge.net/projects/libpng/files/libpng16/older-releases/1.6.16/,并将它复制到/Library/ cache /Homebrew,就像@Dan建议的那样。

I then run brew install libpng again and it worked.

然后,我再次运行brew安装libpng,它成功了。

#6


0  

Follow this:

遵循这个:

brew install imagemagick@6

Add below lines in to ~/.bash_profile file

在~/中添加以下行。bash_profile文件

export LDFLAGS="-L/usr/local/opt/imagemagick@6/lib" export
CPPFLAGS="-I/usr/local/opt/imagemagick@6/include" export
PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig"

Install Rmagick

安装Rmagick

source ~/.bash_profile
gem install rmagick