2011-08-13 19 views
142

Estoy tratando de instalar Imagemagick en OSX Lion pero algo no funciona como se esperaba.¿Cómo instalo imagemagick con homebrew?

-> brew install imagemagick 

/usr/local/git/bin/git 
==> Cloning https://github.com/adamv/ImageMagick.git 
Cloning into /Users/klebershimabuku/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/kleber/Library/Caches/Homebrew/imagemagick--git 

cerveza médico dice:

-> brew doctor 
We couldn't detect gcc 4.0.x. Some formulae require this compiler. 

Some "config" scripts were found in your path, but not in system or Homebrew folders. 

`./configure` scripts often look for *-config scripts to determine if software packagesare installed, and what additional flags to use when compiling and linking. 

Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. 

/Users/kleber/.rvm/gems/[email protected]/bin 
passenger-config 

Setting DYLD_LIBARY_PATH can break dynamic linking. 
You should probably unset it. 

Y sí, tengo XCode 4.1 instalado y en ejecución.

-> brew update 
From http://github.com/mxcl/homebrew 
* branch   master  -> FETCH_HEAD 
Already up-to-date. 
+5

Usted Necesito 'brew update'; estamos usando un espejo diferente para ImageMagick ahora, y el adamv se ha ido. –

+1

Ya hice la actualización. Ya está actualizado. –

+2

Es posible que deba actualizar manualmente, hemos tenido problemas últimamente: https://github.com/mxcl/homebrew/issues?labels=update-install-issue&sort=updated&direction=desc&state=open&page=1 –

Respuesta

71

La solución más rápida para mí estaba haciendo lo siguiente:

cd /usr/local 
git reset --hard FETCH_HEAD 

Entonces vuelve a intentar brew install imagemagick y correctamente sacó el paquete del nuevo espejo, en lugar de adamv.

Si eso no funciona, asegúrese de que /Library/Caches/Homebrew no contenga ningún archivo o carpeta de imagemagick. Eliminarlos si lo hace.

+1

Esto no funcionará más hoy. Si tiene el problema ahora, es porque está tratando de instalar una versión anterior que se basa en un repositorio ahora difunto. – MattiSG

+0

¿dónde está el ejecutable? – chovy

+1

Esto todavía funciona para mí a partir de hoy. – cevaris

3

¿Has reinstalado xcode luego de la mejora de Lion? Si lo tenía instalado de antemano, esa instalación ya no funciona. Tuve el mismo problema, aunque no con imagemagick.

-9

que podría hacer:

brew reinstall php55-imagick 

Dónde php55 es su versión de PHP.

+3

No fue una respuesta a la pregunta, pero me ayudó. Solo quería saber el nombre de la fórmula de PHP ImageMagick y un motor de búsqueda me llevó hasta aquí. – Glutexo

95

Usted podría intentar:

brew update && brew install imagemagick

+5

esto funcionó perfectamente para mí en mac os 10.11.1 El Capitan – otmezger

+6

Tenga en cuenta que 'brew upgrade' mejora todo en homebrew. – Apie

31
brew install imagemagick 

No se olvide de instalar también gs que es una dependencia si se desea convertir pdf a las imágenes, por ejemplo:

brew install ghostscript