Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Installing Rails 3.0 under Snow Leopard

#5790

I would like to install Rails 3.0 on my Macbook which is running Snow Leopard. It came with Ruby 1.8.6. I installed Rails 3.0 but I can't get anything to run. I managed to upgrade Ruby to 1.8.7 but do I need 1.9.2? Is there a recipe somewhere in the world for installing the latest Ruby on Rails under Snow Leopard?

BTW, running "ruby -v" in my terminal returns:

ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]

Reported by Ken Vogt · October 11th, 2010 @ 09:37 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Ken Vogt
    Ken Vogt

    Allow me to add a few details. While I would have used sqlite3, the gem would not install because it requires Ruby 1.9.1 or greater. So I tried using mysql. Here is the result of running "rails server":

    $ rails server => Booting WEBrick => Rails 3.0.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-10-11 13:45:03] INFO WEBrick 1.3.1 [2010-10-11 13:45:03] INFO ruby 1.8.7 (2009-06-12) [universal-darwin10.0] [2010-10-11 13:45:03] INFO WEBrick::HTTPServer#start: pid=2756 port=3000 dyld: lazy symbol binding failed: Symbol not found: _mysql_init
    Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle Expected in: flat namespace

    dyld: Symbol not found: _mysql_init
    Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.4/lib/mysql2/mysql2.bundle Expected in: flat namespace

    Trace/BPT trap

    October 11th, 2010 @ 09:48 PM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to invalid
    • Importance changed from to Low

    This is not a Rails issue, this is to do with your the mysql gem is set up on your machine. Please use the mysql gem.

    October 11th, 2010 @ 10:24 PM

  3. Ken Vogt
    Ken Vogt

    I must respectfully disagree that this is not a Rails issue. I am asking for a recipe for installing Rails under Snow Leopard. If there is a more appropriate forum to ask this question though I would appreciate your recommendation.

    Here is the result I get when installing the mysql gem:

    $ gem install mysql ERROR: While executing gem ... (Errno::EACCES)

    Permission denied - /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/COPYING
    

    October 11th, 2010 @ 10:57 PM

  4. Ryan Bigg
    Ryan Bigg

    You must use sudo to install gems to /Library, as your user doesn't own this directory. The Rails lighthouse is reserved for Rails-specific issues, such as bugs, feature requests or patches to improve the documentation.

    For general help, please ask on http://stackoverflow.com or http://groups.google.com/group/rubyonrails-talk.

    October 11th, 2010 @ 11:29 PM