无法安装 RMagick 2.13.1.找不到 MagickWand.h. [英] Can't install RMagick 2.13.1. Can't find MagickWand.h.
问题描述
当我尝试安装 rmagick 时,我收到以下错误消息:
When I try do install rmagick I get the following error message:
Can't install RMagick 2.13.1. Can't find MagickWand.h.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
我使用的是 Mac OSX 10.6.8、ruby 1.9.2p290、rvm 1.10.2.
I'm on Mac OSX 10.6.8, ruby 1.9.2p290, rvm 1.10.2.
谁能帮我解决这个问题.
Can anyone help me please to solve this problem.
推荐答案
我在运行时遇到了类似的问题
I had a similar issue with running
$ gem install rmagick
首先,你有没有安装imagemagick?如果您不确定,请运行
First of all, do you have imagemagick installed? If you're not sure, run
$ convert --version
如果你这样做了,你可能是用 fink 或 macports(也许是自制软件?)安装了它.发生的事情是 rvm 找不到 imagemagick 目录.
If you do, you probably either installed it with fink or macports (maybe homebrew?). What is happening is that rvm can't find the imagemagick directory.
$ export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"
到我的 ~/.bash_profile,获取新的配置文件,然后运行:
to my ~/.bash_profile, sourcing the new profile, then running:
gem install rmagick
这样做后对我有用.
这篇关于无法安装 RMagick 2.13.1.找不到 MagickWand.h.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!