无法安装RMagick 2.13.1.找不到MagickWand.h. [英] Can't install RMagick 2.13.1. Can't find MagickWand.h.

查看:73
本文介绍了无法安装RMagick 2.13.1.找不到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.

阅读后 https://superuser.com/questions/361435/我在我的centos上编译了imagemagick,并且rmagick不会安装 我通过添加

$ 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆