Installing Sqlite3 for Ruby (Mac OSX 10.5.8) -
i following guide atm - http://guides.rubyonrails.org/getting_started.html#getting-up-and-running-quickly-with-scaffolding
when trying create database, got:
morgans-computer:blog morgan$ rake db:create not find gem 'sqlite3 (>= 0)' in of gem sources listed in gemfile. run bundle install
install missing gems.
when try run 'bundle install', more errors:
installing sqlite3 (1.3.4) 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 build gem native extension. (gem::installer::extensionbuilderror)
/users/morgan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
i have tried install ruby gem sqlite3 (http://rubygems.org/gems/sqlite3-ruby) continues fail. found post on here saying need install c because compiler written in? wasn't sure meant, or how go doing it.
any appreciated!!
if don't have homebrew installed, set first. it's nice package manager , allows install things sqlite brew install sqlite
.
to install brew you'll need xcode installed. if don't have you'll need cd came system, or can download apple's website. on latest os, can install app store nice (this might work too).
if have mysql , prefer use instead , sidestep sqlite issue can generate rails project such.
rails new my_new_project -d mysql
Comments
Post a Comment