我试图在我的mac雪豹10.6.3中为ruby安装sqlite3接口。但我得到以下错误的任何建议?

时间:2010-10-26 14:40:41

标签: ruby-on-rails ruby-on-rails-3 sqlite

对于此命令我收到此错误“sudo gem install sqlite3-ruby”

Building native extensions.  This could take a while...  
ERROR:  Error installing sqlite3-ruby:  
 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/sqlite3-ruby-1.3.1 for   inspection.  
Results logged to /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.3.1/ext/sqlite3/gem_make.out  
ruby -v  1.8.7  
rails -v  3.0.1  
gem -v    1.3.7    
sqlite3 --version  3.6.12    

1 个答案:

答案 0 :(得分:1)

如果您安装了端口,请尝试:

port install sqlite

或者如果你正在使用brew:

brew install sqlite

这样可以解决吗?