SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict dannyh's Avatar
    Join Date
    Mar 2005
    Location
    BC, Canada
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    installing Sqlite3 along Hivelogic tutorial

    I followed this tutorial to install RoR on Mac OS X Leopard: http://danbenjamin.com/articles/2008...s-leopard#ruby

    But I would like to use sqlite instead of MySQL. How can I install Sqlite to play nice with how this tutorial has set things up? Everything is installed to: /usr/local/src path it seems.

    However, this is what I get when I do a "which sqlite3": /usr/bin/sqlite3

    There is a prolem somewhere because when I try to follow 'hello world' app tutorial, and view it in browser it says: "no such file to load -- sqlite3"

    "sqlite3 --version" command returns: 3.4.0

    I am an absolute noobie to RoR and even new to Mac. Could someone advise me as to how I should get Sqlite setup to run with RoR that I have setup according to the above link?

    Thank you

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,010
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    I don't know anything about Mac OS, but
    Did you install sqlite3 as a GEM?
    Did you specify the database in the config/database.yml file?

  3. #3
    SitePoint Addict
    Join Date
    Feb 2007
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:

    Developing Rails Applications on Mac OSX Leopard

    Probably the most important thing is the line:

    sudo gem update sqlite3-ruby

    Let me know if this helps you any.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •