homebrew와 함께 imagemagick을 어떻게 설치합니까? update-server-info on the server? Error: Failure while executing:

OSX Lion에 Imagemagick를 설치하려고하는데 예상대로 작동하지 않습니다.

-> 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

양조 의사의 말 :

-> 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/ruby-1.9.2-p180@global/bin
passenger-config

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

그리고 예, XCode 4.1이 설치되어 실행 중입니다.

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



답변

나를 위해 가장 빠른 해결책은 다음을 수행하는 것입니다.

cd /usr/local
git reset --hard FETCH_HEAD

그런 다음 다시 시도 brew install imagemagick하여 adamv 대신 새 미러에서 패키지를 올바르게 가져 왔습니다.

그래도 문제가 해결 /Library/Caches/Homebrew되지 않으면 imagemagick 파일이나 폴더가 포함되어 있지 않은지 확인 하십시오. 그렇다면 삭제하십시오.


답변

시도해 볼 수 있습니다 :

brew update && brew install imagemagick


답변

brew install imagemagick

gs예를 들어 pdf를 이미지로 변환하려는 경우 종속성 인 설치를 잊지 마십시오 .

brew install ghostscript


답변

로컬 웹 서버에서 실행하기 위해 Mac OS에 Image Magick을 설치하는 방법을 검색 할 때 찾은 것이기 때문에 여기에서 오래된 스레드 (및 약간의 주제가 아닌)에 응답합니다. Imagemagick을 설치하기에 충분하지 않습니다. PHP 모듈이로드되도록 PECL을 설치해야합니다.

에서 이 SO 답변 :

brew install php
brew install imagemagick
brew install pkg-config
pecl install imagick

그리고 당신은해야 할 수도 있습니다 sudo apachectl restart. 그런 다음 확인phpinfo() 웹 서버에서 실행되는 간단한 PHP 스크립트 내에서 .

아직없는 경우 동일한 Mac에서 여러 버전의 PHP를 실행하는 데 문제가있을 수 있습니다 (하나는 웹 서버를 통해 명령 행을 통해). 이 문제를 해결하는 것은이 답변의 범위를 벗어나지 만 몇 가지 좋은 옵션이 있습니다.


답변

당신은 할 수 있습니다 :

brew reinstall php55-imagick

여기서 php55는 PHP 버전입니다.


답변