I can't install imagemagick & graphicsmagick. Error: Failed to download resource "libpng".
tranduchieu:~ $ brew install graphicsmagick
==> Installing dependencies for graphicsmagick: libpng, freetype
==> Installing graphicsmagick dependency: libpng
==> Downloading ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.18.tar.xz
curl: (78) RETR response: 550
Trying a mirror...
==> Downloading https://dl.bintray.com/homebrew/mirror/libpng-1.6.18.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "libpng"
Download failed: https://dl.bintray.com/homebrew/mirror/libpng-1.6.18.tar.xz
Just try:
$ brew update
and after
$ brew install graphicsmagick
It solved problem for me.
Related
I am getting an error on trying to install a pkg in brew on mac os mojave:
$ brew install --debug aquasecurity/trivy/trivy
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::TapLoader): loading /usr/local/Homebrew/Library/Taps/aquasecurity/homebrew-trivy/trivy.rb
==> Installing trivy from aquasecurity/trivy
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/rpm.rb
Error: rpm: undefined method `livecheck' for Formulary::FormulaNamespace0687b9ea3596758a5cc31a58c3aca98d::Rpm:Class
I ran
$ brew update-reset && brew update
and then retried my command successfully.
I can't install ImageMagick on my Mac:
brew install ImageMagick
==> Downloading http://www.imagemagick.org/download/releases/ImageMagick-6.9.2-4.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading http://ftp.nluug.nl/ImageMagick/ImageMagick-6.9.2-4.tar.xz
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "imagemagick"
Download failed: http://ftp.nluug.nl/ImageMagick/ImageMagick-6.9.2-4.tar.xz
After uninstalling brew and installing brew again this work fine thanks.
here is the command to install brew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You have an outdated Homebrew. Run brew update then try again; ImageMagick is known for changing their URLs very frequently and break the old ones; so if you haven’t updated brew for a long time you might get build failures.
I'm trying to install elixir and it fails installing one of its dependencies, jpeg:
$ brew install elixir
==> Installing dependencies for elixir: jpeg, libtiff, wxmac, erlang
Error: /usr/local/Library/LinkedKegs/jpeg is not a valid keg
So of course I try brew install jpeg and a few others:
$ brew install jpeg
Error: jpeg-jpeg already installed
To install this version, first `brew unlink jpeg'
$ brew unlink jpeg
Error: No such keg: /usr/local/Cellar/jpeg
$ brew info jpeg
jpeg: stable 8d (bottled)
JPEG image manipulation library
http://www.ijg.org
Not installed
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/jpeg.rb
==> Options
--universal
Build a universal binary
And if I run brew doctor, it just tells me to install jpeg. Has anyone run into this before? I'm on Yosemite 10.10.5. I didn't expect to see jpeg-jpeg already installed after trying to install jpeg.
My brew --config:
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 070b76df5a4096dcc6196fc51e56185ae7dfd617
Last commit: 80 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit broadwell
OS X: 10.10.5-x86_64
Xcode: 7.1
CLT: 7.1.0.0.1.1444952191
Clang: 7.0 build 700
X11: N/A
System Ruby: 2.0.0-p481
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/Me/.rbenv/shims/ruby => /Users/Me/.rbenv/versions/2.1.2/bin/ruby
Java: 1.8.0_51, 1.6.0_65-b14-468
Updated with brew remove --force jpeg:
$ brew remove --force jpeg
$ brew install jpeg
Error: jpeg-jpeg already installed
To install this version, first `brew unlink jpeg'
I ended up getting this to work by following guidance in https://github.com/Homebrew/homebrew/issues/37250. Specifically, this comment. Following that, I just removed the directory at /usr/local/Library/LinkedKegs/jpeg and was then able to install jpeg just fine.
i try to install hhvm via
brew install hhvm
i got this error :
Sinas-MacBook-Pro:~ sinamiandashti$ brew install hhvm
==> Downloading https://github.com/facebook/hhvm/archive/HHVM-3.2.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/hhvm-3.2.0.tar.gz
==> Patching
patching file hphp/runtime/ext/gd/libgd/gdft.cpp
Hunk #1 FAILED at 63.
1 out of 1 hunk FAILED -- saving rejects to file hphp/runtime/ext/gd/libgd/gdft.cpp.rej
the formula is fixed
plz use
brew install hhvm --HEAD
Basically I am trying to install imagemagick using brew and got the following error.
[~]$ brew install imagemagick
==> Installing imagemagick dependency: libtiff
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/libtiff-4.0.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.1
==> make install
Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link libtiff'
==> Summary
/usr/local/Cellar/libtiff/4.0.1: 239 files, 3.7M, built in 42 seconds
Error: You must `brew link libtiff' before little-cms can be installed
[~]$ brew link libtiff
Linking /usr/local/Cellar/libtiff/4.0.1...
Error: Could not symlink file: /usr/local/Cellar/libtiff/4.0.1/share/man/man3/TIFFWriteDirectory.3tiff
Target /usr/local/share/man/man3/TIFFWriteDirectory.3tiff already exists. You may need to delete it.
Everytime I remove one, I get the error message asking me to remove another file. I have already removed like 20 of those files and I am not sure how many more are there. Is there a easier way of doing this?
Appreciate any advice.
Try this...
> brew link --overwrite libtiff