Unable to install ImageMagick on Mac OS X El Capitan - imagemagick

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.

Related

Error whilst uninstalling a cask using brew

I have installed Autodesk Fusion 360 using homebrew on mac OS 12.5.1. I would now like to uninstall the cask, and am using the following command:
brew uninstall autodesk-fusion360
However the following error is returned:
Error: Failure while executing; /opt/homebrew/Caskroom/autodesk-fusion360/latest/Install\ Autodesk\ Fusion\ 360.app/Contents/MacOS/streamer --process uninstall --appid 73e72ada57b7480280f7a6f4a289729f --stream production --quiet exited with 1.
What can I do to fix the error, and uninstall the cask?

Homebrew broken and unable to install anything

~ % brew install curl
==> Downloading https://ghcr.io/v2/homebrew/core/brotli/manifests/1.0.9
Already downloaded: /Users/currentuser/Library/Caches/Homebrew/downloads/922ce7b351cec833f9bd2641f27d8ac011005f8b1f7e1119b8271cfb4c0d3cd7--brotli-1.0.9.bottle_manifest.json
Error: curl: Failed to download resource "brotli_bottle_manifest"
The downloaded GitHub Packages manifest was corrupted or modified (it is not valid JSON):
/Users/currentuser/Library/Caches/Homebrew/downloads/922ce7b351cec833f9bd2641f27d8ac011005f8b1f7e1119b8271cfb4c0d3cd7--brotli-1.0.9.bottle_manifest.json
My Homebrew is broken and is unable to install anything. A typical output is above
The problem was resolved after delete /Users/currentuser/Library/Caches/Homebrew/downloads/922ce7b351cec833f9bd2641f27d8ac011005f8b1f7e1119b8271cfb4c0d3cd7--brotli-1.0.9.bottle_manifest.json
and run brew install curl again
It might be using the installed curl instead of system curl.
From man brew
set HOMEBREW_FORCE_BREWED_CURL
I have also this problem with brew install php
the problem persists even after deleting all the files from
/Users/currentuser/Library/Caches/Homebrew/downloads/
and
brew install php again
i have also tried
HOMEBREW_FORCE_BREWED_CURL=1 brew install openssl
This command fixed the issue for me:
brew cleanup

Install imagemagick & graphicsmagick fail

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.

SHA1 error when using brew install ruby-build

I was using Linuxbrew(which is a linux equivalent of homebrew) to install "ruby-build"
command used:- brew install ruby-build
and here is the error that i got,
Error: SHA1 mismatch
Expected: 2599afa039d2070bae9df6ce43da288b3a4adf97
Actual: 6d840506239fc0b47ad5c1b14bd5e3e0edbeaa60
Archive: /home/User1/.cache/Homebrew/makedepend-1.0.5.tar.bz2
To retry an incomplete download, remove the file above.
Later I tried deleting the makedepend-1.0.5.tar.bz2 file and run the above command again, still the error persists.

Installing GDAL with Homebrew Error

I'm currently working through Let's make a map and I'm having difficulty installing GDAL. Here's the console output:
brew doctor
Your system is raring to brew.
Toms-MacBook-Pro:~ tomstove$ brew install gdal
==> Installing gdal dependency: sqlite
==> Downloading http://sqlite.org/2013/sqlite-autoconf-3071600.tar.gz
################################### 49.8%
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
Error: Download failed: http://sqlite.org/2013/sqlite-autoconf-3071600.tar.gz
I'm on a mac running Mountain Lion so sqlite should already be installed. Any help would be much appreciated.
Thanks,
Tom
http://sqlite.org/ doesn't support resume downloading.
Go to
cd /Library/Caches/Homebrew
or if you configurated other Location:
brew --cache
And delete all incomplete downloaded sqlite files (like rm sqlite*).
And then try
brew install sqlite
I had the same problem and was able to install by updating homebrew.
brew update
If you are have trouble running brew update, you probably need to fetch origin:
brew update: The following untracked working tree files would be overwritten by merge:

Resources