Can't install Imagemagick on Mac with Brew - imagemagick

I am using Brew v0.8 on my Mac OS Lion.
When I am trying to install Imagemagick:
MacBook-kir:rails kir$ brew install imagemagick
/usr/bin/git
==> Cloning https://github.com/adamv/ImageMagick.git
Cloning into /Users/kir/Library/Caches/Homebrew/imagemagick--git...
fatal: https://github.com/adamv/ImageMagick.git/info/refs not found: did you run git update-server-info on the server?
Error: Failure while executing: git clone --depth 1 https://github.com/adamv/ImageMagick.git /Users/kir/Library/Caches/Homebrew/imagemagick--git
How to install Imagemagick?

You need to update your brew installation and reset the repository:
cd /usr/local
brew update
git reset --hard FETCH_HEAD
Then you can run:
brew install imagemagick

It might be that the mirror that brew downloads ImageMagick from was moved.
Try running brew update and then brew install imagemagick again

Related

New MacBook Homebrew Install Issue

I have a Macbook Pro that has an M1 Chip that is causing issues trying to install Homebrew. I have followed the steps in this article: https://mac.install.guide/homebrew/3.html but when I get to the Homebrew install and I type brew in the terminal I get this
Example usage:
brew search TEXT|/REGEX/
brew info [FORMULA|CASK...]
brew install FORMULA|CASK...
brew update
brew upgrade [FORMULA|CASK...]
brew uninstall FORMULA|CASK...
brew list [FORMULA|CASK...]
Troubleshooting:
brew config
brew doctor
brew install --verbose --debug FORMULA|CASK
Contributing:
brew create URL [--no-fetch]
brew edit [FORMULA|CASK...]
Further help:
brew commands
brew help [COMMAND]
man brew
https://docs.brew.sh
Shouldn't it tell me what version of Homebrew I have and that it's installed?
I am trying to set up my Homebrew so that I can use it with git. I am trying to do brew install git and brew install git-lfs but I get the below error messages when I try to do that.
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "git".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
Shouldn't it tell me what version of Homebrew I have and that it's installed?
To find the installed version, use the -v option.
% brew -v
Homebrew 3.6.0
Homebrew/homebrew-core (git revision e5722d08e47; last commit 2022-09-09)
Homebrew/homebrew-cask (git revision 0dc06a0f09; last commit 2022-09-09)
fatal: Could not resolve HEAD to a revision
You will need to reinstall, and make sure it uses /opt/homebrew because you are on an M1.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
There shouldn't be any errors displayed when this runs.

Trying to install aws-sam-cli through brew on ubuntu using "brew tap aws/tap" command ,getting error "fatal: Could not resolve HEAD to a revision"

just installed homebrew , brew --version gives below output
Homebrew 2.7.7
Homebrew/linuxbrew-core (no Git repository)
i have git version 2.27.0 installed , now im trying to run "brew tap aws/tap" command but getting the error "fatal: Could not resolve HEAD to a revision".
im using ubuntu version 20.04
git -C $(brew --repo homebrew/core) checkout master - this worked for me
Reference this issue - Installing upx with Mac Big Sur

Updating Brew error on Mac OS X

I am trying to update brew on my Mac OS X machine so I can update php. However, when trying to run brew install, I get this error:
error: The following untracked working tree files would be overwritten by merge:
Library/Homebrew/extend/enumerable.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master
brew doctor:
Warning: Broken symlinks were found. Remove them with brew prune:
/usr/local/bin/wget
/usr/local/share/man/man1/wget.1
/usr/local/Library/LinkedKegs/wget
Check the solution here
https://github.com/Homebrew/homebrew/issues/21002
in Short
cd /usr/local
git status
git reset --hard origin/master
git clean -df
Type brew doctor and do what it tells you.
brew install is not what you are looking for. I believe if you do this
brew update
brew upgrade
You should be good. If you want more info you should check here https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/FAQ.md#faq

brew doctor says I have have uncommitted modifications to Homebrew but git status says "nothing to commit"

I'm installing brew for the first time, and down to one error when I run brew doctor:
Warning: You have uncommitted modifications to Homebrew
If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
cd /usr/local && git stash
If I cd to /usr/local and run "git status" I get:
On branch master
nothing to commit (working directory clean)
If I run: cd /usr/local && git stash, I get:
No local changes to save
Should I ignore this warning? I'm on OSX 10.8.
I had this same issue, none of the above suggestions got rid of the warning for me.
It appears that Homebrew will complain about un-committed/un-stashed changes even if they haven't been added to a commit, and if they haven't been added to a commit, git stash won't do anything.
So what i had to do is:
$ cd /usr/local
$ git add . # add the unsaved changes homebrew is complaining about
$ git stash # stash the changes, now that they're in a commit
$ brew update # update homebrew
$ brew doctor # running brew doctor now outputs 'raring to brew'
Or if you want, run everything at once:
cd /usr/local/Homebrew && git add . && git stash && git clean -d -f && brew update && brew doctor
I found the problem, researching a different problem. My computer had an older version of git installed (1.5.6.56.g29b0d). It was located at /usr/local/bin/git. I downloaded the latest version (1.7.11.3) which installed itself at /usr/local/git/bin/git. After tweaking my PATH to recognize the new git, I was able to get past the error above.
brew doctor
Warning: Your Homebrew is outdated
You haven't updated for at least 24 hours, this is a long time in brewland!
Then I was able to run brew update successfully:
brew update
Updated Homebrew from ed127082 to 4a36c56a.
...
And now it looks like I'm good to go:
brew doctor
Your system is raring to brew.

Installation of imagemagick with BREW

My problem is really simple :)
schovi#Saskia:~/tmp $ brew install imagemagick
Error: You must install
brew install git
schovi#Saskia:~/tmp $ brew install git
Warning: Formula already installed: git
schovi#Saskia:~/tmp $ brew install imagemagick
Error: You must install Git:
brew install git
Any idea? :)
Install git from http://git-scm.com/

Resources