开发者

I was trying to install sqlite3 interface for ruby in my mac snow leopard 10.6.3. But i got the following error any suggestions?

for this command i got this error "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开发者_Go百科 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    


If you have ports installed try:

port install sqlite

Or if you are using brew:

brew install sqlite

Does that fix it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜