macos – 如何在Mac OS X Lion上安装Sqlite3

我有一段时间安装SQLite3.我已经获得了Ruby和Rails,宝石等方面的所有最新资料.一切都说“无需更新”.但是当我尝试安装数据库时,我遇到以下错误:

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-1.3.4 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/sqlite3-1.3.4/ext/sqlite3/gem_make.out
最佳答案
你在系统中安装了SQLite3吗?

如果您使用的是MacPorts:

sudo port install sqlite3

或者酿造:

brew install sqlite3

转载注明原文:macos – 如何在Mac OS X Lion上安装Sqlite3 - 代码日志