Gem安装memcached-northscale错误

时间:2010-09-17 16:35:32

标签: ruby-on-rails rubygems memcached

尝试安装memcached-northscale并得到一个奇怪的错误。任何帮助将不胜感激。

$ sudo gem install memcached-northscale
Building native extensions.  This could take a while...
ERROR:  Error installing memcached-northscale:
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

1 个答案:

答案 0 :(得分:0)

我能够通过从Apple

安装XCode来解决这个问题