我正在尝试在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
Run Code Online (Sandbox Code Playgroud)
布鲁医生说:
-> 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 …Run Code Online (Sandbox Code Playgroud) [编辑]当我发现我的一个问题是对ImageMagick的依赖时,我正在解决我的开发环境问题,因为它是我的应用程序的重要部分.
升级到OS X Lion(10.7)之后我不再使用ImageMagick了,然后我尝试使用MacPorts再次安装没有成功,然后我从源代码安装,安装不是很成功我转换并识别但输出错误消息我不幸没有了,我通过一些奇怪的理由决定删除我的所有MacPort库并开始使用Homebrew,我尝试安装ImageMagick,它安装好但是当我尝试使用它时抛出此错误
dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
Referenced from: /usr/local/bin/convert
Reason: Incompatible library version: convert requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0
Trace/BPT trap: 5
Run Code Online (Sandbox Code Playgroud)
我在线阅读但我不清楚这里发生什么,我发现libltdl被称为libtool,我显然需要将它升级到更新的版本,但我还没有找到任何关于如何或在哪里找到源的指示,或者如果这应该已经由自制软件处理,为什么它没有.
我尝试使用此安装程序脚本https://github.com/masterkain/ImageMagick-sl从源代码再次安装ImageMagick,但是当我尝试使用convert时,它会引发类似的错误.
$ convert gnome.jpg -resize 50% gnome_.jpg
dyld: Library not loaded: /opt/local/lib/libltdl.7.dylib
Referenced from: /usr/local/bin/convert
Reason: Incompatible library version: convert requires version 11.0.0 or later, but libltdl.7.dylib provides version 10.0.0
Trace/BPT trap: 5
$ which convert
/usr/local/bin/convert
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能解决我的问题?
我收到错误"Class'Imagick'找不到".不知何故,我需要让这个库访问PHP.我在Fedora 8上使用Php 5.2.6.我的php_info没有提到ImageMagick.
我试过:yum安装ImageMagick并重新启动apache,这不起作用.
我还在我的php.ini文件中添加了extension = imagick.ext并重新启动了apache,但是没有用.
我尝试在MacOs Mojave上安装xdebug但是得到了这个错误
/private/tmp/pear/install/xdebug/xdebug.c:25:10: fatal error: 'php.h' file not found
Run Code Online (Sandbox Code Playgroud)
命令行工具已安装.
我一直在寻找一种在我的Mountain Lion设置(我使用MAMP Pro)上安装Image Magick的方法.我确实找到了这篇文章,但它并不特定于ML.在这里也发现了其他几个类似的问题,但我认为它们太具体了.在这种事情上我并不擅长,这无济于事.有人能指出我的资源吗?