Gem更新失败,没有Xcode [英] Gem update fails, no Xcode

查看:106
本文介绍了Gem更新失败,没有Xcode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天早些时候跑了sudo gem update,很高兴看到它的工作,但最终失败了。

 构建原生扩展。这可能需要一段时间... 
错误:执行gem时...(Gem :: Installer :: ExtensionBuildError)
错误:无法构建gem原生扩展。

ruby​​ extconf.rb更新
找不到ruby的头文件。

我没有Xcode,如果可能的话,我不想安装它。任何其他方法来解决这个问题?

解决方案

您需要安装xcode才能获得构建c所需的c库一些红宝石宝石的原生扩展。是否有任何理由你不想安装Xcode?

I ran sudo gem update earlier today and was thrilled to see it work, but at the end it failed.

Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb update
can't find header files for ruby.

I don't have Xcode, and if possible, I don't want to install it. Any other way to fix this?

解决方案

You will need to install xcode to get the c libraries that are required to build the c native extensions for some ruby gems. Is there any reason you dont want to install Xcode?

这篇关于Gem更新失败,没有Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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