本文介绍了rmagick没有在windows 7上构建未定义的引用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我知道有很多rmagick线程,但是我找不到任何有关当前错误的信息。每个人都达到了我的目的,它似乎对他们有用。

Hey I know there are a lot of rmagick threads up but I havn't been able to find anything on the current errors I am getting. Everyone gets to the point I am at and it just seems to work for them.

所以我安装了ImageMagick 6.7.1-Q16,我把它包含在没有空格的路径中,我安装了c / c ++标头。我正确安装了Dev-Kit并正在工作我正在尝试使用以下行安装rmagick gem:

So I have ImageMagick 6.7.1-Q16 installed, I included it in my path without spaces and I installed the c/c++ headers. I have the Dev-Kit properly installed and working I am trying to now install the rmagick gem using this line:

gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick-6.7.1-Q16/lib --   with-opt-include:/ImageMagick-6.7.1-Q16/include

我在看了以及其他几个地方,包括。
这似乎让我走得最远,但是当我运行该命令时,它会在几分钟内尝试构建gem,然后在C:中的所有.c文件中给出一个巨大的未定义引用错误列表\\ ruby​​192 \lib\ruby\gems\1.9.1\gems\rmagick-2.13.1\ext\RMagick /

which I came up with after looking here and at several other places including this post.This seems to have gotten me the farthest but when I run that command it sits for several minutes trying to build the gem and then gives me a huge list of undefined reference errors in all of the .c files inside C:\Ruby192\lib\ruby\gems\1.9.1\gems\rmagick-2.13.1\ext\RMagick/

我可以看不到它说的所有文件都有引用错误,但其中一些是:

I can't see all the files it says have reference errors but a few of them are:

rmutil.c undefined reference to 'CloneImageInfo'

rmimage.c undefined reference to 'DestroyExceptionInfo'

rminfo.c undefined reference to 'GetImageOption'

rmmontage.c undefined reference to 'CloneImageInfo'

rmain.c undefined reference to 'SetFatalErrorHandler'

rmpixel.c undefined reference to 'Allocate Image'

rmstruct.c undefined reference to 'CloneString'

有数百个错误,但它们似乎都参考了相同的5-6资源。

there are hundreds of errors but they all seem to reference the same 5-6 resources.

我现在已经开始工作了一天半,我真的开始感到沮丧,任何帮助都会受到赞赏。

I have been working on this for a day and a half now and am really starting to get frustrated any help would be appreciated.

推荐答案

在完成这些帖子中的所有内容后,我做了一件他们没有提到的事情。我去安装了32位版本的ImageMagick而不是64位。在这之后我使用相同的命令并安装它。我希望这会有所帮助。

After doing everything in those posts I did the one thing that none of them mentioned. I went and installed the 32bit version of ImageMagick instead of the 64bit. After doing that I used the same command and it installed. I hope that this helps.

这篇关于rmagick没有在windows 7上构建未定义的引用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 15:52