Error in webrat installation

强颜欢笑 提交于 2019-12-11 19:32:27

问题


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:

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

回答1:


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

http://developer.apple.com/technologies/xcode.html



来源:https://stackoverflow.com/questions/1659586/error-in-webrat-installation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!