Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

ImageMagick install fails: git "info/refs not found: did you run git update-server-info on the server" #6994

Closed
nrichards opened this issue Aug 14, 2011 · 10 comments

Comments

@nrichards
Copy link

Installing ImageMagick fails. I did a 'brew update' before.

To me this looks like to me a "not found" when looking in the adamv/ folder, where does the homebrew ImageMagick GIT repository live...? According to 'brew info imagemagick' it's under mxcl/. (I am a newbie to brew but this looks like a 404)?

MacLappy:foo nick$ brew install imagemagick
/usr/local/bin/git
==> Cloning https://github.com/adamv/ImageMagick.git
Cloning into /Users/nick/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/nick/Library/Caches/Homebrew/imagemagick--git

MacLappy:foo nick$ git --version
git version 1.7.6

MacLappy:foo nick$ brew --version
0.8

MacLappy:foo nick$ uname -a
Darwin MacLappy.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

Thank you for the excellent package manager btw.

@weotch
Copy link

weotch commented Aug 14, 2011

Having same issue.

@jacknagel
Copy link
Contributor

The ImageMagick mirror was moved; you need to brew update. If that doesn't work you might have to git reset --hard FETCH_HEAD inside your Homebrew installation to get around a few persistent bugs in brew update.

@adamv
Copy link
Contributor

adamv commented Aug 14, 2011

cd into brew --prefix or open it in Finder, and drag the cached ImageMagick checkout into the trash.

You may also have to force a brew update per https://github.com/mxcl/homebrew/issues?labels=update-install-issue&sort=updated&direction=desc&state=open&page=1

ImageMagick is no longer using the adamv mirror (it is using another mirror instead.)

@adamv adamv closed this as completed Aug 14, 2011
@nrichards
Copy link
Author

Thank you for your replies. My download issue is now solved.

@adamv - I removed the .git/ + .gitignore from /usr/local then re-cloned and the error persisted. Did I remove what you intended?
@jacknagel - This did the trick. git reset --hard FETCH_HEAD Now the machine is cloning from mxcl.

Building fails: it may be local, I'll post my results as I don't know if it's a bug. (coders/svg.c:93:26: error: librsvg/rsvg.h: No such file or directory \n coders/svg.c:97:38: error: librsvg/librsvg-features.h: No such file or directory)

@adamv
Copy link
Contributor

adamv commented Aug 15, 2011

Sorry, my instructions were incorrect.

Go into:

~/Library/Caches/Homebrew

and delete the ImageMagick folders from there.

@nrichards
Copy link
Author

Got it - I now see what you're talking about adamv!

The ImageMagic build issue was resolved, yay! Per brew doctor I fixed my environment's PATH settings, adding to ~/.bashrc:

export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"

@damonr
Copy link

damonr commented Nov 11, 2011

Thank you this was extremely helpful to me.

@davidsomnus
Copy link

Running git reset --hard FETCH_HEAD in /usr/local did it for me. Thanks!

@stuliston
Copy link

Thanks dudes, just a heads up to say that @jacknagel's tip worked for me too..

cd cd /usr/local/Cellar
git reset --hard FETCH_HEAD

then brew install again

@ralphos
Copy link

ralphos commented Mar 1, 2012

Thanks for the detailed steps @stuliston. Worked for me also..

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants