title: Installing Sqlite3 for Ruby (Mac OSX 10.5.8)
body: <p>I am following this guide ATM - <a href="http://guides.rubyonrails.org/getting_started.html#getting-up-and-running-quickly-with-scaffolding" rel="nofollow">http://guides.rubyonrails.org/getting_started.html#getting-up-and-running-quickly-with-scaffolding</a></p>
  
  <p>When trying to create a database, I got:</p>
  
  <p>Morgans-Computer:blog Morgan$ rake db:create
  Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your Gemfile.
  Run <code>bundle install</code> to install missing gems.</p>
  
  <p>When I try to run 'bundle install', I get more errors:</p>
  
  <p>Installing sqlite3 (1.3.4) with native extensions /Users/Morgan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)</p>
  
  <pre><code>    /Users/Morgan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb 
  </code></pre>
  
  <p>I have tried to install the Ruby Gem Sqlite3 (http://rubygems.org/gems/sqlite3-ruby) but it continues to fail. I found another post on here saying that I need to install C because that is what the compiler is written in? Wasn't sure exactly what that meant, or how I go about doing it. </p>
  
  <p>Any help would be greatly appreciated!!</p>