7
我有一段時間需要安裝SQLite3。我從Ruby和Rails,寶石等方面獲得了所有最新的東西。所有內容都說「沒有更新」。但是當我嘗試安裝數據庫時,出現以下錯誤:如何在Mac OS X Lion上安裝Sqlite3
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
對不起,我是RoR新手。以下是我所做的:unknowne4ce8f5514cd:〜mgrimmett76 $ sudo gem install sqlite3-ruby – Matt
但首先,您需要使用MacPorts或Brew軟件包管理器在您的系統中安裝SQLite3。 –