简体   繁体   English

如何解决此ruby gem安装错误?

[英]How to fix this ruby gem installation error?

on a Windows 7 environment, i installed ruby 2.2 and and the ruby development kit and want to install a gem now, which throws this error: 在Windows 7环境中,我安装了ruby 2.2和ruby开发套件,现在想安装gem,这会引发此错误:

error: unknown type name 'BOOL' 错误:未知类型名称“ BOOL”

for the command 用于命令

gem install av_capture -v '1.0.1' gem安装av_capture -v'1.0.1'

on multiple .h files. 在多个.h文件上。 The av_capture gem is part of a 'bundle install' i want to do for another gem. av_capture gem是我要为另一个gem执行的“捆绑安装”的一部分。

I also get one fatal error: AVFoundation/AVFoundation.h: No such file or directory 我也收到一个致命错误:AVFoundation / AVFoundation.h:没有这样的文件或目录

So i doubt that av_capture gem can be installed at all (?) 所以我怀疑av_capture gem是否可以全部安装(?)

Google tells me to use g++ instead of gcc to fix the bool type error, i dont think that i can adjust this for the ruby devkit though. Google告诉我使用g ++而不是gcc来修复bool类型错误,但是我不认为我可以针对ruby devkit进行调整。

The DevKit itself seems to work fine, the example json part of the devkit wiki installation site works. DevKit本身似乎运行良好,devkit Wiki安装站点的示例json部分有效。

Just looked up this gem, as it says everywhere on their site: 只是查了一下这颗宝石,就像他们网站上到处都说的那样:

Wraps up AVCapture and exposes it to Ruby. 包装AVCapture并将其公开给Ruby。 This gem only works on OS X. 此gem仅可在OS X上使用。

So I doubt you're going to get this to work. 因此,我怀疑您将使它起作用。 AVFoundation is an IOS Specific thing. AVFoundation是IOS特定的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM