本文介绍了webrat安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在我的OS X中安装webrat时,我收到以下错误,请建议我如何解决这个问题。

I'm getting the following error when I'm trying to install webrat in my OS X, please suggest me how can i solve this problem.

错误:

Error installing webrat:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0/ext/nokogiri/gem_make.out


推荐答案

从您的osx dvd安装xcode和dev工具,或从这里下载:

Install xcode and dev tools from your osx dvd, or download them from here:

这篇关于webrat安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 17:36